Player.GetName (Civ5 API)

From Civilization Modding Wiki
Revision as of 08:20, 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 function is a member of Player.

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


Usage

string Player:GetName(string form)


Returned Value

No description available.

Parameters

form: No description available.


Source code samples

Redundant occurences have been removed.

ActionInfoPanel.lua

UI/InGame/WorldView/ActionInfoPanel.lua
0243
local playerName = otherPlayer:GetName();


ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0276
takenReligions[eReligion] = pPlayer:GetName();


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0102
controlTable.PlayerLabel:SetText( pOtherPlayer:GetName() );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0063
otherName = pOtherPlayer:GetName();


DiploList.lua

UI/InGame/DiploList.lua
0265
controlTable.LeaderName:SetText( pOtherPlayer:GetName() );


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0201
strLeaderName = pAIPlayer:GetName();
0596
AddLeaderButton( iPlayerLoop, pThirdPartyPlayer:GetName() );
0816
AddLeaderButton( iPlayerLoop, Players[iPlayerLoop]:GetName() );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0881
strLeaderName = pPlayer:GetName();


MPList.lua

UI/InGame/WorldView/MPList.lua
0153
TruncateString( controlTable.Name, textSize, pPlayer:GetName() );


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
1287
LeaderName = player:GetName(),


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0934
Controls.ThemText:SetText( Locale.ConvertTextKey( "TXT_KEY_DIPLO_ITEMS_LABEL", Locale.ConvertTextKey( g_pThem:GetName() ) ) );
0944
local strString = Locale.ConvertTextKey("TXT_KEY_DIPLO_LEADER_SAYS", g_pThem:GetName());
2776
szName = pLoopPlayer:GetName();


TurnsRemaining.lua - DLC_02 DLC

DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0194
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_NEWWORLD_SCENARIO_OTHER_CIRCUMNAVIGATION", player:GetName(), iRemaining);


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0636
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_OTHER_CARAVEL", player:GetName(), iVPReceived, (5 - iNumCaravels));
0773
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_OTHER_ADOPTED_PROTESTANTISM", pPlayer:GetName());


VoteResultsPopup.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/VoteResultsPopup.lua
0296
strVotesToWinString = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_HRE_WINNER", Players[iBestVotePlayer]:GetName());



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.