UIElement.SetColorVal (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, 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:SetColorVal(int arg0, int arg1 = nil, int arg2 = nil, int arg3 = nil)


Parameters

arg0: No description available.
arg1: No description available.
arg2: No description available.
arg3: No description available.


Source code samples

Redundant occurences have been removed.

ChoosePantheonPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0109
itemInstance.Box:SetColorVal(unpack(ltBlue));
0111
itemInstance.Box:SetColorVal(unpack(dkBlue));


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0555
agentEntry.Base:SetColorVal(0,0,0,0);
0566
agentEntry.Base:SetColorVal(unpack(bTickTock and g_PianoKeys[0] or g_PianoKeys[1]));
0973
entry.Base:SetColorVal(unpack(bTickTock and g_PianoKeys[0] or g_PianoKeys[1]));
1476
instance.Base:SetColorVal(unpack(bTickTock and g_PianoKeys[0] or g_PianoKeys[1]));


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0440
lineSegment.LineSegment:SetColorVal(color.Red, color.Green, color.Blue, color.Alpha);
0719
graphLegendInstance.LegendLine:SetColorVal(color.Red, color.Green, color.Blue, color.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.