Mercurial > wow > askmrrobot
comparison ui/AmrUiFrame.lua @ 61:cf2b6b9a8337 v23
6.2 update, shopping list bug fixes, ui scale option
| author | yellowfive | 
|---|---|
| date | Tue, 23 Jun 2015 00:27:21 -0700 | 
| parents | 01b63b8ed811 | 
| children | 69db1c3025ac | 
   comparison
  equal
  deleted
  inserted
  replaced
| 60:017c05f42fd4 | 61:cf2b6b9a8337 | 
|---|---|
| 54 local methods = { | 54 local methods = { | 
| 55 ["OnAcquire"] = function(self) | 55 ["OnAcquire"] = function(self) | 
| 56 self:SetAutoAdjustHeight(false) | 56 self:SetAutoAdjustHeight(false) | 
| 57 self.frame:SetParent(UIParent) | 57 self.frame:SetParent(UIParent) | 
| 58 self.frame:SetFrameStrata("FULLSCREEN_DIALOG") | 58 self.frame:SetFrameStrata("FULLSCREEN_DIALOG") | 
| 59 self.frame:SetScale(1) | |
| 59 self:ApplyStatus() | 60 self:ApplyStatus() | 
| 60 self:Show() | 61 self:Show() | 
| 61 end, | 62 end, | 
| 62 | 63 | 
| 63 ["OnRelease"] = function(self) | 64 ["OnRelease"] = function(self) | 
| 123 end, | 124 end, | 
| 124 | 125 | 
| 125 ["OnHeightSet"] = function(self, height) | 126 ["OnHeightSet"] = function(self, height) | 
| 126 local content = self.content | 127 local content = self.content | 
| 127 content.height = height | 128 content.height = height | 
| 129 end, | |
| 130 | |
| 131 ["SetScale"] = function(self, scale) | |
| 132 self.frame:SetScale(scale) | |
| 128 end | 133 end | 
| 129 } | 134 } | 
| 130 | 135 | 
| 131 --[[----------------------------------------------------------------------------- | 136 --[[----------------------------------------------------------------------------- | 
| 132 Constructor | 137 Constructor | 
