git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2ddc77e - Remove AceTimer
[wowui.git]
/
libs
/
AceGUI-3.0
/
widgets
/
AceGUIWidget-Label.lua
diff --git
a/libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
b/libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
index
23897d5
..
75817a0
100644
(file)
--- a/
libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
+++ b/
libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
@@
-2,7
+2,7
@@
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
-local Type, Version = "Label", 2
3
+local Type, Version = "Label", 2
4
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@
-78,6
+78,8
@@
local methods = {
self:SetImageSize(16, 16)
self:SetColor()
self:SetFontObject()
self:SetImageSize(16, 16)
self:SetColor()
self:SetFontObject()
+ self:SetJustifyH("LEFT")
+ self:SetJustifyV("TOP")
-- reset the flag
self.resizing = nil
-- reset the flag
self.resizing = nil
@@
-134,6
+136,14
@@
local methods = {
self.image:SetHeight(height)
UpdateImageAnchor(self)
end,
self.image:SetHeight(height)
UpdateImageAnchor(self)
end,
+
+ ["SetJustifyH"] = function(self, justifyH)
+ self.label:SetJustifyH(justifyH)
+ end,
+
+ ["SetJustifyV"] = function(self, justifyV)
+ self.label:SetJustifyV(justifyV)
+ end,
}
--[[-----------------------------------------------------------------------------
}
--[[-----------------------------------------------------------------------------
@@
-144,9
+154,6
@@
local function Constructor()
frame:Hide()
local label = frame:CreateFontString(nil, "BACKGROUND", "GameFontHighlightSmall")
frame:Hide()
local label = frame:CreateFontString(nil, "BACKGROUND", "GameFontHighlightSmall")
- label:SetJustifyH("LEFT")
- label:SetJustifyV("TOP")
-
local image = frame:CreateTexture(nil, "BACKGROUND")
-- create widget
local image = frame:CreateTexture(nil, "BACKGROUND")
-- create widget