nevarim
24-08-2013 23:05:39
hi all
for you there is a chance to make button not squared?
i made button as in png
thanks
nevarim
Altren
25-08-2013 00:48:09
There is Widget::setMaskPick method, that takes texture name as input and use it as picking mask.
widget->setMaskPick("Crystal_Clear_Butterfly_Pick.png");
Also can be specified in layout or skin template as "MaskPick" property.
nevarim
25-08-2013 14:13:56
so in preparing xml i must make square for contain button or i can use real border?
thanks
Neva
nevarim
27-08-2013 08:11:43
i try to explain better
in xml i must define
left
top
height
width
with a square for i must define a square that contains empty border (width is from top left to bottom right corner)
attach a screenshot for better understanding
black is real form red is square form
hoping is better explained now
Neva
Altren
28-08-2013 11:08:18
Yes, size of your button would be that red corner. Both in skin and when button is created in layout or code.
nevarim
28-08-2013 11:32:58
and the property setMaskPick tell to mygui that must be ignored transparent part? for that i understood