User Interface Colors: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:Take On Helicopters: Editing thumb|200px|Interface Colors menu Take On Helicopters introduced ability to recolor menu and HUD col...") |
mNo edit summary |
||
Line 25: | Line 25: | ||
{{codecomment|//--- Preview picture background}} | {{codecomment|//--- Preview picture background}} | ||
previewBackground = "\hsim\UI_H\data\loadscreen_generic_co.paa"; | previewBackground = "\hsim\UI_H\data\loadscreen_generic_co.paa"; | ||
{{codecomment|//--- Preview picture (when 1 instead of [[String]], menu is recolored instead)}} | {{codecomment|//--- Preview picture (when 1 instead of [[String]], whole menu is recolored instead)}} | ||
preview = "\hsim\UI_H\data\cursor_w_view_gs.paa"; | preview = "\hsim\UI_H\data\cursor_w_view_gs.paa"; | ||
{{codecomment|//--- Preview picture width}} | {{codecomment|//--- Preview picture width}} | ||
Line 40: | Line 40: | ||
{{codecomment|//--- Name displayed in menu}} | {{codecomment|//--- Name displayed in menu}} | ||
displayName = $STR_HSIM_CfgUIDefault_IGUI_Presets_PresetGreen_0; | displayName = $STR_HSIM_CfgUIDefault_IGUI_Presets_PresetGreen_0; | ||
{{codecomment|//--- Class of modified variable (TEXT_RGB) | {{codecomment|//--- Class of modified variable (TEXT_RGB) with RGBA values}} | ||
TEXT_RGB[] = {IGUI_TEXT_RGB_RDef,IGUI_TEXT_RGB_GDef,IGUI_TEXT_RGB_BDef,IGUI_TEXT_RGB_ADef}; | TEXT_RGB[] = {IGUI_TEXT_RGB_RDef,IGUI_TEXT_RGB_GDef,IGUI_TEXT_RGB_BDef,IGUI_TEXT_RGB_ADef}; | ||
{{codecomment|//--- | {{codecomment|//--- When 1, preset is used as default}} | ||
default = 1; | default = 1; | ||
}; | }; |
Revision as of 17:46, 22 October 2011
Take On Helicopters introduced ability to recolor menu and HUD colors. Community creators can define new presets or use user's colors using following configs and functions.
Functions
Sample Config
class CfgUIDefault { //--- Tag class IGUI { //--- Name displayed in menu displayName = $STR_HSIM_CfgUIDefault_IGUI_0; //--- Color variables class Variables { //--- Identification class ised by presets and scripts class TEXT_RGB { //--- Name displayed in menu displayName = $STR_HSIM_CfgUIDefault_IGUI_Variables_TEXT_RGB_0; //--- Preview picture background previewBackground = "\hsim\UI_H\data\loadscreen_generic_co.paa"; //--- Preview picture (when 1 instead of String, whole menu is recolored instead) preview = "\hsim\UI_H\data\cursor_w_view_gs.paa"; //--- Preview picture width previewW = 4 * GUI_GRID_W; //--- Preview picture height previewH = 4 * GUI_GRID_H; }; }; //--- Color presets class Presets { class PresetDefault { //--- Name displayed in menu displayName = $STR_HSIM_CfgUIDefault_IGUI_Presets_PresetGreen_0; //--- Class of modified variable (TEXT_RGB) with RGBA values TEXT_RGB[] = {IGUI_TEXT_RGB_RDef,IGUI_TEXT_RGB_GDef,IGUI_TEXT_RGB_BDef,IGUI_TEXT_RGB_ADef}; //--- When 1, preset is used as default default = 1; }; class PresetBlue { displayName = $STR_HSIM_CfgUIDefault_IGUI_Presets_PresetDefault_0; TEXT_RGB[] = {0,1,1,0.8}; }; }; }; };