MrRidd
17-11-2010 19:02:29
Hi
How would I go about offsetting the caption on a button when the mouse is hovered over the button? I would also need to do it on a per button basis, so I would rather not create one skin for all.
Thanks
my.name
18-11-2010 11:49:31
look at skins
<BasisSkin type="SimpleText" offset="1 1 25 17" align="Stretch">
<State name="disabled" colour="#{MyGUI_Theme_Button_ColourNormal}" shift="false"/>
<State name="normal" colour="#{MyGUI_Theme_Button_ColourNormal}" shift="false"/>
<State name="highlighted" colour="#{MyGUI_Theme_Button_ColourNormal}" shift="false"/>
<State name="normal_checked" colour="#{MyGUI_Theme_Button_ColourPushed}" shift="true"/>
<State name="pushed" colour="#{MyGUI_Theme_Button_ColourPushed}" shift="true"/>
</BasisSkin>
shift="true" // Shift text to 1 pix down
MrRidd
18-11-2010 12:24:20
Thanks. I did see that, and wondered if that was what it was for.
How do I specify the amount of pixels though? At times I might want it to shift up instead of down.