UIElement.SetToolTipCallback (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, 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:SetToolTipCallback((void func(Slider control)) TipHandler)


Parameters

TipHandler: No description available.


Source code samples

Redundant occurences have been removed.

CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
4623
thisListInstance.ListItemButton:SetToolTipCallback( TipHandler );
4656
thisListInstance.ListItemButton:SetToolTipCallback( TipHandler )
4657
otherSortedList[tostring( thisListInstance.ListItemButton )] = sortOrder;
4684
thisTechInstance.ListItemButton:SetToolTipCallback( TipHandler );
5520
thisTechInstance.ListItemButton:SetToolTipCallback( TipHandler )
5521
otherSortedList[tostring( thisTechInstance.ListItemButton )] = sortOrder;
5575
thisUnitInstance.ListItemButton:SetToolTipCallback( TipHandler )
5576
otherSortedList[tostring( thisUnitInstance.ListItemButton )] = sortOrder;


TopPanel.lua

UI/InGame/TopPanel.lua
0295
Controls.SciencePerTurn:SetToolTipCallback( ScienceTipHandler );
0296
Controls.GoldPerTurn:SetToolTipCallback( GoldTipHandler );
0297
Controls.HappinessString:SetToolTipCallback( HappinessTipHandler );
0298
Controls.GoldenAgeString:SetToolTipCallback( GoldenAgeTipHandler );
0299
Controls.CultureString:SetToolTipCallback( CultureTipHandler );
0300
Controls.ResourceString:SetToolTipCallback( ResourcesTipHandler );


TopPanel.lua (G&K)

DLC/Expansion/UI/InGame/TopPanel.lua
0331
Controls.FaithString:SetToolTipCallback( FaithTipHandler );


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0244
Controls.RecommendedActionButton:SetToolTipCallback( TipHandler );
0275
instance.UnitActionButton:SetToolTipCallback( TipHandler )
0277
end



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.