City.GetName (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of City. This is an instance method, invoke it with a colon. |
Usage
string City:GetName()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
CityBannerManager.lua (G&K)
DLC/Expansion/UI/InGame/CityBannerManager.lua
0286
|
controls.SpyIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_SPY_YOUR_CITY_TT", strSpyRank, strSpyName, city:GetName(), strSpyRank, strSpyName); |
0288
|
controls.SpyIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_SPY_CITY_STATE_TT", strSpyRank, strSpyName, city:GetName(), strSpyRank, strSpyName); |
0290
|
controls.SpyIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_SPY_OTHER_CIV_TT", strSpyRank, strSpyName, city:GetName(), strSpyRank, strSpyName, strSpyRank, strSpyName); |
CityList.lua
UI/InGame/CityList.lua
0129
|
sortEntry.CityName = pCity:GetName(); |
EconomicGeneralInfo.lua
UI/InGame/Popups/EconomicGeneralInfo.lua
0211
|
instance.CityName:SetText( pCity:GetName() ); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0204
|
Controls.CityName:SetText( city:GetName() ); |
ReligionOverview.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0498
|
local holyCityName = holyCity:GetName(); |
TurnsRemaining.lua - DLC_02 DLC
DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0222
|
text = Locale.ConvertTextKey("TXT_KEY_NEWWORLD_SCENARIO_TREASURE_RETURNED", capital:GetName(), iGoldReceived, iVPReceived); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0209
|
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_NO_ORTHODOX_CITIES", pOrthodoxHolyCity:GetName(), pOrthodoxHolyCity:GetName()); |
0214
|
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_NEW_ORTHODOX_HOLY_CITY", pOrthodoxHolyCity:GetName(), pNewHolyCity:GetName()); |
0771
|
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_YOU_ADOPTED_PROTESTANTISM", pProtestantHolyCity:GetName()); |
1489
|
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_FIRST_REFORMER", pBestCity:GetName()); |
1508
|
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_SECOND_REFORMER", pBestCity:GetName()); |
1525
|
popupInfo.Text = Locale.ConvertTextKey("TXT_KEY_MEDIEVAL_SCENARIO_THIRD_REFORMER", pBestCity:GetName()); |
UnitPanel.lua
UI/InGame/WorldView/UnitPanel.lua
0476
|
local name = city:GetName(); |
VictoryStatus.lua (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0179
|
sYourBestCity = pYourBestCity:GetName(); |
0196
|
sWorldBestCity = pCity: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.