WoW:Creating standard left-sliding frames (source)
Revision as of 20:09, 15 January 2008
, 15 January 2008no edit summary
(Rewrite for 2.1 and kill sig.) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
The container (bag) frames have their own custom code which uses SetPoint to adjust them relative to each other, but frames like the CharacterInfo and Merchant use common functions from UIParent.lua. To make use of this common code you need to define UI Panel layout attributes for your frame after you create it. You can do it in Scripts/OnLoad section of XML or right after you call CreateFrame in Lua. | The container (bag) frames have their own custom code which uses SetPoint to adjust them relative to each other, but frames like the CharacterInfo and Merchant use common functions from UIParent.lua. To make use of this common code you need to define UI Panel layout attributes for your frame after you create it. You can do it in Scripts/OnLoad section of XML or right after you call CreateFrame in Lua. | ||