UIElement.LocalizeAndSetToolTip (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 method is declared by ControlBase.

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


Usage

void UIElement:LocalizeAndSetToolTip(string description, string minFaithForProphet = nil, string threshold, string moodText, string spyRank, string spyName, string spyRank, string spyName, unknown arg8, unknown arg9, string arg10, unknown arg11, unknown arg12)


Parameters

description: No description available.
minFaithForProphet: No description available.
threshold: No description available.
moodText: No description available.
spyRank: No description available.
spyName: No description available.
spyRank: No description available.
spyName: No description available.
arg8: No description available.
arg9: No description available.
arg10: No description available.
arg11: No description available.
arg12: No description available.


Source code samples

Too many occurences. Only 50 out of 142 are listed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0424
controlTable.Button:LocalizeAndSetToolTip("TXT_KEY_RANDOM_LEADER_HELP");
0499
Controls.EraPullDown:GetButton():LocalizeAndSetToolTip(info.Strategy);
0565
pullDown:GetButton():LocalizeAndSetToolTip(handicap.Help);
0588
instance.Button:LocalizeAndSetToolTip("TXT_KEY_RANDOM_MAP_SIZE_HELP");
0605
pullDown:GetButton():LocalizeAndSetToolTip("TXT_KEY_RANDOM_MAP_SIZE_HELP");
0637
Controls.MapSizePullDown:GetButton():LocalizeAndSetToolTip("TXT_KEY_RANDOM_MAP_SIZE_HELP");
0839
pullDown:GetButton():LocalizeAndSetToolTip("TXT_KEY_MAP_EARTH_HELP");
0845
pullDown:GetButton():LocalizeAndSetToolTip(row.Description or "");
1107
Controls.StartButton:LocalizeAndSetToolTip(args.Reason);


CityBannerManager.lua (G&K)

DLC/Expansion/UI/InGame/CityBannerManager.lua
0290
controls.SpyIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_SPY_OTHER_CIV_TT", strSpyRank, strSpyName, city:GetName(), strSpyRank, strSpyName, strSpyRank, strSpyName);


CityView.lua

UI/InGame/CityView/CityView.lua
0656
Controls.ConnectedIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_CONNECTED");
0673
Controls.RazingIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_BURNING", pCity:GetRazingTurns());
0689
Controls.PuppetIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_PUPPET");


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0064
controlTable.Button:LocalizeAndSetToolTip( v.tip );


DiploCorner.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/DiploCorner.lua
0038
controlTable.Button:LocalizeAndSetToolTip( g_MultiPullInfo[i].tip );


DiploList.lua

UI/InGame/DiploList.lua
0495
controlTable.QuestIcon:LocalizeAndSetToolTip( "TXT_KEY_CITY_STATE_QUEST_ROUTE_FORMAL" );
0499
controlTable.QuestIcon:LocalizeAndSetToolTip( "TXT_KEY_CITY_STATE_QUEST_KILL_CAMP_FORMAL" );
0510
controlTable.QuestIcon:LocalizeAndSetToolTip( "TXT_KEY_CITY_STATE_QUEST_CONSTRUCT_WONDER_FORMAL", GameInfo.Buildings[iQuestData1].Description );
0526
controlTable.QuestIcon:LocalizeAndSetToolTip( "TXT_KEY_CITY_STATE_QUEST_FIND_PLAYER_FORMAL", Players[iQuestData1]:GetCivilizationShortDescriptionKey() );


EconomicOverview.lua

UI/InGame/Popups/EconomicOverview.lua
0114
Controls.HappinessButton:LocalizeAndSetToolTip("TXT_KEY_TOP_PANEL_HAPPINESS_OFF_TOOLTIP");


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0371
Controls.AgentRank:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_RANK_TT", agent.Name, agent.Rank);
0397
Controls.AgentLocationIcon:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_LOCATION_TT", agent.Rank, agent.Name, city:GetName());
0398
Controls.AgentLocation:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_LOCATION_TT", agent.Rank, agent.Name, city:GetName());
0546
agentEntry.AgentName:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_NAMEPLATE_TT", v.Rank, v.Name);
0548
agentEntry.AgentIcon:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_RANK_TT", v.Name, v.Rank);
0564
agentEntry.AgentLocation:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_NEEDS_ASSIGNMENT_TT");
0684
agentEntry.RelocateButton:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_MOVE_TT", v.Rank, v.Name);
0742
agentEntry.StageCoupButton:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_COUP_DISABLED_NO_ALLY_TT", v.Rank, v.Name, city:GetNameKey(), city:GetNameKey());
0744
agentEntry.StageCoupButton:LocalizeAndSetToolTip("TXT_KEY_EO_SPY_COUP_DISABLED_YOU_ALLY_TT", v.Rank, v.Name, city:GetNameKey());
0760
agentEntry.ViewCityButton:LocalizeAndSetToolTip("TXT_KEY_EO_CITY_VIEW_DISABLED_YOUR_CITY_TT", city:GetNameKey());
0767
agentEntry.ViewCityButton:LocalizeAndSetToolTip("TXT_KEY_EO_CITY_VIEW_DISABLED_NO_CITY_TT");
1021
entry.SpyInCityIcon:LocalizeAndSetToolTip("TXT_KEY_SPY_OCCUPYING_CITY", agent.Name);
1288
entry.DisabledViewCityIcon:LocalizeAndSetToolTip("TXT_KEY_EO_CITY_VIEW_DISABLED_TT", cityInfo.Name);


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0248
Controls.TypeFrame:LocalizeAndSetToolTip("TXT_KEY_MAP_EARTH_TITLE");


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0338
Controls.MapType:LocalizeAndSetToolTip("TXT_KEY_MAP_EARTH_TITLE");


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0090
Controls.GPBox:LocalizeAndSetToolTip( "TXT_KEY_MO_GENERAL_TT", fProgress, fThreshold );


MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0254
pullDown:GetButton():LocalizeAndSetToolTip(mapScriptFileName);
0461
Controls.MapSizePullDown:GetButton():LocalizeAndSetToolTip( "TXT_KEY_RANDOM_MAP_SIZE_HELP" );


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0172
Controls.PurchaseButton:LocalizeAndSetToolTip( "TXT_KEY_CITYVIEW_PURCHASE_TT" );


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
0356
Controls.LocalReadyCheck:LocalizeAndSetToolTip( "TXT_KEY_MP_READY_CHECK" );
0690
Controls.LaunchButton:LocalizeAndSetToolTip( "TXT_KEY_BAD_TEAMS" );
0915
Controls.MapTypeLabel:LocalizeAndSetToolTip("TXT_KEY_MAP_EARTH_HELP");
0938
Controls.MapTypeLabel:LocalizeAndSetToolTip(mapScriptFileName);
0947
Controls.MapTypeLabel:LocalizeAndSetToolTip( "TXT_KEY_RANDOM_MAP_SCRIPT_HELP" );
0957
Controls.MapSizeLabel:LocalizeAndSetToolTip( "TXT_KEY_RANDOM_MAP_SIZE_HELP" );
0963
Controls.GameSpeedLabel:LocalizeAndSetToolTip( info.Help );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
2485
Controls.UsPocketCities:LocalizeAndSetToolTip( "TXT_KEY_DIPLO_TO_TRADE_CITY_NO_TT" );


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1080
cityFlagInstance.PullDown:LocalizeAndSetToolTip( "TXT_KEY_STATIONED_AIRCRAFT", cargoCount );


VictoryProgress.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua
0822
controlTable.LastVoteCivIconBG:LocalizeAndSetToolTip("TXT_KEY_VP_DIPLO_LIBERATED_CIV_TT_ALT", strLeaderShortDesc, strLastVoteLeader, strMoodText);
0844
controlTable.ProjectedVotes:LocalizeAndSetToolTip(strProjVotesTT);



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.