Jump to content
Sign in to follow this  
Homer Johnston

Dialog buttons - setting color?

Recommended Posts

Does anyone know if there is a script way to change the color of dialog buttons? The three ctrlSet_____Color commands don't seem to work, although they do for static controls.

Thanks!

Share this post


Link to post
Share on other sites

The default buttons use a texture. You'd have to change the the image itself.

Share this post


Link to post
Share on other sites

Really? Buttons are painted by the following settings though - are you sure?

colorFocused[] = { 1, 0, 0, 1 }; // border color for focused state

colorDisabled[] = { 0, 0, 1, 0.7 }; // text color for disabled state

colorBackground[] = { 1, 1, 1, 0.8 };

colorBackgroundDisabled[] = { 1, 1, 1, 0.5 }; // background color for disabled state

colorBackgroundActive[] = { 1, 1, 1, 1 }; // background color for active state

Thanks for your time...

Edited by Homer Johnston
I sounded impolite :(

Share this post


Link to post
Share on other sites

animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa";

animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa";

animTextureOver = "\ca\ui\data\ui_button_over_ca.paa";

animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa";

animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa";

animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa";

As I said though, this is for the default (RscShortcutButton) buttons.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×