Player.GetCivilizationShortDescriptionKey (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:GetCivilizationShortDescriptionKey()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0466
local strShortDescKey = player:GetCivilizationShortDescriptionKey();


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0087
strTitle = Locale.ConvertTextKey("{"..pPlayer:GetCivilizationShortDescriptionKey()..":upper}");
0266
Controls.AllyInfo:SetText("[COLOR_POSITIVE_TEXT]" .. Locale.ConvertTextKey(Players[iAlly]:GetCivilizationShortDescriptionKey()) .. "[ENDCOLOR]");
0435
local strPlayerKey = Players[iQuestData1]:GetCivilizationShortDescriptionKey();
0636
local warConfirmString = Locale.ConvertTextKey("TXT_KEY_CONFIRM_WAR_PROTECTED_CITY_STATE", Players[g_iMinorCivID]:GetCivilizationShortDescriptionKey());
0647
warConfirmString = warConfirmString .. ", " .. Locale.ConvertTextKey(Players[iPlayerLoop]:GetCivilizationShortDescriptionKey());
0649
warConfirmString = warConfirmString .. " " .. Locale.ConvertTextKey(Players[iPlayerLoop]:GetCivilizationShortDescriptionKey());


CityStateDiploPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0257
strAllyTT = Locale.ConvertTextKey("TXT_KEY_CITY_STATE_ALLY_TT", Players[iAlly]:GetCivilizationShortDescriptionKey(), iInfUntilAllied);
1019
table.insert(listofProtectingCivs, Players[iPlayerLoop]:GetCivilizationShortDescriptionKey());
1026
local cityStateName = Locale.Lookup(pMinor:GetCivilizationShortDescriptionKey());


CityStateGreetingPopup.lua

UI/InGame/Popups/CityStateGreetingPopup.lua
0025
local strNameKey = pPlayer:GetCivilizationShortDescriptionKey();


CityStateStatusHelper.lua (G&K)

DLC/Expansion/UI/CityStateStatusHelper.lua
0226
local strShortDescKey = pMinor:GetCivilizationShortDescriptionKey();
0492
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_FIND_PLAYER_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );
0496
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_GIVE_GOLD_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );
0498
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_PLEDGE_TO_PROTECT_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );
0526
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_BULLY_CITY_STATE_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );
0528
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_DENOUNCE_MAJOR_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );
0546
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_NOTIFICATION_MINOR_BARBS_QUEST", Players[iMinor]:GetCivilizationShortDescriptionKey() );


ConfirmGiftPopup.lua

UI/InGame/PopupsGeneric/ConfirmGiftPopup.lua
0021
strCivName = Locale.ConvertTextKey(pGiftedPlayer:GetCivilizationShortDescriptionKey());


DeclareWarMovePopup.lua

UI/InGame/PopupsGeneric/DeclareWarMovePopup.lua
0049
popupText = popupText .. ", " .. Locale.ConvertTextKey(Players[iPlayerLoop]:GetCivilizationShortDescriptionKey());
0051
popupText = popupText .. " " .. Locale.ConvertTextKey(Players[iPlayerLoop]:GetCivilizationShortDescriptionKey());


DiploList.lua

UI/InGame/DiploList.lua
0526
controlTable.QuestIcon:LocalizeAndSetToolTip( "TXT_KEY_CITY_STATE_QUEST_FIND_PLAYER_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0537
pStack.AllyInfo:SetText("[COLOR_POSITIVE_TEXT]" .. Locale.ConvertTextKey(Players[iAlly]:GetCivilizationShortDescriptionKey()) .. "[ENDCOLOR]");


DiscussionDialog.lua (G&K)

DLC/Expansion/UI/InGame/LeaderHead/DiscussionDialog.lua
0308
strButton1Tooltip = Locale.ConvertTextKey("TXT_KEY_DIPLO_DISCUSS_PROTECTED_MINOR_FORGIVE_TT", pAIPlayer:GetCivilizationShortDescriptionKey(), pMinor:GetCivilizationShortDescriptionKey(), iInfLoss);
0309
strButton2Tooltip = Locale.ConvertTextKey("TXT_KEY_DIPLO_DISCUSS_PROTECTED_MINOR_DISPUTE_TT", pAIPlayer:GetCivilizationShortDescriptionKey(), pMinor:GetCivilizationShortDescriptionKey());


InfoTooltipInclude.lua

UI/InGame/InfoTooltipInclude.lua
0334
local strShortDescKey = pPlayer:GetCivilizationShortDescriptionKey();


MinorCivGoldPopup.lua

UI/InGame/PopupsGeneric/MinorCivGoldPopup.lua
0063
popupText = Locale.ConvertTextKey("TXT_KEY_POPUP_MINOR_GOLD_GIFT", pPlayer:GetCivilizationShortDescriptionKey());
0066
popupText = Locale.ConvertTextKey("TXT_KEY_POPUP_MINOR_GOLD_GIFT_CANT", iLowestGold, pPlayer:GetCivilizationShortDescriptionKey());


PlotMouseoverInclude.lua

UI/InGame/PlotMouseoverInclude.lua
0025
resultStr = resultStr .. "[COLOR_POSITIVE_TEXT]" .. Locale.ConvertTextKey("TXT_KEY_CITY_STATE_BARB_QUEST_LONG",  pOtherPlayer:GetCivilizationShortDescriptionKey()) .. "[ENDCOLOR]";
0356
strOwner = Locale.ConvertTextKey("TXT_KEY_PLOTROLL_OWNED_CIV", pPlayer:GetCivilizationShortDescriptionKey());


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0260
local strText = Locale.ConvertTextKey(strTextKey, player:GetNameKey(), player:GetCivilizationShortDescriptionKey());


TurnsRemaining.lua - DLC_04 DLC

DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0046
local londonText = Locale.ConvertTextKey("TXT_KEY_1066_SCENARIO_LONDON_STATUS", Players[iLondonPlayer]:GetCivilizationShortDescriptionKey());
0160
local strPlayerKey = Players[iCSPlayer]:GetCivilizationShortDescriptionKey();
0214
local playerName = Locale.ConvertTextKey(Players[iPlayerForName]:GetCivilizationShortDescriptionKey());


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0363
local sMessage = Locale.ConvertTextKey("TXT_KEY_STEAMPUNK_SCENARIO_VICTORY_CATEGORY_NOTIF_TT", pNewOwner:GetCivilizationShortDescriptionKey(), sTitle);
0364
local sSummary = Locale.ConvertTextKey("TXT_KEY_STEAMPUNK_SCENARIO_VICTORY_CATEGORY_NOTIF_SUMMARY", pNewOwner:GetCivilizationShortDescriptionKey(), sTitle);


VictoryProgress.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua
0703
local strLeaderShortDesc = pLeader:GetCivilizationShortDescriptionKey();
0717
local strLeaderLoopShortDesc = Locale.ConvertTextKey(pLeaderLoop:GetCivilizationShortDescriptionKey());
0789
local strLastVoteLeader = pLastVoteLeader:GetCivilizationShortDescriptionKey();


VictoryProgress.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/VictoryProgress.lua
0713
local strLeaderLoopShortDesc = pLeaderLoop:GetCivilizationShortDescriptionKey();


VictoryStatus.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0086
local sCivAboutToWinKey = Players[giPlayerAboutToWin]:GetCivilizationShortDescriptionKey();
0117
local sCivDesc = Locale.Lookup(Players[iPlayer]:GetCivilizationShortDescriptionKey());


VoteResultsPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VoteResultsPopup.lua
0131
strVoteCastTT = Locale.ConvertTextKey("TXT_KEY_POP_UN_ELEC_VOTE_TT_CITYSTATE_ALT", pPlayer:GetCivilizationShortDescriptionKey(), pVoteCastPlayer:GetCivilizationShortDescriptionKey());
0133
strVoteCastTT = Locale.ConvertTextKey("TXT_KEY_POP_UN_ELEC_VOTE_TT_CIV_ALT", pPlayer:GetCivilizationShortDescriptionKey(), pVoteCastPlayer:GetCivilizationShortDescriptionKey());



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.