Jump to content

guiSetProperty


-Doc-

Recommended Posts

Posted

Color code format is hex AARRGGBB (alpha, red, green, blue):

local gui_image = guiCreateStaticImage( ... ) 
local hex = "FFFF0000" -- (255, 255, 0, 0) red color 
guiSetProperty( gui_image, "ImageColours", "tl:"..hex.." tr:"..hex.." bl:"..hex.." br:"..hex ) 

tl - top left

tr - top right

bl - bottom left

br - bottom right

You can apply different color codes to tl,tr,bl,br, so you can even create some sort of gradients.

Posted
Color code format is hex AARRGGBB (alpha, red, green, blue):
local gui_image = guiCreateStaticImage( ... ) 
local hex = "FFFF0000" -- (255, 255, 0, 0) red color 
guiSetProperty( gui_image, "ImageColours", "tl:"..hex.." tr:"..hex.." bl:"..hex.." br:"..hex ) 

tl - top left

tr - top right

bl - bottom left

br - bottom right

You can apply different color codes to tl,tr,bl,br, so you can even create some sort of gradients.

Yes that's good, here you can check others properties: http://web.archive.org/web/20120706081430/http://cegui.org.uk/static/WindowsLookProperties.html#StaticImage

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...