CommonCtrl.ButtonStyles

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

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
Topic revision: r1 - 2008-02-29 - LiXizhi
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback