- Fixed a bug with menu desaturation where erase and close buttons stay colored after clicking on it.

- Fixed stretch where sometimes after release the window, all exceeded bars shows up and fade in again.
- Fixed a bug with the +- buttons on the window's scale option.
- Fixed the border for sub menus on mode menu.
This commit is contained in:
tercio
2014-12-01 21:50:21 -02:00
parent 586842958b
commit fc164b7a8b
9 changed files with 121 additions and 106 deletions
+4 -3
View File
@@ -7,14 +7,14 @@
4 - row settings
5 - row texts
6 - window settings
7 - left menu
7 - title bar buttons
8 - row advanced
9 - wallpaper
10 - performance teaks
11 - raid tools
12 - plugins
13 - profiles
14 - attribute text
14 - title bar text
15 - custom spells
16 - data for charts
17 - auto hide settings
@@ -3070,7 +3070,7 @@ end
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- General Settings - attribute ~14
-- General Settings - title bar text ~14
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function window:CreateFrame14()
@@ -5874,6 +5874,7 @@ function window:CreateFrame6()
s:SetBackdrop (slider_backdrop)
s:SetBackdropColor (unpack (slider_backdrop_color))
s:SetThumbSize (50)
s.fine_tuning = 0.011
frame6.WindowScaleSlider:SetHook ("OnValueChange", function (self, instance, amount)
instance:SetWindowScale (amount, true)
+18 -40
View File
@@ -4726,6 +4726,7 @@ local build_mode_list = function (self, elapsed)
CoolTip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], menu_wallpaper_tex, menu_wallpaper_color, true)
CoolTip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
CoolTip:SetBackdrop (2, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
show_anti_overlap (instancia, self, "top")
@@ -6328,6 +6329,10 @@ end
GameCooltip.buttonOver = true
self.instance.baseframe.cabecalho.button_mouse_over = true
if (self.instance.desaturated_menu) then
self:GetNormalTexture():SetDesaturated (false)
end
GameCooltip:Reset()
GameCooltip:SetType ("menu")
GameCooltip:SetOption ("ButtonsYMod", -2)
@@ -6360,6 +6365,10 @@ end
local reset_button_onleave = function (self)
OnLeaveMainWindow (self.instance, self)
if (self.instance.desaturated_menu) then
self:GetNormalTexture():SetDesaturated (true)
end
hide_anti_overlap (self.instance.baseframe.anti_menu_overlap)
GameCooltip.buttonOver = false
@@ -6394,6 +6403,10 @@ end
local close_button_onenter = function (self)
OnEnterMainWindow (self.instance, self, 3)
if (self.instance.desaturated_menu) then
self:GetNormalTexture():SetDesaturated (false)
end
local GameCooltip = GameCooltip
GameCooltip.buttonOver = true
@@ -6440,6 +6453,10 @@ end
local close_button_onleave = function (self)
OnLeaveMainWindow (self.instance, self, 3)
if (self.instance.desaturated_menu) then
self:GetNormalTexture():SetDesaturated (true)
end
hide_anti_overlap (self.instance.baseframe.anti_menu_overlap)
GameCooltip.buttonOver = false
@@ -6937,7 +6954,7 @@ function gump:CriaCabecalho (baseframe, instancia)
-- ~delete ~erase
-- ~delete ~erase ~reset
--> RESETAR HISTORICO ----------------------------------------------------------------------------------------------------------------------------------------------------
baseframe.cabecalho.reset = CreateFrame ("button", "DetailsClearSegmentsButton" .. instancia.meu_id, baseframe)
@@ -6966,43 +6983,4 @@ function gump:CriaCabecalho (baseframe, instancia)
--> fim botão reset
--[[
--> teste com shadows
--modo
local shadow = baseframe.cabecalho.modo_selecao:CreateTexture ("sombra", "background")
shadow:SetPoint ("center", baseframe.cabecalho.modo_selecao.widget, "center")
shadow:SetTexture ("Interface\\PetBattles\\PetBattle-SelectedPetGlow")
shadow:SetVertexColor (0, 0, 0, 1)
shadow:SetSize (22, 22)
--segmentos
local shadow = baseframe.cabecalho.segmento:CreateTexture ("sombra2", "background")
shadow:SetPoint ("center", baseframe.cabecalho.segmento.widget, "center")
shadow:SetTexture ("Interface\\PetBattles\\PetBattle-SelectedPetGlow")
shadow:SetVertexColor (0, 0, 0, 1)
shadow:SetSize (22, 22)
--atributo
local shadow = baseframe.cabecalho.atributo:CreateTexture ("sombra3", "background")
shadow:SetPoint ("center", baseframe.cabecalho.atributo.widget, "center")
shadow:SetTexture ("Interface\\PetBattles\\PetBattle-SelectedPetGlow")
shadow:SetVertexColor (0, 0, 0, 1)
shadow:SetSize (12, 16)
shadow:SetTexCoord (0.0, 0.0, 0.3, 0.3, 0.7, 0.7, 1, 1)
--report
local shadow = baseframe.cabecalho.report:CreateTexture ("sombra4", "background")
shadow:SetPoint ("center", baseframe.cabecalho.report.widget, "center")
shadow:SetTexture ("Interface\\PetBattles\\PetBattle-SelectedPetGlow")
shadow:SetVertexColor (0, 0, 0, 1)
shadow:SetSize (22, 22)
--baseToolbar.novo, baseToolbar.fechar, baseToolbar.reset}baseToolbar.modo_selecao, baseToolbar.segmento, baseToolbar.atributo, baseToolbar.report
local shadow = UIParent:CreateTexture ("SombraTeste", "background")
shadow:SetPoint ("center", UIParent, "center", 200, 0)
shadow:SetTexture ("Interface\\PetBattles\\PetBattle-SelectedPetGlow")
shadow:SetVertexColor (0, 0, 0, 1)
shadow:SetSize (300, 300)
shadow:SetTexCoord (0.0, 0.0, 0.3, 0.3, 0.7, 0.7, 1, 1)
--]]
end