Player.GetNameKey (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Player. This is an instance method, invoke it with a colon. |
Usage
string Player:GetNameKey()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
CityStateDiploPopup.lua
UI/InGame/Popups/CityStateDiploPopup.lua
0387
|
strWarString = strWarString .. Locale.ConvertTextKey(pOtherPlayer:GetNameKey()); |
0432
|
local strTargetPlayerKey = Players[iQuestData1]:GetNameKey(); |
CityStateStatusHelper.lua (G&K)
DLC/Expansion/UI/CityStateStatusHelper.lua
0490
|
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_KILL_CITY_STATE_FORMAL", Players[iQuestData1]:GetNameKey() ); |
DiploList.lua
UI/InGame/DiploList.lua
0518
|
controlTable.QuestIcon:LocalizeAndSetToolTip( "TXT_KEY_CITY_STATE_QUEST_KILL_CITY_STATE_FORMAL", Players[iQuestData1]:GetNameKey() ); |
DiploRelationships.lua
UI/InGame/Popups/DiploRelationships.lua
0205
|
controlTable.LeaderName:LocalizeAndSetText( pOtherPlayer:GetNameKey() ); |
LiberateMinorPopup.lua
UI/InGame/PopupsGeneric/LiberateMinorPopup.lua
0013
|
popupText = Locale.ConvertTextKey("TXT_KEY_POPUP_CITY_CAPTURE_LIBERATE_MINOR", cityNameKey, pMinor:GetNameKey()); |
PuppetCityPopup.lua
UI/InGame/PopupsGeneric/PuppetCityPopup.lua
0050
|
local strToolTip = Locale.ConvertTextKey("TXT_KEY_POPUP_CITY_CAPTURE_INFO_LIBERATE", Players[iLiberatedPlayer]:GetNameKey()); |
SocialPolicyPopup.lua
UI/InGame/Popups/SocialPolicyPopup.lua
0260
|
local strText = Locale.ConvertTextKey(strTextKey, player:GetNameKey(), player:GetCivilizationShortDescriptionKey()); |
TradeLogic.lua
UI/InGame/WorldView/TradeLogic.lua
0929
|
Controls.UsText:SetText( Locale.ConvertTextKey( "TXT_KEY_DIPLO_ITEMS_LABEL", Locale.ConvertTextKey( g_pUs:GetNameKey() ) ) ); |
0954
|
Controls.LeaderNameItems:SetText(Locale.ConvertTextKey("TXT_KEY_DIPLO_ITEMS_LABEL",Locale.ConvertTextKey(g_pThem:GetNameKey()))); |
VictoryProgress.lua
UI/InGame/Popups/VictoryProgress.lua
0871
|
strPlayer = pPlayer:GetNameKey(); |
VictoryProgress.lua (G&K)
DLC/Expansion/Scenarios/FallOfRomeScenario/VictoryProgress.lua
0873
|
strPlayer = Locale.ConvertTextKey(pPlayer:GetNameKey()); |
VoteResultsPopup.lua
UI/InGame/Popups/VoteResultsPopup.lua
0074
|
strName = strName .. " " .. Locale.ConvertTextKey(pPlayer:GetNameKey()); |
0136
|
strVote = Locale.ConvertTextKey(pVoteCastPlayer:GetNameKey()); |
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.