- Damage -> Enemies now also show neutral creatures.
- Added support to dungeons, bosses and trash mobs are now recognized. - Added target information for each spell in Player Detail Window. - Added options for change the location of tooltips. - Added options for change the Overall Data functionality. - Added tooltips for lock and detach buttons. - Added new row texture: 'Details Vidro'. - Revamp on death log tooltips. - Improved the visual effect for the instance which current moving window can snap to. - Fixed issue where warlocks soul link was counting as damage done. - Fixed the attributes shown on Player Detail Window, now when showing Dps for example, all spells and targets also show Dps amount. - Fixed issue with Hotcorners where the quick click functionality wasn't changing on options panel. - Fixed a Hotcorner issue with window mode where the mouse goes outside the wow window. - Fixed bug where new rows created after resize the window was coming with borders. - Fixed bug where resize buttons was below the bars when setting the strata level to Dialog. - You are not prepared plugin had the time alert time increased to 30 seconds, up from 20.
This commit is contained in:
@@ -452,16 +452,16 @@ local ButtonMetaFunctions = {}
|
||||
--> scripts
|
||||
|
||||
local OnEnter = function (button)
|
||||
|
||||
|
||||
if (button.MyObject.OnEnterHook) then
|
||||
local interrupt = button.MyObject.OnEnterHook (button)
|
||||
if (interrupt) then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
button.MyObject.is_mouse_over = true
|
||||
|
||||
|
||||
if (button.texture) then
|
||||
if (button.texture.coords) then
|
||||
button.texture:SetTexCoord (_unpack (button.texture.coords.Highlight))
|
||||
@@ -469,7 +469,7 @@ local ButtonMetaFunctions = {}
|
||||
button.texture:SetTexCoord (0, 1, 0.24609375, 0.49609375)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if (button.MyObject.have_tooltip) then
|
||||
_detalhes:CooltipPreset (1)
|
||||
GameCooltip:AddLine (button.MyObject.have_tooltip)
|
||||
|
||||
@@ -2504,7 +2504,7 @@ function DetailsCreateCoolTip()
|
||||
elseif (menu.statusbar) then
|
||||
CoolTip:AddStatusBar (menu.value, menu.type or 1, menu.color, true)
|
||||
elseif (menu.icon) then
|
||||
CoolTip:AddIcon (menu.icon, menu.type or 1, menu.side or 1, menu.width, menu.height, menu.l, menu.r, menu.t, menu.b)
|
||||
CoolTip:AddIcon (menu.icon, menu.type or 1, menu.side or 1, menu.width, menu.height, menu.l, menu.r, menu.t, menu.b, menu.color)
|
||||
elseif (menu.textleft or menu.textright or menu.text) then
|
||||
CoolTip:AddLine (menu.text, "", menu.type, menu.color, menu.color)
|
||||
end
|
||||
|
||||
@@ -363,7 +363,7 @@ function DropDownMetaFunctions:Select (optionName, byOptionNumber)
|
||||
end
|
||||
|
||||
for _, thisMenu in ipairs (menu) do
|
||||
if (thisMenu.label == optionName and isOptionVisible (thisMenu)) then
|
||||
if ( ( thisMenu.label == optionName or thisMenu.value == optionName ) and isOptionVisible (thisMenu)) then
|
||||
self:Selected (thisMenu)
|
||||
return true
|
||||
end
|
||||
|
||||
+30
-5
@@ -695,13 +695,17 @@ local SwitchOnClick = function (self, button, forced_value, value)
|
||||
|
||||
local slider = self.MyObject
|
||||
|
||||
if (_rawget (slider, "lockdown")) then
|
||||
return
|
||||
end
|
||||
|
||||
if (forced_value) then
|
||||
rawset (slider, "value", not value)
|
||||
_rawset (slider, "value", not value)
|
||||
end
|
||||
|
||||
if (rawget (slider, "value")) then --actived
|
||||
if (_rawget (slider, "value")) then --actived
|
||||
|
||||
rawset (slider, "value", false)
|
||||
_rawset (slider, "value", false)
|
||||
slider._text:SetText (slider._ltext)
|
||||
slider._thumb:ClearAllPoints()
|
||||
|
||||
@@ -710,7 +714,7 @@ local SwitchOnClick = function (self, button, forced_value, value)
|
||||
|
||||
else
|
||||
|
||||
rawset (slider, "value", true)
|
||||
_rawset (slider, "value", true)
|
||||
slider._text:SetText (slider._rtext)
|
||||
slider._thumb:ClearAllPoints()
|
||||
|
||||
@@ -720,7 +724,7 @@ local SwitchOnClick = function (self, button, forced_value, value)
|
||||
end
|
||||
|
||||
if (slider.OnSwitch and not forced_value) then
|
||||
local value = rawget (slider, "value")
|
||||
local value = _rawget (slider, "value")
|
||||
if (slider.return_func) then
|
||||
value = slider:return_func (value)
|
||||
end
|
||||
@@ -753,6 +757,25 @@ local switch_set_fixparameter = function (self, value)
|
||||
_rawset (self, "FixedValue", value)
|
||||
end
|
||||
|
||||
local switch_disable = 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:Show()
|
||||
self._text:Hide()
|
||||
self:SetAlpha (.4)
|
||||
_rawset (self, "lockdown", true)
|
||||
end
|
||||
local switch_enable = function (self)
|
||||
self.lock_texture:Hide()
|
||||
self._text:Show()
|
||||
self:SetAlpha (1)
|
||||
return _rawset (self, "lockdown", false)
|
||||
end
|
||||
|
||||
function gump:NewSwitch (parent, container, name, member, w, h, ltext, rtext, default_value, color_inverted, switch_func, return_func)
|
||||
|
||||
--> early checks
|
||||
@@ -778,6 +801,8 @@ function gump:NewSwitch (parent, container, name, member, w, h, ltext, rtext, de
|
||||
slider.SetValue = switch_set_value
|
||||
slider.GetValue = switch_get_value
|
||||
slider.SetFixedParameter = switch_set_fixparameter
|
||||
slider.Disable = switch_disable
|
||||
slider.Enable = switch_enable
|
||||
|
||||
if (member) then
|
||||
parent [member] = slider
|
||||
|
||||
Reference in New Issue
Block a user