Mercurial > wow > reaction
comparison classes/ReAction_PetActionDisplay.lua @ 8:c05fd3e18b4f
Version 0.31
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Tue, 20 Mar 2007 21:33:59 +0000 |
| parents | f920db5fc6b1 |
| children | f3a7bfebc283 |
comparison
equal
deleted
inserted
replaced
| 7:f920db5fc6b1 | 8:c05fd3e18b4f |
|---|---|
| 132 self:ApplyLayout() | 132 self:ApplyLayout() |
| 133 self:ApplyStyle() | 133 self:ApplyStyle() |
| 134 self:DisplayVisibility() | 134 self:DisplayVisibility() |
| 135 -- refresh the action ID display | 135 -- refresh the action ID display |
| 136 if ReAction.showIDs_ then | 136 if ReAction.showIDs_ then |
| 137 self:DisplayID(self:GetID()) | 137 self:DisplayID(true) |
| 138 end | 138 end |
| 139 end | 139 end |
| 140 | 140 |
| 141 function RAPAD:TempShow( visible ) | 141 function RAPAD:TempShow( visible ) |
| 142 visible = visible and true or false -- force data integrity | 142 visible = visible and true or false -- force data integrity |
| 150 | 150 |
| 151 function RAPAD:GetBaseButtonSize() | 151 function RAPAD:GetBaseButtonSize() |
| 152 return 30 | 152 return 30 |
| 153 end | 153 end |
| 154 | 154 |
| 155 function RAPAD:DisplayID( id ) | 155 function RAPAD:DisplayID( show ) |
| 156 local f = self.frames.actionID | 156 local f = self.frames.actionID |
| 157 if id then | 157 if show then |
| 158 if not f then | 158 if not f then |
| 159 -- create the actionID label | 159 -- create the actionID label |
| 160 f = self.frames.button:CreateFontString(nil,"ARTWORK","NumberFontNormalSmall") | 160 f = self.frames.button:CreateFontString(nil,"ARTWORK","NumberFontNormalSmall") |
| 161 f:SetPoint("BOTTOMLEFT") | 161 f:SetPoint("BOTTOMLEFT") |
| 162 f:SetTextColor( tcolor(actionIDColor) ) | 162 f:SetTextColor( tcolor(actionIDColor) ) |
| 163 self.frames.actionID = f | 163 self.frames.actionID = f |
| 164 end | 164 end |
| 165 f:SetText(tostring(id)) | 165 f:SetText(tostring(self:GetID())) |
| 166 f:Show() | 166 f:Show() |
| 167 elseif f then | 167 elseif f then |
| 168 f:Hide() | 168 f:Hide() |
| 169 end | 169 end |
| 170 end | 170 end |
