karlis Posted March 6, 2010 Share Posted March 6, 2010 hi, i have such problem: i need get colored rectangles between 2gui windows, so posgui with dxDrawRectangle dont helps, are there some properties to set color of some gui element or other way to make ones? heres what i mean, i need to make posgui to false to alow litle window to be in front of dx'es: and btw how can i get hex from RGB(not RGB from hex) Link to comment
DakiLLa Posted March 6, 2010 Share Posted March 6, 2010 and btw how can i get hex from RGB(not RGB from hex) function getStringFromColor( R, G, B, A ) if R and G and B then return ('#%02x%02x%02x'):format(R, G, B, A or 255) else return false end end Found it in a pastebin archive.. Havent tryed this yet, but should works. Link to comment
50p Posted March 7, 2010 Share Posted March 7, 2010 hi, i have such problem:i need get colored rectangles between 2gui windows, so posgui with dxDrawRectangle dont helps, are there some properties to set color of some gui element or other way to make ones? heres what i mean, i need to make posgui to false to alow litle window to be in front of dx'es: ... and btw how can i get hex from RGB(not RGB from hex) There is no way to change button's background. You can only change label colour. You could create 126, 1x1 images with specific colours and stretch them all over button's background (button being parent of the colour image) but I wouldn't recommend it since that's a lot of images and its creation may drop down FPS or freeze PC for the loading time. It may not be that bad since they are just 1x1 images, give it a try. Link to comment
karlis Posted March 7, 2010 Author Share Posted March 7, 2010 but anyway i need 126 diffrent images:/, theres no way to do it with some label abusing and streching? Link to comment
Aibo Posted March 7, 2010 Share Posted March 7, 2010 but anyway i need 126 diffrent images:/, theres no way to do it with some label abusing and streching? maybe put the color grid in a single image, set it as "background", and put come corresponding radios (or small buttons) on top of every color? *) Link to comment
karlis Posted March 7, 2010 Author Share Posted March 7, 2010 my start idea was to make it without any images, but i got that thats psoible only with dxdraw, but might give a try for geting bounds of smallwidnow and making posgui of rectanges to true, to false only ones under smallwindow? 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