Player.GetNickName (Civ5 API)

From Civilization Modding Wiki
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:GetNickName()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

ActionInfoPanel.lua

UI/InGame/WorldView/ActionInfoPanel.lua
0244
pleaseWait = pleaseWait .. "[NEWLINE]" .. "(" .. otherPlayer:GetNickName() .. ") " .. playerName;


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0144
TruncateString( controlTable.String, 200, Players[fromPlayer]:GetNickName() );
0157
TruncateString( controlTable.String, 200, Players[toPlayer]:GetNickName() );
0300
TruncateString( Controls.LengthTest, Controls.ChatPull:GetSizeX(), Locale.ConvertTextKey("TXT_KEY_DIPLO_TO_PLAYER", Players[ iPlayer ]:GetNickName()));
0356
TruncateString( textControl, Controls.ChatPull:GetSizeX()-20, Locale.ConvertTextKey("TXT_KEY_DIPLO_TO_PLAYER", pPlayer:GetNickName()));


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0096
if( pOtherPlayer:GetNickName() ~= "" and pOtherPlayer:IsHuman() ) then
0098
controlTable.PlayerLabel:SetText( pOtherPlayer:GetNickName() );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0061
otherName = pOtherPlayer:GetNickName();
0161
thirdName = pThirdPlayer:GetNickName();


DiploList.lua

UI/InGame/DiploList.lua
0215
if(g_pPlayer:GetNickName() ~= "" and Game.IsGameMultiPlayer()) then
0216
TruncateString(Controls.LeaderName, textBoxSize, g_pPlayer:GetNickName());
0262
if(pOtherPlayer:GetNickName() ~= "" and Game.IsGameMultiPlayer()) then
0263
TruncateString(controlTable.LeaderName, textBoxSize, pOtherPlayer:GetNickName());


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0202
if(pOtherPlayer:GetNickName() ~= "" and pOtherPlayer:IsHuman()) then


DiploVotePopup.lua

UI/InGame/Popups/DiploVotePopup.lua
0069
if(pOtherPlayer:GetNickName() ~= "" and Game:IsNetworkMultiPlayer()) then
0070
TruncateString(controlTable.ButtonText, textBoxSize, pOtherPlayer:GetNickName());


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0198
if(pAIPlayer:GetNickName() ~= "" and Game:IsNetworkMultiPlayer()) then
0199
strLeaderName = pAIPlayer:GetNickName();


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0878
if(pPlayer:GetNickName() ~= "" and Game:IsNetworkMultiPlayer()) then
0879
strLeaderName = pPlayer:GetNickName();


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0204
if(Game:IsNetworkMultiPlayer() and pPlayer:GetNickName() ~= "") then
0208
Controls.LeaderFrame:SetToolTipString( pPlayer:GetNickName() );
0326
TruncateString(Controls.DetailsLeader, availableTextExtent, pPlayer:GetNickName());


GameplayUtilities.lua

Gameplay/Lua/GameplayUtilities.lua
0020
local nickName = player:GetNickName();


MPList.lua

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


PlotMouseoverInclude.lua

UI/InGame/PlotMouseoverInclude.lua
0271
if (pPlayer:GetNickName() ~= nil and pPlayer:GetNickName() ~= "") then
0272
strUnitText = strUnitText .. Locale.ConvertTextKey("TXT_KEY_MULTIPLAYER_UNIT_TT", pPlayer:GetNickName(), pPlayer:GetCivilizationAdjectiveKey(), unit:GetNameKey());
0353
strOwner = Locale.ConvertTextKey("TXT_KEY_PLOTROLL_OWNED_PLAYER", pPlayer:GetNickName());


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0932
Controls.ThemText:SetText( Locale.ConvertTextKey( "TXT_KEY_DIPLO_ITEMS_LABEL", Locale.ConvertTextKey( g_pThem:GetNickName() ) ) );
0986
Locale.ConvertTextKey( "TXT_KEY_DIPLO_ITEMS_LABEL", g_pThem:GetNickName() ));
2774
szName = pLoopPlayer:GetNickName();


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1582
toolTipString = Locale.ConvertTextKey("TXT_KEY_MULTIPLAYER_UNIT_TT", pPlayer:GetNickName(), pPlayer:GetCivilizationAdjectiveKey(), pUnit:GetNameKey());


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0383
strPlayer = pPlayer:GetNickName();
0458
if(leadAI:GetNickName() ~= "" and Game:IsNetworkMultiPlayer()) then
0459
strCiv = Locale.Lookup(pPlayer:GetNickName());
0903
controlTableTT:SetToolTipString(pPlayer:GetNickName());


VictoryProgress.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua
0459
strCiv = pPlayer:GetNickName();


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0072
strName = strName .. " " .. pPlayer:GetNickName();
0134
strVote = pVoteCastPlayer:GetNickName();



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.