---++!! !CommonCtrl.ButtonStyles %TOC{title="Contents:"}% %STARTINCLUDE% ---++ Button styles in ParaEngine | *Title* | Button styles in ParaEngine | | *Author(s)* | LiXizhi, WangTian | | *Date* | 2005/10 | | *File* | script/ide/ButtonStyles.lua | ---+++ 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__ <verbatim>function _guihelper.SetVistaStyleButton(uiobject, foregroundImage, backgroundImage)</verbatim> __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__ <verbatim>function _guihelper.SetVistaStyleButton2(uiobject, foregroundImage, backgroundImage)</verbatim> __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__ <verbatim>function _guihelper.SetVistaStyleButton3(uiobject, normalImage, mouseoverImage, disableImage, pressedImage)</verbatim> __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__ <verbatim>function _guihelper.SetVistaStyleButton4(uiobject, foregroundImage, backgroundImage)</verbatim> __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__ <verbatim>function _guihelper.SetVistaStyleButton5(uiobject, foregroundImage, backgroundImage)</verbatim> __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__ <verbatim>function _guihelper.SetVistaStyleButtonBright(uiobject, foregroundImage, backgroundImage)</verbatim> __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__ <verbatim>function _guihelper.SetTabStyleButton(uiobject, normalImage, mouseoverImage)</verbatim> __parameters__ | *uiobject* | button UI object | | *normalImage* | | | *mouseoverImage* | highlight layer image | %STOPINCLUDE%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2008-02-29
-
LiXizhi
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback