5 static int COLOR_NORMAL_TEXT =
ARGB( 255, 255, 255, 255 );
6 static int COLOR_NORMAL_PANEL =
ARGB( 140, 0, 0, 0 );
7 static int COLOR_HIGHLIGHT_TEXT =
ARGB( 255, 200, 0, 0 );
8 static int COLOR_HIGHLIGHT_PANEL =
ARGB( 255, 0, 0, 0 );
9 static int COLOR_SELECTED_TEXT =
ARGB( 255, 255, 255, 255 );
10 static int COLOR_SELECTED_PANEL =
ARGB( 255, 200, 0, 0 );
11 static int COLOR_DISABLED_TEXT =
ARGB( 100, 255, 255, 255 );
12 static int COLOR_DISABLED_PANEL =
ARGB( 140, 0, 0, 0 );
14 static int ITEM_BACKGROUND_COLOR =
ARGB( 50, 255, 255, 255 );
15 static int BASE_COLOR =
ARGB( 10, 255, 255, 255 );
16 static int RED_COLOR =
ARGB( 150, 255, 1, 1 );
17 static int GREEN_COLOR =
ARGB( 150, 1, 255, 1 );
18 static int SWAP_COLOR =
ARGB( 150, 135, 206, 250 );
19 static int FSWAP_COLOR =
ARGB( 150, 35, 106, 150 );
20 static int COMBINE_COLOR =
ARGB( 150, 255, 165, 0 );
32 void SetColor(
Widget w,
int color )
34 if ( w.FindAnyWidget(
"Cursor" ) )
36 w.FindAnyWidget(
"Cursor" ).SetColor( color );
40 string name = w.GetName();
41 name.Replace(
"PanelWidget",
"Cursor" );
42 Widget w2 = w.GetParent().FindAnyWidget(
name );
60 if ( item.GetHierarchyParent() && item.GetHierarchyParent() != player )
67 float temperature = item.GetTemperature();