Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/panel.lua @ 13:f635adb94909
- Added west and east sides for dance bar.
- Main panel won't close with escape button.
| author | Tercio |
|---|---|
| date | Tue, 28 Apr 2015 11:21:50 -0300 |
| parents | 2f09fe4be15c |
| children | 0c160948ac5e |
comparison
equal
deleted
inserted
replaced
| 12:6dd01dcec75e | 13:f635adb94909 |
|---|---|
| 1340 frame:ClearAllPoints() | 1340 frame:ClearAllPoints() |
| 1341 frame:SetPoint ("center", UIParent, "center", frame.db.position.x * UIscale / scale, frame.db.position.y * UIscale / scale) | 1341 frame:SetPoint ("center", UIParent, "center", frame.db.position.x * UIscale / scale, frame.db.position.y * UIscale / scale) |
| 1342 end | 1342 end |
| 1343 end | 1343 end |
| 1344 | 1344 |
| 1345 function DF:Create1PxPanel (parent, w, h, title, name, config, title_anchor) | 1345 function DF:Create1PxPanel (parent, w, h, title, name, config, title_anchor, no_special_frame) |
| 1346 local f = CreateFrame ("frame", name, parent or UIParent) | 1346 local f = CreateFrame ("frame", name, parent or UIParent) |
| 1347 f:SetSize (w or 100, h or 75) | 1347 f:SetSize (w or 100, h or 75) |
| 1348 f:SetPoint ("center", UIParent, "center") | 1348 f:SetPoint ("center", UIParent, "center") |
| 1349 | 1349 |
| 1350 if (name) then | 1350 if (name and not no_special_frame) then |
| 1351 tinsert (UISpecialFrames, name) | 1351 tinsert (UISpecialFrames, name) |
| 1352 end | 1352 end |
| 1353 | 1353 |
| 1354 f:SetScript ("OnMouseDown", simple_panel_mouse_down) | 1354 f:SetScript ("OnMouseDown", simple_panel_mouse_down) |
| 1355 f:SetScript ("OnMouseUp", simple_panel_mouse_up) | 1355 f:SetScript ("OnMouseUp", simple_panel_mouse_up) |
