UIElement.LocalizeAndSetText (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This method is declared by EditBox, GridButton, Image, Label, TextBase and TextButton. This is an instance method, invoke it with a colon. |
Usage
void UIElement:LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
Parameters
name: No description available. searchString: No description available. minFaithForProphet: No description available. arg3: No description available. arg4: No description available. arg5: No description available. arg6: No description available. arg7: No description available. arg8: No description available. arg9: No description available. arg10: No description available. arg11: No description available.
Source code samples
Too many occurences. Only 50 out of 668 are listed.
AdvancedSetup.lua
UI/FrontEnd/GameSetup/AdvancedSetup.lua
0491
|
pullDown:GetButton():LocalizeAndSetText(era.Description); |
0636
|
Controls.MapSizePullDown:GetButton():LocalizeAndSetText("TXT_KEY_RANDOM_MAP_SIZE"); |
0986
|
controlTable.Button:LocalizeAndSetText("TXT_KEY_MULTIPLAYER_DEFAULT_TEAM_NAME", i + 1); |
1025
|
Controls.TeamLabel:LocalizeAndSetText( "TXT_KEY_MULTIPLAYER_DEFAULT_TEAM_NAME", PreGame.GetTeam(0) + 1 ); |
ChooseMayaBonus.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ChooseMayaBonus.lua
0018
|
Controls.DescriptionLabel:LocalizeAndSetText("TXT_KEY_CHOOSE_LONG_COUNT_TT"); |
ChooseReligionPopup.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0340
|
Controls.FounderBeliefDescription:LocalizeAndSetText("TXT_KEY_CHOOSE_RELIGION_SELECT_FOUNDER_BELIEF"); |
0501
|
Controls.NewName:LocalizeAndSetText(g_CurrentReligionName); |
CivsAlive.lua - DLC_01 DLC
DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0035
|
Controls.CivsAliveLabel:LocalizeAndSetText("TXT_KEY_MONGOL_SCENARIO_CIVSALIVE", iRemainingToDestroy, iTurnsRemaining); |
CustomMod.lua
UI/FrontEnd/Modding/CustomMod.lua
0096
|
Controls.Title:LocalizeAndSetText( "TXT_KEY_SELECT_CUSTOM_GAME" ); |
Demographics.lua
UI/InGame/Popups/Demographics.lua
0163
|
instance.Name:LocalizeAndSetText( "TXT_KEY_DEMOGRAPHICS_FOOD" ); |
DiploGlobalRelationships.lua
UI/InGame/Popups/DiploGlobalRelationships.lua
0269
|
textControls.Text:LocalizeAndSetText("TXT_KEY_ALLIED_WITH", thirdName); |
EconomicGeneralInfo.lua
UI/InGame/Popups/EconomicGeneralInfo.lua
0379
|
Controls.CityToggle:LocalizeAndSetText("TXT_KEY_EO_INCOME_CITIES_COLLAPSE"); |
0397
|
Controls.TradeToggle:LocalizeAndSetText("TXT_KEY_EO_INCOME_TRADE_DETAILS"); |
0411
|
Controls.BuildingsToggle:LocalizeAndSetText("TXT_KEY_EO_BUILDINGS_COLLAPSE"); |
EnemyUnitPanel.lua
UI/InGame/WorldView/EnemyUnitPanel.lua
0447
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_BONUS_GOLDEN_AGE" ); |
0509
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_REVERSE_GG_NEAR" ); |
0830
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_FIGHT_AT_HOME_BONUS" ); |
0838
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_ATTACK_IN_FRIEND_LANDS" ); |
0904
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_BONUS_VS_CLASS" , unitClassType ); |
0963
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_HILL_ATTACK_BONUS" ); |
1196
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_EXTRA_PERCENT" ); |
1218
|
controlTable.Text:LocalizeAndSetText( "TXT_KEY_EUPANEL_OUTSIDE_HOME_BONUS" ); |
EspionageOverview.lua (G&K)
DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0395
|
Controls.AgentLocation:LocalizeAndSetText(city:GetName()); |
0545
|
agentEntry.AgentName:LocalizeAndSetText(v.Name); |
1053
|
Controls.ConfirmText:LocalizeAndSetText("TXT_KEY_EO_RELOCATE_SPY_QUESTION"); |
GameMenu.lua
UI/InGame/Menus/GameMenu.lua
0377
|
controlTable.Text:LocalizeAndSetText("TXT_KEY_AD_HANDICAP_SETTING", Locale.ConvertTextKey( info.Description ) ); |
0411
|
controlTable.Text:LocalizeAndSetText(option.Description); |
GPList.lua
UI/InGame/GPList.lua
0255
|
Controls.ArtistToggle:LocalizeAndSetText("TXT_KEY_GP_ARTIST_DETAILS_COLLAPSE"); |
0291
|
Controls.MerchantToggle:LocalizeAndSetText("TXT_KEY_GP_MERCHANT_DETAILS"); |
0306
|
Controls.ScientistToggle:LocalizeAndSetText("TXT_KEY_GP_SCIENTIST_DETAILS_COLLAPSE"); |
HallOfFame.lua
UI/InGame/Popups/HallOfFame.lua
0042
|
controlTable.DidWin:LocalizeAndSetText("TXT_KEY_VICTORY_BANG"); |
0057
|
controlTable.LeaderName:LocalizeAndSetText(v.LeaderName); |
0058
|
controlTable.CivName:LocalizeAndSetText(v.CivilizationName); |
0130
|
controlTable.WinType:LocalizeAndSetText(""); |
HappinessInfo.lua
UI/InGame/Popups/HappinessInfo.lua
0021
|
Controls.LuxuryHappinessToggle:LocalizeAndSetText("TXT_KEY_EO_LUXURY_HAPPINESS_COLLAPSE"); |
InstalledPanel.lua
UI/FrontEnd/Modding/InstalledPanel.lua
0259
|
listing.StatusLabel:LocalizeAndSetText("TXT_KEY_MODDING_INSTALL_PROGRESS", FileSizeAsString(downloadedBytes), FileSizeAsString(totalBytes)); |
JoiningRoom.lua
UI/FrontEnd/Multiplayer/JoiningRoom.lua
0124
|
Controls.JoiningLabel:LocalizeAndSetText( "TXT_KEY_MULTIPLAYER_JOINING_ROOM" ); |
MilitaryOverview.lua
UI/InGame/Popups/MilitaryOverview.lua
0162
|
instance.UnitName:LocalizeAndSetText( sortEntry.name ); |
MPGameOptions.lua
UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0339
|
Controls.EraPull:GetButton():LocalizeAndSetText( info.Description ); |
0427
|
Controls.GameSpeedPullDown:GetButton():LocalizeAndSetText(GameInfo.GameSpeeds[id].Description); |
0442
|
controlTable.Button:LocalizeAndSetText( "TXT_KEY_RANDOM_MAP_SIZE" ); |
MPGameSetupScreen.lua
UI/FrontEnd/Multiplayer/GameSetup/MPGameSetupScreen.lua
0114
|
Controls.TitleLabel:LocalizeAndSetText( "TXT_KEY_MOD_MP_GAME_SETUP_HEADER" ); |
MPList.lua
UI/InGame/WorldView/MPList.lua
0159
|
controlTable.Name:LocalizeAndSetText( "TXT_KEY_POP_VOTE_RESULTS_UNMET_PLAYER" ); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0175
|
Controls.PurchaseString:LocalizeAndSetText( "TXT_KEY_CITYVIEW_PRODUCE_BUTTON" ); |
ReligionOverview.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0238
|
entry.FaithModifier:LocalizeAndSetText("TXT_KEY_TP_FAITH_FROM_MINORS", iFaithFromMinorCivs); |
ReplayViewer.lua
UI/InGame/Popups/ReplayViewer.lua
0722
|
graphLegendInstance.LegendName:LocalizeAndSetText(player.CivShortDescription); |
StagingRoom.lua
UI/FrontEnd/Multiplayer/StagingRoom.lua
0208
|
slotInstance.TeamLabel:LocalizeAndSetText( "TXT_KEY_MULTIPLAYER_DEFAULT_TEAM_NAME", teamID ); |
0339
|
slotInstance.CivLabel:LocalizeAndSetText( "TXT_KEY_RANDOM_LEADER" ); |
SteampunkScenarioLoadScreen.lua (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/SteampunkScenarioLoadScreen.lua
0340
|
Controls.Title:LocalizeAndSetText("TXT_KEY_RANDOM_LEADER_CIV", leaderDescription, civ.ShortDescription); |
UnitPanel.lua
UI/InGame/WorldView/UnitPanel.lua
0591
|
Controls.UnitStatNameMovement:LocalizeAndSetText("TXT_KEY_UPANEL_RANGEMOVEMENT"); |
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.