Hi...
on the game : http://fr.1.studio.boardgamearena.com/d ... able=29339
I've got a problem with "playerboard panel".
Left seems not to be taken into account..; I cannot put cards from left to right inside:
(pb_media_..._0 near pb_media_..._1 and pb_media_..._2)
in tpl file:
in js file:
I verified with Firebug, "left" is present in div with correct pixel number :< .
thanks for help, rudolf
on the game : http://fr.1.studio.boardgamearena.com/d ... able=29339
I've got a problem with "playerboard panel".
Left seems not to be taken into account..; I cannot put cards from left to right inside:
(pb_media_..._0 near pb_media_..._1 and pb_media_..._2)
in tpl file:
Code: Select all
var jstpl_player_board = '\
<div id="pb_div_${playercolor}">\
<p>\
<span id="pb_atk_${playercolor}" style="color:${gamecolor}; text-align:center; font-weight:bold" >ATK: +</span>\
<span id="pb_pot_${playercolor}" style="color:black; text-align:center; font-weight:bold">0</span>\
<span id="pb_bns_${playercolor}" style="color:${gamecolor}; text-align:center; font-weight:bold" > BNS: +</span>\
<span id="pb_potbns_${playercolor}" style="color:black; text-align:center; font-weight:bold">0</span>\
<span id="pb_potsub_${playercolor}" style="color:#DAB30A; text-align:center; font-weight:bold"></span>\
<div id="pb_media_${playercolor}_0" position="absolute"> </div>\
<div id="pb_media_${playercolor}_1" position="absolute"> </div>\
<div id="pb_media_${playercolor}_2" position="absolute"> </div>\
<div id="pb_media_${playercolor}_3" position="absolute"> </div>\
</div>';
Code: Select all
dojo.place( this.format_block( 'jstpl_'+material, { id: cid, subid: csubid } ) , $(dest)); // Materiel comes from card div Draw the cards.
$calc= this.cleanInt(index) * 54;
dojo.style($(dest),'height','152px');
dojo.style($(dest),'width','50px');
dojo.style($(dest),'left',$calc+'px');
thanks for help, rudolf