WoW:Creating standard left-sliding frames (source)
Revision as of 14:25, 23 November 2008
, 23 November 2008added UIPanelLayout-width
mNo edit summary |
m (added UIPanelLayout-width) |
||
| Line 5: | Line 5: | ||
MyFrameName:SetAttribute("UIPanelLayout-area", "left") | MyFrameName:SetAttribute("UIPanelLayout-area", "left") | ||
MyFrameName:SetAttribute("UIPanelLayout-pushable", 5) | MyFrameName:SetAttribute("UIPanelLayout-pushable", 5) | ||
MyFrameName:SetAttribute("UIPanelLayout-width", width) | |||
MyFrameName:SetAttribute("UIPanelLayout-whileDead", true) | MyFrameName:SetAttribute("UIPanelLayout-whileDead", true) | ||
'UIPanelLayout-area' is left (most frames), middle (menu or if two left frames are open), fullscreen (map), doublewide (auction), or center (main menu).<br> | 'UIPanelLayout-area' is left (most frames), middle (menu or if two left frames are open), fullscreen (map), doublewide (auction), or center (main menu).<br> | ||
'UIPanelLayout-pushable' specifies the priority of your window. If two other "left" windows are already open, when a third frame opens, the one with the lowest priority is closed.<br> | 'UIPanelLayout-pushable' specifies the priority of your window. If two other "left" windows are already open, when a third frame opens, the one with the lowest priority is closed.<br> | ||
'UIPanelLayout-width': The effective width of the UI panel, used as an override for frame:GetWidth() | |||
'UIPanelLayout-whileDead' specifies that the frame can be opened while the player is dead. Leave this field out (or set it to nil) to prevent the player from accessing the frame while dead. | 'UIPanelLayout-whileDead' specifies that the frame can be opened while the player is dead. Leave this field out (or set it to nil) to prevent the player from accessing the frame while dead. | ||