UIElement.SetColor (Civ5 API)

From Civilization Modding Wiki
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This method is declared by ControlBase.

This is an instance method, invoke it with a colon.


Usage

void UIElement:SetColor(table fadeColor, int arg1)


Parameters

fadeColor: No description available.
arg1: No description available.


Source code samples

Too many occurences. Only 50 out of 145 are listed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0112
controls.CityBannerBackground:SetColor(backgroundColor);
0114
controls.CityBannerBGLeftHL:SetColor( backgroundColor );
0115
controls.CityBannerBGRightHL:SetColor( backgroundColor );
0116
controls.CityBannerRightBackground:SetColor( backgroundColor );
0117
controls.CityBannerLeftBackground:SetColor( backgroundColor );
0134
controls.CityProductionName:SetColor(textColor200, 0);
0137
controls.CityName:SetColor(textColor, 0);
0138
controls.CityName:SetColor(textColorShadow, 1);


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0089
Controls.TitleLabel:SetColor(textColor, 0);
0103
Controls.CivIcon:SetColor(iconColor);


DiploList.lua

UI/InGame/DiploList.lua
0438
controlTable.MinorName:SetColor( color, 0 );
0463
controlTable.LeaderPortrait:SetColor( color );
0551
controls.StatusIcon:SetColor( {x=1, y=1, z=1, w=1 } );
0560
controls.StatusIcon:SetColor(color);


DiploList.lua (G&K)

DLC/Expansion/UI/InGame/DiploList.lua
0485
controlTable.StatusIcon:SetColor( {x=1, y=1, z=1, w=1 } );


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0083
controlTable.LeaderPortrait:SetColor(iconColor);


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0225
Controls.BackgroundImage:SetColor({x=1,y=1,z=1,w=1});
0237
Controls.BackgroundImage:SetColor({x=1,y=1,z=1,w=0.125});


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0076
Controls.UnitBackColor:SetColor( flagColor );
0077
Controls.UnitIcon:SetColor( iconColor );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
1018
entry.CivilizationName:SetColor(textColor, 0);
1019
entry.CityName:SetColor(textColor, 0);
1020
entry.CityPopulation:SetColor(textColor, 0);
1140
entry.CivIcon:SetColor(cityInfo.CivilizationIconColor);


FoRScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/FoRScenarioLoadScreen.lua
0165
controlTable.Icon:SetColor( primaryColorVector );
0169
controlTable.TeamColor:SetColor( secondaryColorVector );


HallOfFame.lua

UI/InGame/Popups/HallOfFame.lua
0085
controlTable.CivIconBG:SetColor( white );
0104
controlTable.WinCivIcon:SetColor( primaryColorVector );
0110
controlTable.CivIconBG:SetColor( secondaryColorVector );


IconSupport.lua

UI/IconSupport.lua
0191
iconControl:SetColor( primaryColorVector );
0210
teamColorControl:SetColor( primaryColorVector );
0212
teamColorControl:SetColor( secondaryColorVector );
0229
teamColorControl:SetColor( white );


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0823
listing:SetColor(ListingBoxHighlightColor);
0827
listing:SetColor(ListingBoxDefaultColor);


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0238
controlTable.KeyColor:SetColor(keyColor);


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0263
messageInstance.MessageText:SetColor(colorVector, 0);
0265
messageInstance.MessageText:SetColor(defaultColorVector, 0);


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0379
thisBack:SetColor( fadeColor );
0397
thisBack:SetColor( fullColor );
0471
thisPolicyIcon.PolicyImage:SetColor( fadeColorRV );


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0456
Controls.UnitIconBackground:SetColor( flagColor );


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0294
Controls.ApolloIcon:SetColor(white);
0347
controlTable[ control ]:SetColor( white );
0441
Controls.Utopia:SetColor( {x=1, y=1, z=1, w=1 } );
0585
controlTable.ApolloIcon:SetColor(white);
0793
controlTable.Utopia:SetColor( {x=1, y=1, z=1, w=1 } );
0923
controlTable:SetColor(darken);


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0093
controlTable.Portrait:SetColor(textColor);
0161
controlTable.PlayerNameText:SetColor(backgroundColor, 0);



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.