Alpha 1.16.0

- Added option to be able to save the window's size and position within the profile.
- Added performance profile options.
- Added auto switch based on group roles also a switch for wipe.
- Fixed a bug where sometimes all non boss segments was considered boss encounters.
- Fixed the padlock image when sliders are deactivated.

- NewAPI: _detalhes:CheckForPerformanceProfile() check if is necessary change the performance profile.
- NewAPI: _detalhes:GetActorsOnDamageCache() return damage object from raid members inside the parser cache.
- NewAPI: _detalhes:GetActorsOnHealingCache() return healing object from raid members inside the parser cache.
This commit is contained in:
tercio
2014-06-09 16:42:54 -03:00
parent e62910b9da
commit e2d2910944
21 changed files with 1073 additions and 126 deletions
+32 -2
View File
@@ -281,14 +281,30 @@ local SliderMetaFunctions = {}
end
function SliderMetaFunctions:Enable()
self.slider:Enable()
self.slider.lock:Hide()
if (not self.lock_texture) then
gump:NewImage (self, [[Interface\PetBattles\PetBattle-LockIcon]], 12, 12, "overlay", {0.0546875, 0.9453125, 0.0703125, 0.9453125}, "lock_texture", "$parentLockTexture")
self.lock_texture:SetDesaturated (true)
self.lock_texture:SetPoint ("center", self.amt, "center")
end
self.lock_texture:Hide()
self.slider.amt:Show()
self:SetAlpha (1)
return _rawset (self, "lockdown", false)
end
function SliderMetaFunctions:Disable()
self.slider:Disable()
self.slider.lock:Show()
self.slider.amt:Hide()
self:SetAlpha (.4)
if (not self.lock_texture) then
gump:NewImage (self, [[Interface\PetBattles\PetBattle-LockIcon]], 12, 12, "overlay", {0.0546875, 0.9453125, 0.0703125, 0.9453125}, "lock_texture", "$parentLockTexture")
self.lock_texture:SetDesaturated (true)
self.lock_texture:SetPoint ("center", self.amt, "center")
end
self.lock_texture:Show()
return _rawset (self, "lockdown", true)
end
@@ -306,6 +322,10 @@ local SliderMetaFunctions = {}
local OnEnter = function (slider)
if (_rawget (slider.MyObject, "lockdown")) then
return
end
DetailsFrameworkSliderButtons:ShowMe (slider)
if (slider.MyObject.OnEnterHook) then
@@ -339,6 +359,10 @@ local SliderMetaFunctions = {}
local OnLeave = function (slider)
if (_rawget (slider.MyObject, "lockdown")) then
return
end
DetailsFrameworkSliderButtons:PrepareToHide()
if (slider.MyObject.OnLeaveHook) then
@@ -770,6 +794,12 @@ local switch_disable = function (self)
_rawset (self, "lockdown", true)
end
local switch_enable = function (self)
if (not self.lock_texture) then
gump:NewImage (self, [[Interface\PetBattles\PetBattle-LockIcon]], 12, 12, "overlay", {0.0546875, 0.9453125, 0.0703125, 0.9453125}, "lock_texture", "$parentLockTexture")
self.lock_texture:SetDesaturated (true)
self.lock_texture:SetPoint ("center", self._thumb, "center")
end
self.lock_texture:Hide()
self._text:Show()
self:SetAlpha (1)