Reorganise player panels

Game development with Board Game Arena Studio
Post Reply
User avatar
Woodruff
Posts: 423
Joined: 08 March 2014, 00:53

Reorganise player panels

Post by Woodruff »

Hi everybody and happy new year :P

For my game I have set a custom player order that is different than the one proposed by BGA.
So I need to reorder the player panels in JS so that it reflects that custom order.

However, when I try to do this in the setup function, the dojo.place instruction has no effect.
For instance, this:

Code: Select all

dojo.place('overall_player_board_2273382', 'player_boards', 'last');
has no effect (2273382 being my player id in Studio): the player panel has not moved.

But when I put that line of code somewhere else (or even in the dev console of the browser), it is executed properly.

Do you understand why I can't do it in setup and what could I do to solve this?
Thanks a lot for your help :D

Woodruff
User avatar
VanHlebar
Posts: 68
Joined: 24 September 2019, 02:30

Re: Reorganise player panels

Post by VanHlebar »

So I also do a custom player order in my game and I have also seen this in a few other games as well that I play. None of the games that I have played, nor in my game, have I seen the player panels re-ordered.

I know in Terra Mystica they use a number placed onto the player panel to signify the person thata is going first, second etc. In my game I guess I just haven't looked at the panels and player order close. Now you have me wondering how it is working. :)

Not sure you can actually re-order those panels as I believe they are setup in "table" order as I recall, but if you find out a method please post back as I would be interested in learning.
Post Reply

Return to “Developers”