18 static const ref Color DARK_SAGE = Color.FromSRGBA(86, 92, 84, 255);
19 static const ref Color DARK_GREY = Color.FromSRGBA(85, 85, 85, 255);
20 static const ref Color LIGHT_GREY = Color.FromSRGBA(255, 255, 255, 179);
21 static const ref Color TRANSPARENT = Color.FromSRGBA(0, 0, 0, 0);
24 static const ref Color CONTRAST_DISABLED = Color.FromSRGBA(0, 0, 0, 38);
25 static const ref Color CONTRAST_DEFAULT = Color.FromSRGBA(226, 167, 79, 76);
26 static const ref Color CONTRAST_HOVERED = Color.FromSRGBA(239, 199, 139, 102);
27 static const ref Color CONTRAST_CLICKED = Color.FromSRGBA(226, 167, 79, 255);
28 static const ref Color CONTRAST_CLICKED_HOVERED = Color.FromSRGBA(226, 167, 79, 255);
30 static const ref Color WHITE_DISABLED = Color.FromSRGBA(255, 255, 255, 38);
31 static const ref Color WHITE_DEFAULT = Color.FromSRGBA(255, 255, 255, 25);
32 static const ref Color WHITE_HOVERED = Color.FromSRGBA(255, 255, 255, 102);
34 static const ref Color BACKGROUND_DISABLED = Color.FromSRGBA(0, 0, 0, 38);
35 static const ref Color BACKGROUND_DEFAULT = Color.FromSRGBA(0, 0, 0, 102);
36 static const ref Color BACKGROUND_HOVERED = Color.FromSRGBA(0, 0, 0, 153);
38 static const ref Color WARNING_FOCUSED = Color.FromSRGBA(249, 67, 67, 107);
39 static const ref Color INFO = Color.FromSRGBA(0, 128, 255, 255);
42 static const ref Color HIGHLIGHTED = Color.FromSRGBA(255, 203, 123, 255);
43 static const ref Color NEUTRAL_INFORMATION = Color.FromSRGBA(255, 255, 255, 255);
44 static const ref Color NEUTRAL_ACTIVE_STANDBY = Color.FromSRGBA(189, 189, 188, 255);
45 static const ref Color IDLE_ACTIVE = Color.FromSRGBA(255, 255, 255, 179);
46 static const ref Color IDLE_DISABLED = Color.FromSRGBA(77, 77, 77, 255);
47 static const ref Color IDLE_DISABLED_TRANSPARENT = Color.FromSRGBA(77, 77, 77, 153);
48 static const ref Color WARNING = Color.FromSRGBA(249, 67, 67, 255);
49 static const ref Color WARNING_DISABLED = Color.FromSRGBA(146, 72, 72, 255);
50 static const ref Color SLIGHT_WARNING = Color.FromSRGBA(234, 203, 131, 255);
51 static const ref Color CONFIRM = Color.FromSRGBA(67, 194, 93, 255);
52 static const ref Color CONTRAST_COLOR = Color.FromSRGBA(226, 167, 79, 255);
53 static const ref Color ONLINE = Color.FromSRGBA(0, 128, 255, 255);
54 static const ref Color EDIT_WIDGET_BACKGROUND = Color.FromSRGBA(42, 42, 42, 255);
55 static const ref Color SUB_HEADER = Color.FromSRGBA(255, 220, 105, 255);
58 static const ref Color EDITOR_ICON_COLOR_NEUTRAL = Color.FromSRGBA(255, 255, 255, 255);
59 static const ref Color EDITOR_ICON_COLOR_DESTROYED = Color(0.25, 0.25, 0.25, 1);
65 static string GetColorAttribute(Color color)
68 return string.Format(
"%1 %2 %3 %4", color.R(), color.G(), color.B(), color.A());
77 static string SRGBAFloatToInt(Color color)
80 return "255, 255, 255, 255";
82 Color returnColor =
new Color(color.R(), color.G(), color.B(), color.A());
85 returnColor.LinearToSRGB();
88 int colorR = returnColor.R() * 255;
89 int colorG = returnColor.G() * 255;
90 int colorB = returnColor.B() * 255;
91 int colorA = returnColor.A() * 255;
93 return string.Format(
"%1, %2, %3, %4", colorR, colorG, colorB, colorA);
99 static const ref Color
DISABLED = Color.FromSRGBA(200, 200, 200, 100);
100 static const ref Color DISABLED_GLOW = Color.FromSRGBA(0, 0, 0, 100);
102 static const ref Color ENABLED = Color.FromSRGBA(255, 255, 255, 255);
103 static const ref Color ENABLED_GLOW = Color.FromSRGBA(162, 162, 162, 255);
105 static const ref Color
DEFAULT = Color.FromSRGBA(255, 255, 255, 255);
106 static const ref Color DEFAULT_GLOW = Color.FromSRGBA(0, 0, 0, 255);
109 static const ref Color
ORANGE = Color.FromSRGBA(226, 167, 80, 255);
110 static const ref Color ORANGE_BRIGHT = Color.FromSRGBA(255, 207, 136, 255);
111 static const ref Color ORANGE_BRIGHT2 = Color.FromSRGBA(255, 233, 200, 255);
112 static const ref Color ORANGE_DARK = Color.FromSRGBA(162, 97, 0, 255);
114 static const ref Color
RED = Color.FromSRGBA(236, 80, 80, 255);
115 static const ref Color RED_BRIGHT = Color.FromSRGBA(255, 134, 134, 255);
116 static const ref Color RED_BRIGHT2 = Color.FromSRGBA(255, 150, 150, 255);
117 static const ref Color RED_DARK = Color.FromSRGBA(162, 0, 0, 255);
119 static const ref Color
BLUE = Color.FromSRGBA(41, 127, 240, 255);
120 static const ref Color BLUE_BRIGHT = Color.FromSRGBA(122, 175, 255, 255);
121 static const ref Color BLUE_BRIGHT2 = Color.FromSRGBA(184, 212, 255, 255);
122 static const ref Color BLUE_DARK = Color.FromSRGBA(27, 92, 189, 255);
124 static const ref Color
GREEN = Color.FromSRGBA(37, 209, 29, 255);
125 static const ref Color GREEN_BRIGHT = Color.FromSRGBA(157, 250, 153, 255);
126 static const ref Color GREEN_BRIGHT2 = Color.FromSRGBA(216, 255, 214, 255);
127 static const ref Color GREEN_DARK = Color.FromSRGBA(28, 157, 22, 255);
133 static const float FADE_RATE_INSTANT = 0;
134 static const float FADE_RATE_SUPER_FAST = 20;
135 static const float FADE_RATE_FAST = 10;
136 static const float FADE_RATE_DEFAULT = 5;
137 static const float FADE_RATE_SLOW = 1;
138 static const float FADE_RATE_SUPER_SLOW = 0.2;
141 static const float PROCESSING_SPINNER_ANIMATION_SPEED = 0.75;
144 static const string FAVORITE_LABEL_ADD =
"#AR-Workshop_ButtonAddToFavourites";
145 static const string FAVORITE_LABEL_REMOVE =
"#AR-Workshop_ButtonRemoveFavourites";
146 static const string BOHEMIA_INTERACTIVE =
"Bohemia Interactive";
147 static const string BOHEMIA_INTERACTIVE_LOC =
"#AR-Author_BI";
150 static const ResourceName ICONS_IMAGE_SET =
"{3262679C50EF4F01}UI/Textures/Icons/icons_wrapperUI.imageset";
151 static const ResourceName ICONS_GLOW_IMAGE_SET =
"{00FE3DBDFD15227B}UI/Textures/Icons/icons_wrapperUI-glow.imageset";
153 static const string ACTION_DISPLAY_ICON_SCALE_BIG =
"1.25";
154 static const string ACTION_DISPLAY_ICON_SCALE_VERY_BIG =
"1.5";
157 static const float DISABLED_WIDGET_OPACITY = 0.3;
158 static const float ENABLED_WIDGET_OPACITY = 1;
160 static const float DISABLED_WIDGET_SATURATION = 0.5;
161 static const float ENABLED_WIDGET_SATURATION = 1;
163 static const int LOADING_SCREEN_Z_ORDER = 1000;
164 static const int SPLASH_SCREEN_Z_ORDER = 1001;
167 static const string MENU_ACTION_LEFT =
"MenuLeft";
168 static const string MENU_ACTION_RIGHT =
"MenuRight";
169 static const string MENU_ACTION_UP =
"MenuUp";
170 static const string MENU_ACTION_DOWN =
"MenuDown";
171 static const string MENU_ACTION_BACK =
"MenuBack";
172 static const string MENU_ACTION_SELECT =
"MenuSelect";
175 static const string ICON_SERVICES_ISSUES =
"connection-issues";
176 static const string ICON_CONNECTION =
"connection";
177 static const string ICON_DISCONNECTION =
"disconnection";
179 static const string MESSAGE_SERVICES_ISSUES =
"#AR-CoreMenus_Tooltips_UnavailableServices";
180 static const string MESSAGE_CONNECTING =
"#AR-Workshop_Connecting";
181 static const string MESSAGE_DISCONNECTION =
"#AR-CoreMenus_Tooltips_NoConnection";
185 static string GetActionDisplayStateAttribute(SCR_EActionDisplayState state)
187 return typename.EnumToString(SCR_EActionDisplayState, state);
193 enum SCR_EActionDisplayState