Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GameTooltip SetAction
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{widgetmethod}} <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> GameTooltip:SetAction(slot); <!-- Describe the purpose of the function, though exhausting detail can be saved for a later section --> Shows the tooltip for the specified action button. ---- ;''Arguments'' <!-- List each argument, together with its type --> :(slot) :;slot : integer - id of the action button to load the tooltip for. ---- ;''Returns'' <!-- List each return value, together with its type --> : The function returns nothing, but the text in the displayed tooltip can be accessed with GameTooltipTextLeftN:GetText() and GameTooltipTextRightN:GetText(), where N is the line number. ---- ;''Example'' <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> GameTooltip:SetAction(1); ---- ;''Details'' : The term 'slot' is a bit misleading... it's really the id of the action button, where 1..12 are the first page, 13..24 are the second page, and so on up to 72 for the normally accessible pages 1-6. The bonus bars that appear for a warrior's stances, a druid's shapeshifts, and when a rogue is stealthed take up higher numbered ids, and some addons make use of otherwise unused ids as well (up to a maximum ID of 120). Note that for accessing the pet bar or aura bar you need to use [[API SetPetAction|SetPetAction]] or [[API SetShapeshift|SetShapeshift]]. : Beware of using, for example, ActionButton1:GetID(); This would return 1, no matter what page your action bar is on. The WoW function CURRENT_ACTIONBAR_PAGE may be of use to you if you want to do something like this, or if you have the button object already, ActionButton_GetPagedID(button).
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Widget
(
edit
)
Template:Widgetmethod
(
edit
)