CommonCtrl.ButtonStyles
Description
Member Functions
_guihelper.SetVistaStyleButton
make a button Windows Vista Style buttons, like the left top menu item in MS Office 2007.
- param uiobject : button UI object
- param foregroundImage :
syntax
function _guihelper.SetVistaStyleButton(uiobject, foregroundImage, backgroundImage)
parameters
uiobject |
button UI object |
foregroundImage |
|
backgroundImage |
|
_guihelper.SetVistaStyleButton2
NOTE: --WangTian: set background color visible when mouse not over
--texture.color="255 255 255 255";
--uiobject:SetCurrentState("disabled");
make a button Windows Vista Style buttons, like the left top menu item in MS Office 2007.
- param uiobject : button UI object
- param foregroundImage :
syntax
function _guihelper.SetVistaStyleButton2(uiobject, foregroundImage, backgroundImage)
parameters
uiobject |
button UI object |
foregroundImage |
|
backgroundImage |
|
_guihelper.SetVistaStyleButton3
NOTE: --WangTian: buttons for main bar icons
Note: only texture with ; in file name is supported. nine tile texture with : is not support yet.
- param uiobject : button UI object
- param normalImage : normal and pressed layer image
- param mouseoverImage : highlight layer image
- param disableImage : disabled layer image
syntax
function _guihelper.SetVistaStyleButton3(uiobject, normalImage, mouseoverImage, disableImage, pressedImage)
parameters
uiobject |
button UI object |
normalImage |
|
mouseoverImage |
highlight layer image |
disableImage |
|
pressedImage |
|
_guihelper.SetVistaStyleButton4
NOTE: by andy: this is another solution of _guihelper.SetVistaStyleButton
the difference is this function swap the
SetVistaStyleButton2 background and foreground color behavior
make a button Windows Vista Style buttons, like the left top menu item in MS Office 2007.
- param uiobject : button UI object
- param foregroundImage :
syntax
function _guihelper.SetVistaStyleButton4(uiobject, foregroundImage, backgroundImage)
parameters
uiobject |
button UI object |
foregroundImage |
|
backgroundImage |
|
_guihelper.SetVistaStyleButton5
show artwork layer when not over, and show background layer when active.
- param uiobject : button UI object
- param foregroundImage :
syntax
function _guihelper.SetVistaStyleButton5(uiobject, foregroundImage, backgroundImage)
parameters
uiobject |
button UI object |
foregroundImage |
|
backgroundImage |
|
_guihelper.SetVistaStyleButtonBright
NOTE: --WangTian: set background color bright
all status are colored "255 255 255"
make a button Windows Vista Style buttons, like the left top menu item in MS Office 2007.
- param uiobject : button UI object
- param foregroundImage :
syntax
function _guihelper.SetVistaStyleButtonBright(uiobject, foregroundImage, backgroundImage)
parameters
uiobject |
button UI object |
foregroundImage |
|
backgroundImage |
|
_guihelper.SetTabStyleButton
NOTE: --LiXizhi: buttons for tab views or main menu items
Note: only texture with ; in file name is supported. nine tile texture with : is not support yet.
- param uiobject : button UI object
- param normalImage : normal and pressed layer image
- param mouseoverImage : highlight layer image
- param disableImage : disabled layer image
syntax
function _guihelper.SetTabStyleButton(uiobject, normalImage, mouseoverImage)
parameters
uiobject |
button UI object |
normalImage |
|
mouseoverImage |
highlight layer image |