- Fixed a problem with auto hide feature not hiding plugins hosted by the window.
- Fixed an issue with stretch feature when the anchor button was anchored at the bottom side of the window. - Small interface tweaks on tooltips, bookmark and player detail window. - Custom display 'My Spells' now also show amount of casts and uptime. - Added an extra tooltip for the class icon at the player's bar. - Activity time now has only 3 seconds inactivity tolerance on battlegrounds and arenas. - Effective time will automatically be used when inside a battleground and using sync from the score board. - Added 'hide all' option on the minimap menu. - Added support for battlegrounds. - Added option for disable showing battleground enemies when the window is in group mode. - Added option to disable the sync from battleground score board. - Enemies from a battleground match segment won't be erased when the player logout.
This commit is contained in:
@@ -207,6 +207,11 @@
|
||||
|
||||
local OnEnableFunction = function (self)
|
||||
self.__parent.Enabled = true
|
||||
--self = frame __parent = plugin object
|
||||
local instance = _detalhes:GetInstance (self.__parent.instance_id)
|
||||
if (instance) then
|
||||
self:SetParent (instance.baseframe)
|
||||
end
|
||||
_detalhes:SendEvent ("SHOW", self.__parent)
|
||||
end
|
||||
|
||||
|
||||
+8
-1
@@ -149,12 +149,19 @@
|
||||
|
||||
_detalhes.string = {}
|
||||
|
||||
--> replacing data
|
||||
--> replacing data for custom texts
|
||||
|
||||
local left_side_func
|
||||
local right_side_func
|
||||
|
||||
local args
|
||||
local replace_arg = function (i)
|
||||
return args [tonumber(i)]
|
||||
end
|
||||
local run_function = function (str)
|
||||
|
||||
--str = [[local player, combat = ...;]] .. str
|
||||
|
||||
local okey, value = _pcall (loadstring (str), args[4], args[5])
|
||||
if (not okey) then
|
||||
_detalhes:Msg ("|cFFFF9900error on custom text function|r:", value)
|
||||
|
||||
+13
-4
@@ -561,10 +561,19 @@
|
||||
end
|
||||
end
|
||||
elseif (self.baseframe.isStretching and self.stretchToo and #self.stretchToo > 0) then
|
||||
for _, instancia in _ipairs (self.stretchToo) do
|
||||
instancia.baseframe:SetHeight (self.baseframe:GetHeight())
|
||||
local mod = (self.baseframe:GetHeight() - instancia.baseframe._place.altura) / 2
|
||||
instancia:RestoreMainWindowPositionNoResize (instancia.baseframe._place, nil, mod)
|
||||
if (self.baseframe.stretch_direction == "top") then
|
||||
for _, instancia in _ipairs (self.stretchToo) do
|
||||
instancia.baseframe:SetHeight (self.baseframe:GetHeight())
|
||||
local mod = (self.baseframe:GetHeight() - instancia.baseframe._place.altura) / 2
|
||||
instancia:RestoreMainWindowPositionNoResize (instancia.baseframe._place, nil, mod)
|
||||
end
|
||||
elseif (self.baseframe.stretch_direction == "bottom") then
|
||||
for _, instancia in _ipairs (self.stretchToo) do
|
||||
instancia.baseframe:SetHeight (self.baseframe:GetHeight())
|
||||
local mod = (self.baseframe:GetHeight() - instancia.baseframe._place.altura) / 2
|
||||
mod = mod * -1
|
||||
instancia:RestoreMainWindowPositionNoResize (instancia.baseframe._place, nil, mod)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -2384,8 +2384,10 @@ local function button_stretch_scripts (baseframe, backgrounddisplay, instancia)
|
||||
|
||||
if (instancia.stretch_button_side == 1) then
|
||||
baseframe:StartSizing ("top")
|
||||
baseframe.stretch_direction = "top"
|
||||
elseif (instancia.stretch_button_side == 2) then
|
||||
baseframe:StartSizing ("bottom")
|
||||
baseframe.stretch_direction = "bottom"
|
||||
end
|
||||
|
||||
local linha_horizontal = {}
|
||||
@@ -2473,6 +2475,8 @@ local function button_stretch_scripts (baseframe, backgrounddisplay, instancia)
|
||||
instancia:InstanceReset()
|
||||
instancia:ReajustaGump()
|
||||
|
||||
baseframe.stretch_direction = nil
|
||||
|
||||
if (instancia.stretchToo and #instancia.stretchToo > 0) then
|
||||
for _, esta_instancia in ipairs (instancia.stretchToo) do
|
||||
esta_instancia.baseframe:StopMovingOrSizing()
|
||||
|
||||
Reference in New Issue
Block a user