UIElement.SetColorByName (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:40, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:SetColorByName(string colorSet)


Parameters

colorSet: No description available.


Source code samples

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

DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0148
controlTable.String:SetColorByName( "Green_Chat" );
0161
controlTable.String:SetColorByName( "Magenta_Chat" );
0164
controlTable.String:SetColorByName( "Gray_Chat" );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
1029
entry.CityName:SetColorByName(colorSet);
1030
entry.CityPopulation:SetColorByName(colorSet);


Lobby.lua

UI/FrontEnd/Multiplayer/Lobby.lua
0234
controlTable.MembersLabel:SetColorByName( "Beige_Black" );
0350
controlTable.DLCHostedLabel:SetColorByName( "Beige_Black" );
0352
controlTable.DLCHostedLabel:SetColorByName( "Gray_Black" );


MPList.lua

UI/InGame/WorldView/MPList.lua
0169
controlTable.Name:SetColorByName( "COLOR_NEGATIVE_TEXT" );
0171
controlTable.Name:SetColorByName( "White" );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1008
Controls.UsPocketGold:GetTextControl():SetColorByName("Gray_Black");
1011
Controls.UsPocketGold:GetTextControl():SetColorByName("Beige_Black");
1023
Controls.ThemPocketGold:GetTextControl():SetColorByName("Gray_Black");
1042
Controls.UsPocketGoldPerTurn:GetTextControl():SetColorByName("Gray_Black");
1057
Controls.ThemPocketGoldPerTurn:GetTextControl():SetColorByName("Gray_Black");
1060
Controls.ThemPocketGoldPerTurn:GetTextControl():SetColorByName("Beige_Black");
1083
Controls.UsPocketOpenBorders:GetTextControl():SetColorByName("Gray_Black");
1091
Controls.UsPocketOpenBorders:GetTextControl():SetColorByName("Beige_Black");
1108
Controls.ThemPocketOpenBorders:GetTextControl():SetColorByName("Beige_Black");
1143
Controls.UsPocketDefensivePact:GetTextControl():SetColorByName("Gray_Black");
1154
Controls.ThemPocketDefensivePact:GetTextControl():SetColorByName("Gray_Black");
1157
Controls.ThemPocketDefensivePact:GetTextControl():SetColorByName("Beige_Black");
1198
Controls.UsPocketResearchAgreement:GetTextControl():SetColorByName("Gray_Black");
1201
Controls.UsPocketResearchAgreement:GetTextControl():SetColorByName("Beige_Black");
1209
Controls.ThemPocketResearchAgreement:GetTextControl():SetColorByName("Gray_Black");
1212
Controls.ThemPocketResearchAgreement:GetTextControl():SetColorByName("Beige_Black");
1248
Controls.UsPocketTradeAgreement:GetTextControl():SetColorByName("Beige_Black");
1256
Controls.ThemPocketTradeAgreement:GetTextControl():SetColorByName("Gray_Black");
1259
Controls.ThemPocketTradeAgreement:GetTextControl():SetColorByName("Beige_Black");
1276
Controls.UsPocketCities:GetTextControl():SetColorByName("Beige_Black");
1280
Controls.UsPocketCities:GetTextControl():SetColorByName("Gray_Black");
1294
Controls.ThemPocketCities:GetTextControl():SetColorByName("Beige_Black");
1298
Controls.ThemPocketCities:GetTextControl():SetColorByName("Gray_Black");
1313
Controls.ThemPocketOtherPlayer:GetTextControl():SetColorByName( "Gray_Black" );
1319
Controls.UsPocketOtherPlayer:GetTextControl():SetColorByName( "Beige_Black" );
1324
Controls.ThemPocketOtherPlayer:GetTextControl():SetColorByName( "Beige_Black" );
1378
Controls.UsPocketLuxury:GetTextControl():SetColorByName("Beige_Black");
1386
Controls.UsPocketLuxury:GetTextControl():SetColorByName("Gray_Black");
1393
Controls.UsPocketStrategic:GetTextControl():SetColorByName("Beige_Black");
1401
Controls.UsPocketStrategic:GetTextControl():SetColorByName("Gray_Black");
1445
Controls.ThemPocketLuxury:GetTextControl():SetColorByName("Beige_Black");
1453
Controls.ThemPocketLuxury:GetTextControl():SetColorByName("Gray_Black");
1460
Controls.ThemPocketStrategic:GetTextControl():SetColorByName("Beige_Black");


TradeLogic.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/TradeLogic.lua
1101
Controls.UsPocketAllowEmbassy:GetTextControl():SetColorByName("Gray_Black");
1108
Controls.UsPocketAllowEmbassy:GetTextControl():SetColorByName("Beige_Black");
1124
Controls.ThemPocketAllowEmbassy:GetTextControl(): SetColorByName("Gray_Black");
1131
Controls.ThemPocketAllowEmbassy:GetTextControl():SetColorByName("Beige_Black");
1370
Controls.UsPocketDoF:GetTextControl():SetColorByName("Gray_Black");
1381
Controls.UsPocketDoF:GetTextControl():SetColorByName("Beige_Black");


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0164
controlTable.PlayerNameText:SetColorByName("Beige_Black_Alpha");



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.