End-Turn Button Color-Change!
-----------------------------
I discovered the settings for the End Turn Button's colors while perusing the theme files for my HUD mod. A tutorial on how to change it follows.
The colors for the End Turn button are defined in the following file:
C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Resource\Themes\Civ4\Civ4Theme_Common.thm
Lines 247-250 are the relevant lines.
An easy, quick but sort of dirty way to change the colors of the End turn button follows:
Please note that this change cannot be made mod-specific. There is no CustomResource folder, so changing something in the Resource folder changes it for the core game, and affects all mods as well.
Meaning of the Line parts:
GColor .EndTurnDot_Green = GColor( 0,192, 0,255);
The first part, GColor .EndTurnDot_Green is defining a property and its type. in this case, the property is EndTurnDot_Green, and it is of type GColor (a color).
This is a subproperty of another set of properties, etc... but in this case it is only used for the end-turn button.
(this property's full path is SF_CtrlTheme_Civ4_Control_Color_EndTurnDot_Green)
The second part, the = sign, is an assignment operator, as you probably guessed. We are assigning the right half to the property.
The final part, GColor( 0,192, 0,255);, is the actual color definition. This is in RGBO format - Red, Green, Blue, Opacity.
This is the part we are interested in.
EndTurnDot_Green: Color of button when there are still things that can be done this turn
EndTurnDot_Red: "bright" color of button when there is nothing else to do
EndTurnDot_DarkRed: "dark" color of button when there is nothing else to do
EndTurnDot_Disabled: Not quite sure, but the RGB value is gray, so i'd say just leave it alone. (maybe used in MP when it is not your turn? I don't play MP, so....)
Basically just change the RGB Values appropriately. the Opacity value (the 4th value) should be left alone -- 255 is 100% Opaque, which is ideal for this button.
For example, to have the button stay a bright blue during your turn, and flash between Yellow at the end of the turn, use the following lines:
Making Red and DarkRed the same color will erase the illusion of the button "flashing"
Also understand that you are NOT changing the NAME of the color (IE, EndTurnDot_Red) -- you are only changing the RGB values. Changign the name WILL cause it to break. (It will still run the game, just look very funny) The reason for this is because the EndTurn button is actually *drawn* in another file, this is just the definition for the reference. the other file references the NAME of the color, so if you change the name it will not be able to find it. ONLY CHANGE THE RGB VALUES
Addendum:
This file is used to define lots of portions of the HUD. changing anything other than the values noted above could result in drastic changes to the look of your HUD. Edit with caution, and ALWAYS make a backup.
-----------------------------
I discovered the settings for the End Turn Button's colors while perusing the theme files for my HUD mod. A tutorial on how to change it follows.
The colors for the End Turn button are defined in the following file:
C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Resource\Themes\Civ4\Civ4Theme_Common.thm
Lines 247-250 are the relevant lines.
An easy, quick but sort of dirty way to change the colors of the End turn button follows:
Please note that this change cannot be made mod-specific. There is no CustomResource folder, so changing something in the Resource folder changes it for the core game, and affects all mods as well.
Meaning of the Line parts:
GColor .EndTurnDot_Green = GColor( 0,192, 0,255);
The first part, GColor .EndTurnDot_Green is defining a property and its type. in this case, the property is EndTurnDot_Green, and it is of type GColor (a color).
This is a subproperty of another set of properties, etc... but in this case it is only used for the end-turn button.
(this property's full path is SF_CtrlTheme_Civ4_Control_Color_EndTurnDot_Green)
The second part, the = sign, is an assignment operator, as you probably guessed. We are assigning the right half to the property.
The final part, GColor( 0,192, 0,255);, is the actual color definition. This is in RGBO format - Red, Green, Blue, Opacity.
This is the part we are interested in.
EndTurnDot_Green: Color of button when there are still things that can be done this turn
EndTurnDot_Red: "bright" color of button when there is nothing else to do
EndTurnDot_DarkRed: "dark" color of button when there is nothing else to do
EndTurnDot_Disabled: Not quite sure, but the RGB value is gray, so i'd say just leave it alone. (maybe used in MP when it is not your turn? I don't play MP, so....)
Basically just change the RGB Values appropriately. the Opacity value (the 4th value) should be left alone -- 255 is 100% Opaque, which is ideal for this button.
For example, to have the button stay a bright blue during your turn, and flash between Yellow at the end of the turn, use the following lines:
Code:
GColor .EndTurnDot_Green = GColor( 0, 0,192,255);
GColor .EndTurnDot_Red = GColor(255,242, 0,255);
GColor .EndTurnDot_DarkRed = GColor(171,160, 0,255);
GColor .EndTurnDot_Disable = GColor(128,128,128,255);
Making Red and DarkRed the same color will erase the illusion of the button "flashing"
Also understand that you are NOT changing the NAME of the color (IE, EndTurnDot_Red) -- you are only changing the RGB values. Changign the name WILL cause it to break. (It will still run the game, just look very funny) The reason for this is because the EndTurn button is actually *drawn* in another file, this is just the definition for the reference. the other file references the NAME of the color, so if you change the name it will not be able to find it. ONLY CHANGE THE RGB VALUES
Addendum:
This file is used to define lots of portions of the HUD. changing anything other than the values noted above could result in drastic changes to the look of your HUD. Edit with caution, and ALWAYS make a backup.