On Mon, 2009-07-13 at 18:36 +0200, Loic Dachary wrote:
> 
> 3) The side pots are placed according to their index. It would save a
> lot of space if the designer could decide for a different layout
> depending on the number of side pots displayed on the table. For
> instance, when there is only one pot it can be placed in the center of
> the table and be fairly large. But when there are two they could be
> made smaller and be equaly spaced. To achieve this jpoker should
> create a class that carries the number of side pots and place it in
> the nearest parent of the side pots.

Hi,

I reworked jpoker pots display:

Now there is a single "pots" element in mockup.svg, and a
jpoker.plugins.table.template.pots with 10 x <span class="jpoker_pot">.

A css class is added on jpoker_pots, matching to the number of side
pots, allowing progressive size and layout of the pots images.

I generated pots image for the following size: 48x48, 40x40, 32x32,
24x24, by calling inkscape from the Makefile

You can see the corresponding changes here:
http://upstream.jspoker.pokersource.info/rev/21dc7d512a4c
http://upstream.jspoker.pokersource.info/rev/b08b346fe5a0
http://upstream.jspoker.pokersource.info/rev/59117262b408

You can try the result here:
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_1_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_2_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_3_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_4_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_5_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_6_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_7_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_8_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_9_sidepot
http://jspoker.pokersource.info/work/jpoker/skin/table.html#jpoker_54_10_sidepot

Note that due to my poor css skill, I've trouble centering the pots
elements, any helps would be greatly appreciated. 
-- 
Johan Euphrosine <[email protected]>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to