WoW:Creating standard left-sliding frames: Difference between revisions

m
no edit summary
(Rewrite for 2.1 and kill sig.)
mNo edit summary
Line 1: Line 1:
==How do I get my frames to arrange like the standard wow frames do (sliding over from the left)?==
===On with the show===
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.


Anonymous user