notification tablewindow

Game development with Board Game Arena Studio
Post Reply
User avatar
gaby528
Posts: 10
Joined: 22 April 2014, 16:48

notification tablewindow

Post by gaby528 »

Hi,

I need to show additional information in a scoring dialog. According to the tutorial, I used the following code :

$this->notifyAllPlayers( "tableWindow", '', array(
"id" => 'finalScoring',
"title" => clienttranslate("Title of the scoring dialog"),
"table" => $table,
"header" => '<div>Some header</div>',
"footer" => '<div>Some footer</div>',
"closelabel" => clienttranslate( "Closing button label" )
) );


And I want to put my additional information in "header" or "footer". But nothing appears in my page.
I just found in the DOM the following thing :
<div class="notifparams" id="debugnotif_92">{"closelabel":"Closing button label","footer":"<div>Some footer</div>","id":"finalScoring","title":"Title of the scoring dialog","table":[null,[{"str":"Points de cartes","args":[]},100,0,0,100,0,0]],"header":"<div>Some header</div>"}</div>

Is this functionnality really working well ?

Thanks in advance for your help,

Gabriel
Post Reply

Return to “Developers”