Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/normal_bar.lua @ 22:dbd417f413a8
- framework update.
| author | Tercio |
|---|---|
| date | Tue, 08 Sep 2015 13:16:49 -0300 |
| parents | dc1c77254f80 |
| children | 7a285d98b95f |
comparison
equal
deleted
inserted
replaced
| 21:7fef991992f6 | 22:dbd417f413a8 |
|---|---|
| 194 local smember_color = function (_object, _value) | 194 local smember_color = function (_object, _value) |
| 195 local _value1, _value2, _value3, _value4 = DF:ParseColors (_value) | 195 local _value1, _value2, _value3, _value4 = DF:ParseColors (_value) |
| 196 | 196 |
| 197 _object.statusbar:SetStatusBarColor (_value1, _value2, _value3, _value4) | 197 _object.statusbar:SetStatusBarColor (_value1, _value2, _value3, _value4) |
| 198 _object._texture.original_colors = {_value1, _value2, _value3, _value4} | 198 _object._texture.original_colors = {_value1, _value2, _value3, _value4} |
| 199 _object.timer_texture:SetVertexColor (_value1, _value2, _value3, _value4) | |
| 199 return _object._texture:SetVertexColor (_value1, _value2, _value3, _value4) | 200 return _object._texture:SetVertexColor (_value1, _value2, _value3, _value4) |
| 200 end | 201 end |
| 201 --> icon | 202 --> icon |
| 202 local smember_icon = function (_object, _value) | 203 local smember_icon = function (_object, _value) |
| 203 if (type (_value) == "table") then | 204 if (type (_value) == "table") then |
| 214 --> texture | 215 --> texture |
| 215 local smember_texture = function (_object, _value) | 216 local smember_texture = function (_object, _value) |
| 216 if (type (_value) == "table") then | 217 if (type (_value) == "table") then |
| 217 local _value1, _value2 = _unpack (_value) | 218 local _value1, _value2 = _unpack (_value) |
| 218 _object._texture:SetTexture (_value1) | 219 _object._texture:SetTexture (_value1) |
| 220 _object.timer_texture:SetTexture (_value1) | |
| 219 if (_value2) then | 221 if (_value2) then |
| 220 _object._texture:SetTexCoord (_unpack (_value2)) | 222 _object._texture:SetTexCoord (_unpack (_value2)) |
| 223 _object.timer_texture:SetTexCoord (_unpack (_value2)) | |
| 221 end | 224 end |
| 222 else | 225 else |
| 223 if (_value:find ("\\")) then | 226 if (_value:find ("\\")) then |
| 224 _object._texture:SetTexture (_value) | 227 _object._texture:SetTexture (_value) |
| 225 else | 228 else |
| 226 local file = SharedMedia:Fetch ("statusbar", _value) | 229 local file = SharedMedia:Fetch ("statusbar", _value) |
| 227 if (file) then | 230 if (file) then |
| 228 _object._texture:SetTexture (file) | 231 _object._texture:SetTexture (file) |
| 232 _object.timer_texture:SetTexture (file) | |
| 229 else | 233 else |
| 230 _object._texture:SetTexture (_value) | 234 _object._texture:SetTexture (_value) |
| 235 _object.timer_texture:SetTexture (_value) | |
| 231 end | 236 end |
| 232 end | 237 end |
| 233 end | 238 end |
| 234 return | 239 return |
| 235 end | 240 end |
| 539 self.statusbar.t = self.timer_texture | 544 self.statusbar.t = self.timer_texture |
| 540 self (1) | 545 self (1) |
| 541 | 546 |
| 542 self.div_timer:Show() | 547 self.div_timer:Show() |
| 543 self.background:Show() | 548 self.background:Show() |
| 549 self:Show() | |
| 544 | 550 |
| 545 self.timer = true | 551 self.timer = true |
| 546 | 552 |
| 547 self.statusbar:SetScript ("OnUpdate", OnUpdate) | 553 self.statusbar:SetScript ("OnUpdate", OnUpdate) |
| 548 end | 554 end |
