UIElement.SetToolTipString (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:SetToolTipString(string foodToolTip)


Parameters

foodToolTip: No description available.


Source code samples

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

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0117
dropDownButton:SetToolTipString(possibleValue.ToolTip);
1109
Controls.StartButton:SetToolTipString(nil);


ChooseFaithGreatPerson.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseFaithGreatPerson.lua
0044
controlTable.Button:SetToolTipString(Locale.ConvertTextKey("TXT_KEY_NO_SCIENTIST_FROM_FAITH"));


ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0308
religionButton.Button:SetToolTipString(t);


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0217
controls.OccupiedIcon:SetToolTipString(Locale.ConvertTextKey( "TXT_KEY_CITY_OCCUPIED"));
0344
controls.CityBannerLeftBackground:SetToolTipString(tooltipString);
0515
controls.BannerButton:SetToolTipString(Locale.ConvertTextKey("TXT_KEY_HAVENT_MET"));


CityStateDiploPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0278
Controls.AllyIcon:SetToolTipString(strAllyTT);
0540
Controls.RevokePledgeButton:SetToolTipString(strRevokeProtectTT);
0999
Controls.UnitTributeButton:SetToolTipString(ttText);


CityView.lua

UI/InGame/CityView/CityView.lua
0426
controlTable.BuildingFilledSpecialistSlot3:SetToolTipString(ToolTipString);
0786
Controls.ProductionButton:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_CITYVIEW_QUEUE_PROD_TT") );
1333
Controls.RazeCityButton:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_CITYVIEW_RAZE_BUTTON_TT" ) );
1773
controlTable.PlotButtonImage:SetToolTipString( Locale.ConvertTextKey("TXT_KEY_CITYVIEW_NUTHA_CITY_TILE") );


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
2087
thisBuildingInstance.UnlockedBuildingButton:SetToolTipString( Locale.ConvertTextKey( thisBuildingInfo.Description ) );


Demographics.lua

UI/InGame/Popups/Demographics.lua
0171
instance.BestTT:SetToolTipString( Locale.ConvertTextKey("TXT_KEY_DEMOGRAPHICS_FOOD_MEASURE") );
0179
instance.WorstTT:SetToolTipString( Locale.ConvertTextKey("TXT_KEY_DEMOGRAPHICS_FOOD_MEASURE") );


DiploList.lua

UI/InGame/DiploList.lua
0443
controlTable.MinorButton:SetToolTipString(Locale.ConvertTextKey("TXT_KEY_ALWAYS_WAR_TT"));


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0486
pStack.StatusMeter:SetToolTipString(strStatusTT);
0547
pStack.AllyLabel:SetToolTipString(strAllyTT);


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0336
Controls.Button2:SetToolTipString(strButton2Tooltip);


EconomicGeneralInfo.lua

UI/InGame/Popups/EconomicGeneralInfo.lua
0261
instance.TradeIncomeValue:SetToolTipString( strTooltip .. strPopInfo );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0638
agentEntry.AgentActivity:SetToolTipString(strActivityTT);
1199
entry.RigElectionEnabled:SetToolTipString(strCityStateTT);


FoRScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/FoRScenarioLoadScreen.lua
0108
controlTable.Button:SetToolTipString(Locale.ConvertTextKey( info.Help ) );


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0218
Controls.LeaderFrame:SetToolTipString( Locale.ConvertTextKey( leaderDescription ) );
0272
Controls.TypeFrame:SetToolTipString(Locale.ConvertTextKey("TXT_KEY_RANDOM_MAP_SCRIPT") );
0282
Controls.SizeFrame:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_RANDOM_MAP_SIZE" ) );
0289
Controls.DifficultyFrame:SetToolTipString( Locale.ConvertTextKey( info.Description ) );


GameSetupScreen.lua

UI/FrontEnd/GameSetup/GameSetupScreen.lua
0513
Controls[buttonName]:SetToolTipString( unknownString );


GPList.lua

UI/InGame/GPList.lua
0147
instance.GPMeter:SetToolTipString( strProgress );


HappinessInfo.lua

UI/InGame/Popups/HappinessInfo.lua
0523
Controls.PopulationUnhappiness:SetToolTipString(strTooltip);


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0275
Controls.CivIcon:SetToolTipString(unknownString);
0357
Controls.MapType:SetToolTipString(name);


Lobby.lua

UI/FrontEnd/Multiplayer/Lobby.lua
0346
controlTable.DLCHostedLabel:SetToolTipString(CreateDlcToolTip("TXT_KEY_LOBBY_REQUIRED_DLC", filteredPackages));


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0425
Controls.StrategicViewButton:SetToolTipString(sToolTip .. " (" .. keyDesc .. ")");


ModsBrowser.lua

UI/FrontEnd/Modding/ModsBrowser.lua
0064
button:SetToolTipString(tooltip);


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0238
Controls.Food:SetToolTipString(strFoodToolTip);
0244
Controls.Gold:SetToolTipString(strGoldToolTip);


SaveMapMenu.lua

UI/InGame/Menus/SaveMapMenu.lua
0247
controlTable.ButtonText:SetToolTipString(v.Description);


SelectMapType.lua

UI/FrontEnd/GameSetup/SelectMapType.lua
0214
item.Button:SetToolTipString(v.Description);


TechButtonInclude.lua

UI/InGame/TechTree/TechButtonInclude.lua
0222
thisButton:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_FASTER_EMBARKED_MOVEMENT" ) );
0277
thisButton:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_ALLOWS_DEFENSIVE_PACTS" ) );


TechButtonInclude.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/TechButtonInclude.lua
0474
thisButton:SetToolTipString( Locale.ConvertTextKey("TXT_KEY_REVEALS_RESOURCE_ON_MAP", resourceName));


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1094
Controls.UsPocketOpenBorders:SetToolTipString(strOurTooltip);
1240
Controls.ThemPocketTradeAgreement:SetToolTipString(strTooltip);
1454
Controls.ThemPocketLuxury:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_DIPLO_LUX_RESCR_TRADE_NO_THEM" ));
1687
Controls.UsTableGoldPerTurn:SetToolTipString( strTooltip );


VictoryStatus.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0139
gtTokenUI[s].TokenLabel:SetToolTipString(sLabelTT);


VoteResultsPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VoteResultsPopup.lua
0203
controlTable.VoteCastBox:SetToolTipString(strVoteCastTT);



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.