- Fixed small involuntary resizes after resizing a window.

- Fixed row creation while resizing where sometimes it was broking the last row in the window.
- Fixed frame strata after stretching the window where was setting its strata to Medium.
- Fixed Vanguard strata where it wasn't following the strata from its host window.
This commit is contained in:
tercio
2014-06-14 15:37:15 -03:00
parent 98dafdb8fe
commit 9d7b43fba6
7 changed files with 28 additions and 16 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0", "LibHotCorners")
_detalhes.userversion = "v1.16.3a"
_detalhes.userversion = "v1.16.3b"
_detalhes.version = "Alpha 019"
_detalhes.realversion = 19
+5 -6
View File
@@ -140,8 +140,10 @@
local mostrando = self.mostrando
local baseframe_width = math.floor (self.baseframe:GetWidth())
local baseframe_height = math.floor (self.baseframe:GetHeight())
--local baseframe_width = math.floor (self.baseframe:GetWidth())
--local baseframe_height = math.floor (self.baseframe:GetHeight())
local baseframe_width = self.baseframe:GetWidth()
local baseframe_height = self.baseframe:GetHeight()
if (not baseframe_width) then
return _detalhes:ScheduleTimer ("SaveMainWindowPosition", 1, self)
@@ -380,10 +382,7 @@
if (self.rows_fit_in_window > #self.barras) then--> verifica se precisa criar mais barras
for i = #self.barras+1, self.rows_fit_in_window, 1 do
local nova_barra = gump:CriaNovaBarra (self, i, 30) --> cria nova barra
nova_barra.texto_esquerdo:SetText (Loc ["STRING_NEWROW"]) --seta o texto da esqueda
nova_barra.statusbar:SetValue (100)
self.barras [i] = nova_barra
gump:CriaNovaBarra (self, i, 30) --> cria nova barra
end
self.rows_created = #self.barras
end
+2 -2
View File
@@ -1604,8 +1604,8 @@ function gump:CriaJanelaInfo()
local target_texture = [[Interface\MINIMAP\TRACKING\Target]]
local empty_text = ""
local plus = red .. "+("
local minor = green .. "-("
local plus = red .. "-("
local minor = green .. "+("
local fill_compare_targets = function (self, player, other_players, target_pool)
+12 -4
View File
@@ -1582,8 +1582,8 @@ local function button_stretch_scripts (baseframe, backgrounddisplay, instancia)
gump:GradientEffect (esta_instancia.baseframe.wallpaper, "texture", _r, _g, _b, _a, _r, _g, _b, esta_instancia.baseframe.wallpaper.alpha, 1.0)
end
esta_instancia.baseframe:SetFrameStrata (baseframe_strata)
esta_instancia.rowframe:SetFrameStrata (baseframe_strata)
esta_instancia.baseframe:SetFrameStrata (esta_instancia.strata)
esta_instancia.rowframe:SetFrameStrata (esta_instancia.strata)
esta_instancia:StretchButtonAlwaysOnTop()
_detalhes:SendEvent ("DETAILS_INSTANCE_ENDSTRETCH", nil, esta_instancia.baseframe)
@@ -1601,8 +1601,8 @@ local function button_stretch_scripts (baseframe, backgrounddisplay, instancia)
gump:GradientEffect (baseframe.wallpaper, "texture", _r, _g, _b, _a, _r, _g, _b, instancia.wallpaper.alpha, 1.0)
end
baseframe:SetFrameStrata (baseframe_strata)
instancia.rowframe:SetFrameStrata (baseframe_strata)
baseframe:SetFrameStrata (instancia.strata)
instancia.rowframe:SetFrameStrata (instancia.strata)
instancia:StretchButtonAlwaysOnTop()
_detalhes:SnapTextures (false)
@@ -2750,6 +2750,13 @@ function gump:CriaNovaBarra (instancia, index)
--> hida a barra
gump:Fade (esta_barra, 1)
--> adiciona ela ao container de barras
instancia.barras [index] = esta_barra
--> seta o texto da esqueda
esta_barra.texto_esquerdo:SetText (Loc ["STRING_NEWROW"])
esta_barra.statusbar:SetValue (100)
instancia:InstanceRefreshRows()
return esta_barra
@@ -2913,6 +2920,7 @@ function _detalhes:SetBarSettings (height, texture, colorclass, fixedcolor, back
end
--/script _detalhes:InstanceRefreshRows (_detalhes.tabela_instancias[1])
-- search key: ~row
function _detalhes:InstanceRefreshRows (instancia)
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -96,6 +96,9 @@ local function CreatePluginFrames (data)
Vanguard:Start()
end
VanguardFrame:SetFrameStrata (instancia.strata)
VanguardFrame:SetFrameLevel (instancia.baseframe:GetFrameLevel()+5)
elseif (event == "REFRESH") then --> requested a refresh window
-->
@@ -121,7 +124,9 @@ local function CreatePluginFrames (data)
VanguardFrame:SetFrameLevel (instancia.baseframe:GetFrameLevel()+1)
elseif (event == "DETAILS_INSTANCE_ENDSTRETCH") then
VanguardFrame:SetFrameStrata ("MEDIUM")
local instance = Vanguard:GetInstance (Vanguard.instance_id)
VanguardFrame:SetFrameStrata (instance.strata)
VanguardFrame:SetFrameLevel (instance.baseframe:GetFrameLevel()+5)
Vanguard:OnResize()
elseif (event == "COMBAT_PLAYER_LEAVE") then --> current combat has finished