Fixed an error while trying to move the window by clicking and holding on a window line
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
|
||||
local version, build, date, tocversion = GetBuildInfo()
|
||||
|
||||
_detalhes.build_counter = 10135
|
||||
_detalhes.alpha_build_counter = 10135 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.build_counter = 10136
|
||||
_detalhes.alpha_build_counter = 10136 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.dont_open_news = true
|
||||
_detalhes.game_version = version
|
||||
_detalhes.userversion = version .. " " .. _detalhes.build_counter
|
||||
|
||||
+53
-85
@@ -294,14 +294,12 @@ function Details:EsconderScrollBar (sem_animacao, force)
|
||||
end
|
||||
|
||||
local function OnLeaveMainWindow(instancia, self)
|
||||
|
||||
instancia.is_interacting = false
|
||||
instancia:SetMenuAlpha(nil, nil, nil, nil, true)
|
||||
instancia:SetAutoHideMenu(nil, nil, true)
|
||||
instancia:RefreshAttributeTextSize()
|
||||
|
||||
if (instancia.modo ~= Details._detalhes_props["MODO_ALONE"] and not instancia.baseframe.isLocked) then
|
||||
|
||||
--resizes, lock and ungroup buttons
|
||||
if (not Details.disable_lock_ungroup_buttons) then
|
||||
instancia.baseframe.resize_direita:SetAlpha(0)
|
||||
@@ -314,7 +312,6 @@ local function OnLeaveMainWindow(instancia, self)
|
||||
Details.FadeHandler.Fader(instancia.baseframe.button_stretch, "ALPHA", 0)
|
||||
|
||||
elseif (instancia.modo ~= Details._detalhes_props["MODO_ALONE"] and instancia.baseframe.isLocked) then
|
||||
|
||||
--resizes, lock and ungroup buttons
|
||||
if (not Details.disable_lock_ungroup_buttons) then
|
||||
instancia.baseframe.lock_button:SetAlpha(0)
|
||||
@@ -322,7 +319,6 @@ local function OnLeaveMainWindow(instancia, self)
|
||||
end
|
||||
|
||||
Details.FadeHandler.Fader(instancia.baseframe.button_stretch, "ALPHA", 0)
|
||||
|
||||
end
|
||||
end
|
||||
Details.OnLeaveMainWindow = OnLeaveMainWindow
|
||||
@@ -342,7 +338,6 @@ local function OnEnterMainWindow(instancia, self)
|
||||
end
|
||||
|
||||
if (instancia.modo ~= Details._detalhes_props["MODO_ALONE"] and not instancia.baseframe.isLocked) then
|
||||
|
||||
--resize, lock and ungroup buttons
|
||||
if (not Details.disable_lock_ungroup_buttons) then
|
||||
instancia.baseframe.resize_direita:SetAlpha(1)
|
||||
@@ -364,7 +359,6 @@ local function OnEnterMainWindow(instancia, self)
|
||||
end
|
||||
|
||||
elseif (instancia.modo ~= Details._detalhes_props["MODO_ALONE"] and instancia.baseframe.isLocked) then
|
||||
|
||||
if (not Details.disable_lock_ungroup_buttons) then
|
||||
instancia.baseframe.lock_button:SetAlpha(1)
|
||||
|
||||
@@ -383,6 +377,7 @@ local function OnEnterMainWindow(instancia, self)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Details.OnEnterMainWindow = OnEnterMainWindow
|
||||
|
||||
local function VPL (instancia, esta_instancia)
|
||||
@@ -440,7 +435,6 @@ local color_green = {0.2, 1, 0.2}
|
||||
local pixels_per_arrow = 50
|
||||
|
||||
local show_instance_ids = function()
|
||||
|
||||
for id, instance in Details:ListInstances() do
|
||||
if (instance:IsEnabled()) then
|
||||
local id_texture1 = instance.baseframe.id_texture1
|
||||
@@ -723,7 +717,6 @@ local movement_onupdate = function(self, elapsed)
|
||||
end
|
||||
|
||||
local function move_janela(baseframe, iniciando, instancia, just_updating)
|
||||
|
||||
instancia_alvo = Details.tabela_instancias [instancia.meu_id-1]
|
||||
if (Details.disable_window_groups) then
|
||||
instancia_alvo = nil
|
||||
@@ -837,7 +830,6 @@ local function move_janela(baseframe, iniciando, instancia, just_updating)
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
baseframe:StopMovingOrSizing()
|
||||
baseframe.isMoving = false
|
||||
baseframe:SetScript("OnUpdate", nil)
|
||||
@@ -983,9 +975,9 @@ local function move_janela(baseframe, iniciando, instancia, just_updating)
|
||||
instancia_alvo.h_direita:Stop()
|
||||
instancia_alvo.h_cima:Stop()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Details.move_janela_func = move_janela
|
||||
|
||||
local BGFrame_scripts_onenter = function(self)
|
||||
@@ -997,7 +989,6 @@ local BGFrame_scripts_onleave = function(self)
|
||||
end
|
||||
|
||||
local BGFrame_scripts_onmousedown = function(self, button)
|
||||
|
||||
-- /run Details.disable_stretch_from_toolbar = true
|
||||
if (self.is_toolbar and self._instance.baseframe.isLocked and button == "LeftButton" and not Details.disable_stretch_from_toolbar) then
|
||||
return self._instance.baseframe.button_stretch:GetScript("OnMouseDown") (self._instance.baseframe.button_stretch, "LeftButton")
|
||||
@@ -1016,6 +1007,7 @@ local BGFrame_scripts_onmousedown = function(self, button)
|
||||
self._instance.menu_attribute_string:SetPoint("bottomleft", self._instance.baseframe.cabecalho.ball, "bottomright", self._instance.attribute_text.anchor [1]+1, self._instance.attribute_text.anchor [2]-1)
|
||||
end
|
||||
end
|
||||
|
||||
elseif (button == "RightButton") then
|
||||
if (self.is_toolbar and not Details.disable_alldisplays_window) then
|
||||
self._instance:ShowAllSwitch()
|
||||
@@ -1030,7 +1022,6 @@ local BGFrame_scripts_onmousedown = function(self, button)
|
||||
end
|
||||
|
||||
local BGFrame_scripts_onmouseup = function(self, button)
|
||||
|
||||
if (self.is_toolbar and self._instance.baseframe.isLocked and button == "LeftButton") then
|
||||
if (DetailsWindowLockPopUp1 and DetailsWindowLockPopUp1:IsShown()) then
|
||||
_G ["DetailsWindowLockPopUp1"]:Hide()
|
||||
@@ -1058,7 +1049,6 @@ local function BGFrame_scripts(BG, baseframe, instancia)
|
||||
end
|
||||
|
||||
function gump:RegisterForDetailsMove(frame, instancia)
|
||||
|
||||
frame:SetScript("OnMouseDown", function(frame, button)
|
||||
if (not instancia.baseframe.isLocked and button == "LeftButton") then
|
||||
move_janela(instancia.baseframe, true, instancia) --novo movedor da janela
|
||||
@@ -1195,7 +1185,6 @@ local check_snap_side = function(instanceid, snap, id, container)
|
||||
end
|
||||
|
||||
function Details:InstanciasVerticais(instance)
|
||||
|
||||
instance = self or instance
|
||||
|
||||
local on_top = {}
|
||||
@@ -1303,7 +1292,6 @@ lado 1 | | lado 3
|
||||
--]]
|
||||
|
||||
function Details:InstanciasHorizontais(instancia)
|
||||
|
||||
instancia = self or instancia
|
||||
|
||||
local linha_horizontal, esquerda, direita = {}, 0, 0
|
||||
@@ -1327,6 +1315,7 @@ function Details:InstanciasHorizontais (instancia)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
elseif (check_index_anterior.snap[1] and check_index_anterior.snap[1] == instancia.meu_id) then --o index negativo vai para a direita
|
||||
for i = instancia.meu_id-1, 1, -1 do
|
||||
local esta_instancia = Details.tabela_instancias [i]
|
||||
@@ -1360,6 +1349,7 @@ function Details:InstanciasHorizontais (instancia)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
elseif (check_index_posterior.snap[1] and check_index_posterior.snap[1] == instancia.meu_id) then --o index posterior vai para a direita
|
||||
for i = instancia.meu_id+1, #Details.tabela_instancias do
|
||||
local esta_instancia = Details.tabela_instancias [i]
|
||||
@@ -1424,18 +1414,19 @@ local resize_scripts_onmousedown = function(self, button)
|
||||
end
|
||||
end
|
||||
|
||||
----------------
|
||||
|
||||
if (self._myside == "<") then
|
||||
if (_IsShiftKeyDown()) then
|
||||
self._instance.baseframe:StartSizing("left")
|
||||
self._instance.eh_horizontal = true
|
||||
|
||||
elseif (_IsAltKeyDown()) then
|
||||
self._instance.baseframe:StartSizing("top")
|
||||
self._instance.eh_vertical = true
|
||||
|
||||
elseif (_IsControlKeyDown()) then
|
||||
self._instance.baseframe:StartSizing("bottomleft")
|
||||
self._instance.eh_tudo = true
|
||||
|
||||
else
|
||||
self._instance.baseframe:StartSizing("bottomleft")
|
||||
end
|
||||
@@ -1447,12 +1438,15 @@ local resize_scripts_onmousedown = function(self, button)
|
||||
if (_IsShiftKeyDown()) then
|
||||
self._instance.baseframe:StartSizing("right")
|
||||
self._instance.eh_horizontal = true
|
||||
|
||||
elseif (_IsAltKeyDown()) then
|
||||
self._instance.baseframe:StartSizing("top")
|
||||
self._instance.eh_vertical = true
|
||||
|
||||
elseif (_IsControlKeyDown()) then
|
||||
self._instance.baseframe:StartSizing("bottomright")
|
||||
self._instance.eh_tudo = true
|
||||
|
||||
else
|
||||
self._instance.baseframe:StartSizing("bottomright")
|
||||
end
|
||||
@@ -1471,12 +1465,10 @@ local resize_scripts_onmousedown = function(self, button)
|
||||
Details:SetWindowUpdateSpeed(0.3, true)
|
||||
Details.resize_changed_update_speed = true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
local resize_scripts_onmouseup = function(self, button)
|
||||
|
||||
local resizeScriptsOnMouseUp = function(self, button)
|
||||
if (Details.disable_lock_ungroup_buttons) then
|
||||
return
|
||||
end
|
||||
@@ -1495,7 +1487,6 @@ local resize_scripts_onmouseup = function(self, button)
|
||||
end
|
||||
|
||||
if (self:GetParent().isResizing) then
|
||||
|
||||
self:GetParent():StopMovingOrSizing()
|
||||
self:GetParent().isResizing = false
|
||||
|
||||
@@ -1568,25 +1559,22 @@ local resize_scripts_onmouseup = function(self, button)
|
||||
Details:SetWindowUpdateSpeed(false, true)
|
||||
Details.resize_changed_update_speed = nil
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
local resize_scripts_onhide = function(self)
|
||||
local resizeScriptsOnHide = function(self)
|
||||
if (self.going_hide) then
|
||||
_G.GameCooltip:ShowMe(false)
|
||||
self.going_hide = nil
|
||||
end
|
||||
end
|
||||
|
||||
local resize_scripts_onenter = function(self)
|
||||
|
||||
local resizeScriptsOnEnter = function(self)
|
||||
if (Details.disable_lock_ungroup_buttons) then
|
||||
return
|
||||
end
|
||||
|
||||
if (self._instance.modo ~= Details._detalhes_props["MODO_ALONE"] and not self._instance.baseframe.isLocked and not self.mostrando) then
|
||||
|
||||
OnEnterMainWindow(self._instance, self)
|
||||
|
||||
self.texture:SetBlendMode("ADD")
|
||||
@@ -1600,7 +1588,7 @@ local resize_scripts_onenter = function(self)
|
||||
end
|
||||
end
|
||||
|
||||
local resize_scripts_onleave = function(self)
|
||||
local resizeScriptsOnLeave = function(self)
|
||||
if (self.mostrando) then
|
||||
self.going_hide = true
|
||||
if (not self.movendo) then
|
||||
@@ -1614,15 +1602,15 @@ local resize_scripts_onleave = function(self)
|
||||
end
|
||||
end
|
||||
|
||||
local function resize_scripts (resizer, instancia, scrollbar, side, baseframe)
|
||||
local setWindowResizeScripts = function(resizer, instancia, scrollbar, side, baseframe)
|
||||
resizer._instance = instancia
|
||||
resizer._myside = side
|
||||
|
||||
resizer:SetScript("OnMouseDown", resize_scripts_onmousedown)
|
||||
resizer:SetScript("OnMouseUp", resize_scripts_onmouseup)
|
||||
resizer:SetScript("OnHide", resize_scripts_onhide)
|
||||
resizer:SetScript("OnEnter", resize_scripts_onenter)
|
||||
resizer:SetScript("OnLeave", resize_scripts_onleave)
|
||||
resizer:SetScript("OnMouseUp", resizeScriptsOnMouseUp)
|
||||
resizer:SetScript("OnHide", resizeScriptsOnHide)
|
||||
resizer:SetScript("OnEnter", resizeScriptsOnEnter)
|
||||
resizer:SetScript("OnLeave", resizeScriptsOnLeave)
|
||||
end
|
||||
|
||||
local lockButtonTooltip = {
|
||||
@@ -1631,7 +1619,6 @@ local lockButtonTooltip = {
|
||||
}
|
||||
|
||||
local lockFunctionOnEnter = function(self)
|
||||
|
||||
if (Details.disable_lock_ungroup_buttons) then
|
||||
return
|
||||
end
|
||||
@@ -1669,9 +1656,9 @@ local lockFunctionOnHide = function(self)
|
||||
end
|
||||
end
|
||||
|
||||
function Details:DelayOptionsRefresh (instance, no_reopen)
|
||||
function Details:DelayOptionsRefresh(instance, noReopen)
|
||||
if (_G.DetailsOptionsWindow and _G.DetailsOptionsWindow:IsShown()) then
|
||||
Details:ScheduleTimer ("OpenOptionsWindow", 0.1, {instance or _G.DetailsOptionsWindow.instance, no_reopen})
|
||||
Details:ScheduleTimer ("OpenOptionsWindow", 0.1, {instance or _G.DetailsOptionsWindow.instance, noReopen})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1695,7 +1682,6 @@ function Details:RefreshLockedState()
|
||||
end
|
||||
|
||||
local lockFunctionOnClick = function(button, button_type, button2, isFromOptionsButton)
|
||||
|
||||
--isFromOptionsButton is true when the call if from the button in the display section of the options panel
|
||||
if (Details.disable_lock_ungroup_buttons and isFromOptionsButton ~= true) then
|
||||
return
|
||||
@@ -1756,20 +1742,19 @@ local unSnapButtonTooltip = {
|
||||
}
|
||||
|
||||
local unSnapButtonOnEnter = function(self)
|
||||
|
||||
if (Details.disable_lock_ungroup_buttons) then
|
||||
return
|
||||
end
|
||||
|
||||
local have_snap = false
|
||||
local haveSnap = false
|
||||
for _, instancia_id in pairs(self.instancia.snap) do
|
||||
if (instancia_id) then
|
||||
have_snap = true
|
||||
haveSnap = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
if (not have_snap) then
|
||||
if (not haveSnap) then
|
||||
OnEnterMainWindow(self.instancia, self)
|
||||
self.mostrando = true
|
||||
return
|
||||
@@ -1783,7 +1768,6 @@ local unSnapButtonOnEnter = function(self)
|
||||
GameCooltip:AddFromTable(unSnapButtonTooltip)
|
||||
|
||||
GameCooltip:ShowCooltip(self, "tooltip")
|
||||
|
||||
end
|
||||
|
||||
local unSnapButtonOnLeave = function(self)
|
||||
@@ -1795,10 +1779,9 @@ local unSnapButtonOnLeave = function(self)
|
||||
end
|
||||
|
||||
--this should run only when the mouse is over a instance bar
|
||||
local shift_monitor = function(self)
|
||||
|
||||
local shiftMonitor = function(self)
|
||||
if (not self:IsMouseOver()) then
|
||||
self:SetScript("OnUpdate", shift_monitor)
|
||||
self:SetScript("OnUpdate", nil)
|
||||
return
|
||||
end
|
||||
|
||||
@@ -1847,6 +1830,7 @@ local barra_backdrop_onenter = {
|
||||
tile = true, tileSize = 16,
|
||||
insets = {left = 1, right = 1, top = 0, bottom = 1}
|
||||
}
|
||||
|
||||
local barra_backdrop_onleave = {
|
||||
bgFile = "",
|
||||
edgeFile = "", tile = true, tileSize = 16, edgeSize = 32,
|
||||
@@ -1861,6 +1845,7 @@ local barra_backdrop_onleave = {
|
||||
Details.left_anti_truncate.text = Details.left_anti_truncate:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
Details.left_anti_truncate.text:SetPoint("left", Details.left_anti_truncate, "left", 3, 0)
|
||||
|
||||
--@self: instance line (row)
|
||||
local lineScript_Onenter = function(self)
|
||||
self.mouse_over = true
|
||||
OnEnterMainWindow(self._instance, self)
|
||||
@@ -1892,8 +1877,14 @@ local lineScript_Onenter = function(self)
|
||||
lefttext.untruncated = true
|
||||
end
|
||||
|
||||
self:SetScript("OnUpdate", shift_monitor)
|
||||
self:SetScript("OnUpdate", shiftMonitor)
|
||||
|
||||
local classIcon = self:GetClassIcon()
|
||||
self.iconHighlight:SetTexture(classIcon:GetTexture())
|
||||
self.iconHighlight:SetTexCoord(classIcon:GetTexCoord())
|
||||
self.iconHighlight:SetVertexColor(classIcon:GetVertexColor())
|
||||
self.iconHighlight:SetBlendMode("ADD")
|
||||
self.iconHighlight:SetAlpha(0.3)
|
||||
self.iconHighlight:Show()
|
||||
end
|
||||
|
||||
@@ -3823,8 +3814,8 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
|
||||
|
||||
-- scripts ------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
resize_scripts (baseframe.resize_direita, instancia, scrollbar, ">", baseframe)
|
||||
resize_scripts (baseframe.resize_esquerda, instancia, scrollbar, "<", baseframe)
|
||||
setWindowResizeScripts (baseframe.resize_direita, instancia, scrollbar, ">", baseframe)
|
||||
setWindowResizeScripts (baseframe.resize_esquerda, instancia, scrollbar, "<", baseframe)
|
||||
|
||||
-- side bars highlights ------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -4017,6 +4008,18 @@ local windowLineMixin = {
|
||||
GetActor = function(self)
|
||||
return self.minha_tabela
|
||||
end,
|
||||
|
||||
GetInstanceId = function(self)
|
||||
return self.instance_id
|
||||
end,
|
||||
|
||||
GetLineId = function(self)
|
||||
return self.row_id
|
||||
end,
|
||||
|
||||
GetClassIcon = function(self)
|
||||
return self.icone_classe
|
||||
end,
|
||||
}
|
||||
|
||||
Details.barras_criadas = 0
|
||||
@@ -4040,6 +4043,7 @@ function gump:CreateNewLine(instance, index)
|
||||
newLine.instance_id = instance.meu_id
|
||||
newLine.animacao_fim = 0
|
||||
newLine.animacao_fim2 = 0
|
||||
newLine.isInstanceLine = true
|
||||
|
||||
--set point, almost irrelevant here, it recalc this on SetBarGrowDirection()
|
||||
local yOffset = instance.row_height * (index-1)
|
||||
@@ -4113,6 +4117,7 @@ function gump:CreateNewLine(instance, index)
|
||||
--class icon highlight
|
||||
local iconHightlight = newLine.border:CreateTexture(nil, "overlay", nil, 6)
|
||||
iconHightlight:SetAllPoints(classIcon)
|
||||
iconHightlight:Hide()
|
||||
newLine.iconHighlight = iconHightlight
|
||||
|
||||
local iconFrame = CreateFrame("frame", "DetailsBarra_IconFrame_" .. instance.meu_id .. "_" .. index, newLine.statusbar)
|
||||
@@ -8307,7 +8312,6 @@ function Details:MicroDisplaysSide (side, fromuser)
|
||||
elseif (self.micro_displays_side == 1) then
|
||||
Details.StatusBar:Show (self)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function Details:IsGroupedWith (instance)
|
||||
@@ -8321,7 +8325,6 @@ function Details:IsGroupedWith (instance)
|
||||
end
|
||||
|
||||
function Details:GetInstanceGroup (instance_id)
|
||||
|
||||
local instance = self
|
||||
|
||||
if (instance_id) then
|
||||
@@ -8400,7 +8403,6 @@ function Details:SetWindowScale(scale, fromOptions)
|
||||
end
|
||||
|
||||
function Details:ToolbarSide (side, only_update_anchors)
|
||||
|
||||
if (not side) then
|
||||
side = self.toolbar_side
|
||||
end
|
||||
@@ -8410,7 +8412,6 @@ function Details:ToolbarSide (side, only_update_anchors)
|
||||
local skin = Details.skins [self.skin]
|
||||
|
||||
if (side == 1) then --top
|
||||
|
||||
local anchor_mod = not self.show_sidebars and skin.instance_cprops.show_sidebars_need_resize_by or 0
|
||||
|
||||
--icon (ball) point
|
||||
@@ -8457,9 +8458,7 @@ function Details:ToolbarSide (side, only_update_anchors)
|
||||
self.baseframe.UPFrameLeftPart:ClearAllPoints()
|
||||
self.baseframe.UPFrameLeftPart:SetPoint("bottomleft", self.baseframe, "topleft", 0, 0)
|
||||
|
||||
|
||||
else --bottom
|
||||
|
||||
local y = 0
|
||||
if (self.show_statusbar) then
|
||||
y = -14
|
||||
@@ -8534,7 +8533,6 @@ function Details:ToolbarSide (side, only_update_anchors)
|
||||
end
|
||||
|
||||
function Details:StretchButtonAlwaysOnTop (on_top)
|
||||
|
||||
if (type(on_top) ~= "boolean") then
|
||||
on_top = self.grab_on_top
|
||||
end
|
||||
@@ -8546,17 +8544,14 @@ function Details:StretchButtonAlwaysOnTop (on_top)
|
||||
else
|
||||
self.baseframe.button_stretch:SetFrameStrata(self.strata)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function Details:StretchButtonAnchor (side)
|
||||
|
||||
if (not side) then
|
||||
side = self.stretch_button_side
|
||||
end
|
||||
|
||||
if (side == 1 or string.lower (side) == "top") then
|
||||
|
||||
self.baseframe.button_stretch:ClearAllPoints()
|
||||
|
||||
local y = 0
|
||||
@@ -8570,7 +8565,6 @@ function Details:StretchButtonAnchor (side)
|
||||
self.stretch_button_side = 1
|
||||
|
||||
elseif (side == 2 or string.lower (side) == "bottom") then
|
||||
|
||||
self.baseframe.button_stretch:ClearAllPoints()
|
||||
|
||||
local y = 0
|
||||
@@ -8588,9 +8582,7 @@ function Details:StretchButtonAnchor (side)
|
||||
self.baseframe.button_stretch.texture:SetTexCoord(r, l, b, t)
|
||||
|
||||
self.stretch_button_side = 2
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function Details:MenuAnchor (x, y)
|
||||
@@ -8626,7 +8618,6 @@ function Details:MenuAnchor (x, y)
|
||||
|
||||
else --bottom
|
||||
menu_points [1]:SetPoint("topleft", self.baseframe.cabecalho.ball, "topright", x, (y*-1) - 4)
|
||||
|
||||
end
|
||||
|
||||
elseif (self.menu_anchor.side == 2) then --right
|
||||
@@ -8638,7 +8629,6 @@ function Details:MenuAnchor (x, y)
|
||||
|
||||
else --bottom
|
||||
menu_points [2]:SetPoint("topleft", self.baseframe.cabecalho.ball_r, "topleft", x, (y*-1) - 4)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8646,13 +8636,11 @@ function Details:MenuAnchor (x, y)
|
||||
end
|
||||
|
||||
function Details:HideMainIcon (value)
|
||||
|
||||
if (type(value) ~= "boolean") then
|
||||
value = self.hide_icon
|
||||
end
|
||||
|
||||
if (value) then
|
||||
|
||||
self.hide_icon = true
|
||||
Details.FadeHandler.Fader(self.baseframe.cabecalho.atributo_icon, 1)
|
||||
|
||||
@@ -8685,7 +8673,6 @@ function Details:HideMainIcon (value)
|
||||
self.baseframe.cabecalho.emenda:SetTexCoord(unpack(COORDS_LEFT_CONNECTOR))
|
||||
|
||||
elseif (self.toolbar_side == 2) then
|
||||
|
||||
local l, r, t, b = unpack(COORDS_LEFT_BALL)
|
||||
self.baseframe.cabecalho.ball:SetTexCoord(l, r, b, t)
|
||||
local l, r, t, b = unpack(COORDS_LEFT_CONNECTOR)
|
||||
@@ -8696,13 +8683,11 @@ end
|
||||
|
||||
--search key: ~desaturate
|
||||
function Details:DesaturateMenu (value)
|
||||
|
||||
if (value == nil) then
|
||||
value = self.desaturated_menu
|
||||
end
|
||||
|
||||
if (value) then
|
||||
|
||||
self.desaturated_menu = true
|
||||
self.baseframe.cabecalho.modo_selecao:GetNormalTexture():SetDesaturated(true)
|
||||
self.baseframe.cabecalho.segmento:GetNormalTexture():SetDesaturated(true)
|
||||
@@ -8718,7 +8703,6 @@ function Details:DesaturateMenu (value)
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
self.desaturated_menu = false
|
||||
self.baseframe.cabecalho.modo_selecao:GetNormalTexture():SetDesaturated(false)
|
||||
self.baseframe.cabecalho.segmento:GetNormalTexture():SetDesaturated(false)
|
||||
@@ -8732,7 +8716,6 @@ function Details:DesaturateMenu (value)
|
||||
button:GetNormalTexture():SetDesaturated(false)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8793,7 +8776,6 @@ function Details:ShowSideBars (instancia)
|
||||
--self:SetBarGrowDirection()
|
||||
--passando true - apenas atulizar as anchors
|
||||
self:ToolbarSide (nil, true)
|
||||
|
||||
end
|
||||
|
||||
function Details:HideSideBars (instancia)
|
||||
@@ -8866,7 +8848,6 @@ function Details:HideStatusBar (instancia)
|
||||
end
|
||||
|
||||
function Details:StatusBarColor(r, g, b, a, no_save)
|
||||
|
||||
if (not r) then
|
||||
r, g, b = unpack(self.statusbar_info.overlay)
|
||||
a = a or self.statusbar_info.alpha
|
||||
@@ -8889,7 +8870,6 @@ function Details:StatusBarColor (r, g, b, a, no_save)
|
||||
self.baseframe.rodape.esquerdo_nostatusbar:SetAlpha(a)
|
||||
self.baseframe.rodape.top_bg:SetVertexColor(r, g, b)
|
||||
self.baseframe.rodape.top_bg:SetAlpha(a)
|
||||
|
||||
end
|
||||
|
||||
function Details:ShowStatusBar(instancia)
|
||||
@@ -8920,7 +8900,6 @@ function Details:ShowStatusBar(instancia)
|
||||
end
|
||||
|
||||
function Details:SetTooltipBackdrop(border_texture, border_size, border_color)
|
||||
|
||||
if (not border_texture) then
|
||||
border_texture = Details.tooltip.border_texture
|
||||
end
|
||||
@@ -8941,12 +8920,10 @@ function Details:SetTooltipBackdrop (border_texture, border_size, border_color)
|
||||
|
||||
Details.tooltip_backdrop.edgeFile = SharedMedia:Fetch("border", border_texture)
|
||||
Details.tooltip_backdrop.edgeSize = border_size
|
||||
|
||||
end
|
||||
|
||||
--reset button functions
|
||||
local reset_button_onenter = function(self, _, forced, from_click)
|
||||
|
||||
if (Details.instances_menu_click_to_open and not forced) then
|
||||
return
|
||||
end
|
||||
@@ -9009,13 +8986,11 @@ end
|
||||
else
|
||||
self:SetScript("OnUpdate", nil)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--close button functions
|
||||
|
||||
local close_button_onclick = function(self, button_type, button)
|
||||
|
||||
if (self and not self.instancia and button and button.instancia) then
|
||||
self = button
|
||||
end
|
||||
@@ -9119,7 +9094,6 @@ end
|
||||
else
|
||||
self:SetScript("OnUpdate", nil)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -9136,7 +9110,6 @@ local menu_can_open = function()
|
||||
end
|
||||
|
||||
local report_on_enter = function(self, motion, forced, from_click)
|
||||
|
||||
local is_cooltip_opened = menu_can_open() -- and not is_cooltip_opened
|
||||
if (Details.instances_menu_click_to_open and not forced) then
|
||||
return
|
||||
@@ -9200,7 +9173,6 @@ local report_on_enter = function(self, motion, forced, from_click)
|
||||
end
|
||||
|
||||
local report_on_leave = function(self, motion, forced, from_click)
|
||||
|
||||
local instancia = self._instance or self.widget._instance
|
||||
local baseframe = instancia.baseframe
|
||||
|
||||
@@ -9224,7 +9196,6 @@ local report_on_leave = function(self, motion, forced, from_click)
|
||||
end
|
||||
|
||||
local atributo_on_enter = function(self, motion, forced, from_click)
|
||||
|
||||
local is_cooltip_opened = menu_can_open() -- and not is_cooltip_opened
|
||||
if (Details.instances_menu_click_to_open and not forced) then
|
||||
return
|
||||
@@ -9353,7 +9324,6 @@ local segmentButton_OnLeave = function(self, motion, forced, fromClick)
|
||||
end
|
||||
|
||||
local modo_selecao_on_enter = function(self, motion, forced, from_click)
|
||||
|
||||
local is_cooltip_opened = menu_can_open() -- not is_cooltip_opened
|
||||
if (Details.instances_menu_click_to_open and not forced) then
|
||||
return
|
||||
@@ -9395,7 +9365,6 @@ local modo_selecao_on_enter = function(self, motion, forced, from_click)
|
||||
end
|
||||
|
||||
local modo_selecao_on_leave = function(self)
|
||||
|
||||
local instancia = self._instance or self.widget._instance
|
||||
local baseframe = instancia.baseframe
|
||||
|
||||
@@ -9419,7 +9388,6 @@ local modo_selecao_on_leave = function(self)
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- these can
|
||||
local title_bar_icons = {
|
||||
{texture = [[Interface\AddOns\Details\images\toolbar_icons]], texcoord = {0/256, 32/256, 0, 1}},
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
Reference in New Issue
Block a user