Re: [Sandbox] Feedback and questions
Posted: 03 May 2020, 10:05
Still no responses/remarks on my first post?
I added some responses I found for questions #1 and #6.
Regarding question #2 on adding buttons in the action status bar, I use clickable labels for now but they are visible to everyone.
So I tried to used the setProperties method like this:
During postSetup state and when switching to the next player (after call of nextPlayer() and nextState('nextPlayer').
It works well for the first player, but after that it doesn't change dynamically, players have to refresh the browser page.
Do I need to do it differently?
I added some responses I found for questions #1 and #6.
Regarding question #2 on adding buttons in the action status bar, I use clickable labels for now but they are visible to everyone.
So I tried to used the setProperties method like this:
Code: Select all
var props = [];
bga.getElementsArray({ tag: 'LABEL' }).forEach(labelId => props[labelId] = { visible: 'player' + bga.getActivePlayerColor() });
bga.setProperties(props);
It works well for the first player, but after that it doesn't change dynamically, players have to refresh the browser page.
Do I need to do it differently?