Mercurial > wow > askmrrobot
comparison ui/AmrUiLabel.lua @ 124:e31b02b24488
Updated for 8.0 pre-patch and BfA.
author | yellowfive |
---|---|
date | Tue, 17 Jul 2018 09:57:39 -0700 |
parents | 01b63b8ed811 |
children | a0894ffebd15 |
comparison
equal
deleted
inserted
replaced
123:7a6364917f86 | 124:e31b02b24488 |
---|---|
74 self:SetVisible(true) | 74 self:SetVisible(true) |
75 | 75 |
76 -- reset the flag | 76 -- reset the flag |
77 self.resizing = nil | 77 self.resizing = nil |
78 -- run the update explicitly | 78 -- run the update explicitly |
79 updateSize(self) | 79 --updateSize(self) |
80 end, | 80 end, |
81 | 81 |
82 -- ["OnRelease"] = nil, | 82 -- ["OnRelease"] = nil, |
83 | 83 |
84 ["OnWidthSet"] = function(self, width) | 84 ["OnWidthSet"] = function(self, width) |
132 frame:SetScript("OnLeave", frameOnLeave) | 132 frame:SetScript("OnLeave", frameOnLeave) |
133 frame:SetScript("OnMouseDown", frameOnMouseDown) | 133 frame:SetScript("OnMouseDown", frameOnMouseDown) |
134 frame:SetScript("OnMouseUp", frameOnMouseUp) | 134 frame:SetScript("OnMouseUp", frameOnMouseUp) |
135 | 135 |
136 local label = frame:CreateFontString(nil, "ARTWORK") | 136 local label = frame:CreateFontString(nil, "ARTWORK") |
137 label:SetPoint("TOPLEFT") | |
137 label:SetFontObject(Amr.CreateFont("Regular", 16, Amr.Colors.Text)) | 138 label:SetFontObject(Amr.CreateFont("Regular", 16, Amr.Colors.Text)) |
138 | 139 |
139 -- create widget | 140 -- create widget |
140 local widget = { | 141 local widget = { |
141 label = label, | 142 label = label, |