Hi!
I have been managing a game which consists of rounds, each round displaying a scoring dialog.
Currently, when you close that scoring dialog, it is no longer accessible. I am now improving the system so that the score dialogs can be stored between rounds and be accessible through buttons.
Following the advice of Een, I use this.displayTableWindow on JS side in spite of merely a tableWindow notification on PHP side because I have to manage translatable strings (method used for Sushi Go! if I remember well).
The trouble is that even if I can store the dialog in a array:
when I try to retrieve an element it is just the last dialog, no matter the position in the array.
Apparently, the score dialog composants have a fixed id base on a prefix named "tableWindow":
Hence, it leads to conflict when storing several of these...
Any chance that id could be ovverriden so that I can ensure it is unique? Just adding a suffix indicating the round number would do the trick.
Thanks for your help
Wood
I have been managing a game which consists of rounds, each round displaying a scoring dialog.
Currently, when you close that scoring dialog, it is no longer accessible. I am now improving the system so that the score dialogs can be stored between rounds and be accessible through buttons.
Following the advice of Een, I use this.displayTableWindow on JS side in spite of merely a tableWindow notification on PHP side because I have to manage translatable strings (method used for Sushi Go! if I remember well).
The trouble is that even if I can store the dialog in a array:
Code: Select all
this.scoring_dialogs[round_no] = this.displayTableWindow( /* ... */ );Apparently, the score dialog composants have a fixed id base on a prefix named "tableWindow":
Code: Select all
<div id="popin_tableWindow_underlay" class="standard_popin_underlay" style="opacity: 0.7; display: block; width: 1663px; height: 18401px;"></div>
<div id="popin_tableWindow" class="standard_popin" style="opacity: 1; display: inline-block; top: 487px; left: 451.383px;">
<h2 id="popin_tableWindow_title" class="standard_popin_title">My title</h2>
<!-- ... -->
</div>
Any chance that id could be ovverriden so that I can ensure it is unique? Just adding a suffix indicating the round number would do the trick.
Thanks for your help
Wood