Mercurial > wow > whichrankdoeswhat
comparison AceGUIWidget-lib-st.lua @ 8:e6382ba088c3
Potentially avoid side tabs being glued to lib-st widgets.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Fri, 27 Jan 2012 01:31:29 +0000 |
| parents | 17a4945d14eb |
| children | 6ccfe2249edb |
comparison
equal
deleted
inserted
replaced
| 7:332550e56fd2 | 8:e6382ba088c3 |
|---|---|
| 20 | 20 |
| 21 | 21 |
| 22 Version 1 initial functioning implementation | 22 Version 1 initial functioning implementation |
| 23 Version 2 reshuffle to follow new AceGUI widget coding style | 23 Version 2 reshuffle to follow new AceGUI widget coding style |
| 24 Version 3 add .tail_offset, defaulting to same absolute value as .head_offset | 24 Version 3 add .tail_offset, defaulting to same absolute value as .head_offset |
| 25 Version 4 | |
| 25 -farmbuyer | 26 -farmbuyer |
| 26 -------------------------------------------------------------------------------]] | 27 -------------------------------------------------------------------------------]] |
| 27 local Type, Version = "lib-st", 3 | 28 local Type, Version = "lib-st", 4 |
| 28 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) | 29 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) |
| 29 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end | 30 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end |
| 30 | 31 |
| 31 -- Lua APIs | 32 -- Lua APIs |
| 32 local ipairs, error = ipairs, error | 33 local ipairs, error = ipairs, error |
| 89 self.frame.realSetPoint = self.frame.SetPoint | 90 self.frame.realSetPoint = self.frame.SetPoint |
| 90 self.frame.SetPoint = ShiftingSetPoint | 91 self.frame.SetPoint = ShiftingSetPoint |
| 91 self.frame.SetAllPoints = ShiftingSetAllPoints | 92 self.frame.SetAllPoints = ShiftingSetAllPoints |
| 92 end | 93 end |
| 93 | 94 |
| 94 -- This needs the .frame field. This also creates .obj inside that | 95 -- This needs the .frame field. This also unconditionally creates .obj |
| 95 -- field and calls a SetScript as well. | 96 -- inside that field and calls a SetScript on it as well. |
| 96 return AceGUI:RegisterAsWidget(self) | 97 return AceGUI:RegisterAsWidget(self) |
| 97 end | 98 end |
| 98 | 99 |
| 99 | 100 |
| 100 --[[----------------------------------------------------------------------------- | 101 --[[----------------------------------------------------------------------------- |
