m
Move page script moved page Tooltip pseudo code to WoW:Tooltip pseudo code without leaving a redirect
(Pseudo code of GameTooltip methods) |
m (Move page script moved page Tooltip pseudo code to WoW:Tooltip pseudo code without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{uitech}} | |||
Tooltips are notoriously difficult to handle in WoW UI code. This page contains Lua-style pseudo code that attempts to represent the behaviour and interaction of various GameTooltip widget methods. (Currently it's not complete, yet to include details about line-wrapping behaviour). See [[UIOBJECT GameTooltip]] for notes about GameTooltips. See [[Widget API]] for a reference list about GameTooltip methods and their uses. | Tooltips are notoriously difficult to handle in WoW UI code. This page contains Lua-style pseudo code that attempts to represent the behaviour and interaction of various GameTooltip widget methods. (Currently it's not complete, yet to include details about line-wrapping behaviour). See [[UIOBJECT GameTooltip]] for notes about GameTooltips. See [[Widget API]] for a reference list about GameTooltip methods and their uses. | ||
| Line 91: | Line 92: | ||
end | end | ||
function AppendText(text, etc) | function tooltip:AppendText(text, etc) | ||
AddToFirstLine(text) -- Appends the text to the first line | AddToFirstLine(text) -- Appends the text to the first line | ||
self:Show() | self:Show() | ||
| Line 124: | Line 125: | ||
end | end | ||
end | end | ||