-Doc- Posted March 8, 2016 Share Posted March 8, 2016 How to set r,g,b color to guiCreateStaticImage using guiSetProperty? Link to comment
DakiLLa Posted March 8, 2016 Share Posted March 8, 2016 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. Link to comment
OnlineCheater Posted March 9, 2016 Share Posted March 9, 2016 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 Link to comment
Moderators Citizen Posted March 9, 2016 Moderators Share Posted March 9, 2016 here you can check others properties: http://web.archive.org/web/20120706081430/http://cegui.org.uk/static/WindowsLookProperties.html#StaticImage Would like to know where they say you had to use tl, tr, bl, br. @DakiLLa ? Link to comment
DakiLLa Posted March 9, 2016 Share Posted March 9, 2016 here you can check others properties: http://web.archive.org/web/20120706081430/http://cegui.org.uk/static/WindowsLookProperties.html#StaticImage Would like to know where they say you had to use tl, tr, bl, br. @DakiLLa ? Back in the day when I was busy with some GUI related stuff I found this thing. Link to comment
Moderators Citizen Posted March 9, 2016 Moderators Share Posted March 9, 2016 here you can check others properties: http://web.archive.org/web/20120706081430/http://cegui.org.uk/static/WindowsLookProperties.html#StaticImage Would like to know where they say you had to use tl, tr, bl, br. @DakiLLa ? Back in the day when I was busy with some GUI related stuff I found this thing. Thank you ! Bookmarked it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now