Player.GetPlayerColors (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 function is a member of Player.

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


Usage

Vector4, Vector4 Player:GetPlayerColors()


Returned Values

No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0105
local primaryColor, secondaryColor = player:GetPlayerColors();
0430
local _, originalColor = pOriginalOwner:GetPlayerColors();


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0048
local primaryColor, secondaryColor = pOtherPlayer:GetPlayerColors();


DiploList.lua

UI/InGame/DiploList.lua
0427
local _, primaryColor = pOtherPlayer:GetPlayerColors();


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0104
local iconColor, flagColor = pPlayer:GetPlayerColors();


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
1311
local primary,secondary = minorCivPlayer:GetPlayerColors();


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0085
local primaryColor, secondaryColor = pPlayer:GetPlayerColors();



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.