Reorganise player panels
Posted: 05 January 2020, 16:44
Hi everybody and happy new year 
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:
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
Woodruff
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');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
Woodruff