- Small visual improvement on tooltips.
- Fixed an issue when closing solo plugins with the red X button.
This commit is contained in:
@@ -2138,35 +2138,31 @@ local icon_frame_on_enter = function (self)
|
||||
|
||||
local got_info
|
||||
if (ilvl) then
|
||||
GameCooltip:AddLine ("Item Level:", ilvl and floor (ilvl.ilvl) or "??")
|
||||
GameCooltip:AddLine (STAT_AVERAGE_ITEM_LEVEL .. ":", ilvl and floor (ilvl.ilvl) or "??") --> Loc from GlobalStrings.lua
|
||||
_detalhes:AddTooltipBackgroundStatusbar()
|
||||
got_info = true
|
||||
end
|
||||
|
||||
if (talent_string ~= "") then
|
||||
GameCooltip:AddLine ("Talents:", talent_string)
|
||||
GameCooltip:AddLine (TALENTS .. ":", talent_string) --> Loc from GlobalStrings.lua
|
||||
_detalhes:AddTooltipBackgroundStatusbar()
|
||||
got_info = true
|
||||
elseif (got_info) then
|
||||
GameCooltip:AddLine ("Talents:", Loc ["STRING_QUERY_INSPECT_TALENTS"])
|
||||
GameCooltip:AddLine (TALENTS .. ":", Loc ["STRING_QUERY_INSPECT_TALENTS"]) --> Loc from GlobalStrings.lua
|
||||
end
|
||||
|
||||
GameCooltip:SetOption ("StatusBarTexture", [[Interface\AddOns\Details\images\bar_skyline]])
|
||||
GameCooltip:SetOption ("MinButtonHeight", 15)
|
||||
GameCooltip:SetOption ("IgnoreButtonAutoHeight", true)
|
||||
GameCooltip:SetOption ("IgnoreButtonAutoHeight", false)
|
||||
|
||||
if (not got_info) then
|
||||
--GameCooltip:AddLine (" ")
|
||||
|
||||
--GameCooltip:AddLine ("Click to retrive item level and talents.", nil, 1, "orange")
|
||||
|
||||
GameCooltip:AddLine (Loc ["STRING_QUERY_INSPECT"], nil, 1, "orange")
|
||||
GameCooltip:AddIcon ([[Interface\TUTORIALFRAME\UI-TUTORIAL-FRAME]], 1, 1, 12, icon_size, 8/512, 70/512, 224/512, 306/512)
|
||||
|
||||
GameCooltip:SetOption ("FixedHeight", 42)
|
||||
else
|
||||
|
||||
GameCooltip:SetOption ("FixedHeight", 58)
|
||||
GameCooltip:SetOption ("FixedHeight", 52)
|
||||
end
|
||||
|
||||
--GameCooltip:AddLine ("Class:", LOCALIZED_CLASS_NAMES_MALE [class])
|
||||
@@ -5641,6 +5637,7 @@ local build_mode_list = function (self, elapsed)
|
||||
_detalhes:SetMenuOwner (self, instancia)
|
||||
|
||||
CoolTip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
|
||||
--CoolTip:SetBackdrop (1, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
|
||||
CoolTip:SetBackdrop (2, _detalhes.tooltip_backdrop, nil, _detalhes.tooltip_border_color)
|
||||
CoolTip:SetWallpaper (1, _detalhes.tooltip.menus_bg_texture, _detalhes.tooltip.menus_bg_coords, _detalhes.tooltip.menus_bg_color, true)
|
||||
|
||||
|
||||
+15
-3
@@ -628,11 +628,14 @@ local function cria_drop_down (este_gump)
|
||||
_detalhes:SetFontColor (self.text, "white")
|
||||
end
|
||||
|
||||
window.last_reported_label:SetPoint ("topleft", window, "topleft", 5, -28)
|
||||
gump:SetFontSize (window.last_reported_label, 10)
|
||||
|
||||
for i = 1, 9 do --window.max_last_buttons
|
||||
local b = window.recently_report_buttons [i]
|
||||
|
||||
b:SetSize (150, 16)
|
||||
b:SetPoint ("topleft", window, "topleft", 10, -12 + (i*17*-1))
|
||||
b:SetPoint ("topleft", window, "topleft", 5, -28 + (i*17*-1))
|
||||
b:Show()
|
||||
b:SetBackdrop ({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 16,
|
||||
insets = {left = 0, right = 0, top = 0, bottom = 0}})
|
||||
@@ -772,11 +775,14 @@ local function cria_drop_down (este_gump)
|
||||
_detalhes:SetFontColor (self.text, "white")
|
||||
end
|
||||
|
||||
for i = 1, 9 do --window.max_last_buttons
|
||||
window.last_reported_label:SetPoint ("topleft", window, "topleft", 10, -69)
|
||||
_detalhes:SetFontSize (window.last_reported_label, 10)
|
||||
|
||||
for i = 1, 8 do --window.max_last_buttons
|
||||
local b = window.recently_report_buttons [i]
|
||||
|
||||
b:SetSize (150, 16)
|
||||
b:SetPoint ("topleft", window, "topleft", 10, -50 + (i*17*-1))
|
||||
b:SetPoint ("topleft", window, "topleft", 10, -67 + (i*17*-1))
|
||||
b:Show()
|
||||
b:SetBackdrop ({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 16,
|
||||
insets = {left = 0, right = 0, top = 0, bottom = 0}})
|
||||
@@ -790,6 +796,8 @@ local function cria_drop_down (este_gump)
|
||||
|
||||
local b = window.recently_report_buttons [10]
|
||||
b:Hide()
|
||||
b = window.recently_report_buttons [9]
|
||||
b:Hide()
|
||||
|
||||
Details_Report_CB_1:Hide()
|
||||
Details_Report_CB_2:Hide()
|
||||
@@ -974,6 +982,10 @@ local function cria_drop_down (este_gump)
|
||||
end
|
||||
end
|
||||
|
||||
local last_reported_label = window:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
window.last_reported_label = last_reported_label
|
||||
window.last_reported_label:SetText (Loc ["STRING_REPORTHISTORY"] .. ":")
|
||||
|
||||
for i = 1, window.max_last_buttons do
|
||||
local b = CreateFrame ("button", "DetailsReportWindowRRB" .. i, window)
|
||||
local icon = b:CreateTexture (nil, "overlay")
|
||||
|
||||
+16
-12
@@ -18,6 +18,7 @@ function _detalhes:OpenWelcomeWindow ()
|
||||
|
||||
window = _detalhes:CreateWelcomePanel ("DetailsWelcomeWindow", UIParent)
|
||||
window:SetPoint ("center", UIParent, "center", -200, 0)
|
||||
window:SetBackdropColor (0, 0, 0, 0.75)
|
||||
window:SetWidth (512)
|
||||
window:SetHeight (265)
|
||||
window:SetMovable (true)
|
||||
@@ -26,7 +27,7 @@ function _detalhes:OpenWelcomeWindow ()
|
||||
window:SetScript ("OnHide", function()
|
||||
_detalhes.tabela_historico:resetar()
|
||||
end)
|
||||
|
||||
|
||||
local background = window:CreateTexture (nil, "background")
|
||||
background:SetPoint ("topleft", window, "topleft")
|
||||
background:SetPoint ("bottomright", window, "bottomright")
|
||||
@@ -159,6 +160,9 @@ function _detalhes:OpenWelcomeWindow ()
|
||||
|
||||
end
|
||||
|
||||
--> overriting the results
|
||||
_detalhes.update_speed = 0.3
|
||||
|
||||
DetailsWelcomeWindowSliderUpdateSpeed.MyObject:SetValue (_detalhes.update_speed)
|
||||
DetailsWelcomeWindowAnimateSlider.MyObject:SetValue (_detalhes.use_row_animations)
|
||||
|
||||
@@ -1145,16 +1149,16 @@ local window_openned_at = time()
|
||||
window.DpsHpsSlider.tooltip = Loc ["STRING_WELCOME_64"]
|
||||
--]]
|
||||
--------------- Max Segments
|
||||
g:NewLabel (window, _, "$parentSliderLabel", "segmentsLabel", Loc ["STRING_WELCOME_21"] .. ":", "GameFontNormal")
|
||||
window.segmentsLabel:SetPoint (31, -210)
|
||||
-- g:NewLabel (window, _, "$parentSliderLabel", "segmentsLabel", Loc ["STRING_WELCOME_21"] .. ":", "GameFontNormal")
|
||||
-- window.segmentsLabel:SetPoint (31, -210)
|
||||
--
|
||||
g:NewSlider (window, _, "$parentSlider", "segmentsSlider", 120, 20, 1, 25, 1, _detalhes.segments_amount) -- min, max, step, defaultv
|
||||
window.segmentsSlider:SetPoint ("left", window.segmentsLabel, "right", 2, 0)
|
||||
window.segmentsSlider:SetHook ("OnValueChange", function (self, _, amount) --> slider, fixedValue, sliderValue
|
||||
_detalhes.segments_amount = math.floor (amount)
|
||||
end)
|
||||
window.segmentsSlider.tooltip = Loc ["STRING_WELCOME_22"]
|
||||
|
||||
-- g:NewSlider (window, _, "$parentSlider", "segmentsSlider", 120, 20, 1, 25, 1, _detalhes.segments_amount) -- min, max, step, defaultv
|
||||
-- window.segmentsSlider:SetPoint ("left", window.segmentsLabel, "right", 2, 0)
|
||||
-- window.segmentsSlider:SetHook ("OnValueChange", function (self, _, amount) --> slider, fixedValue, sliderValue
|
||||
-- _detalhes.segments_amount = math.floor (amount)
|
||||
-- end)
|
||||
-- window.segmentsSlider.tooltip = Loc ["STRING_WELCOME_22"]
|
||||
|
||||
--------------
|
||||
local mech_icon = window:CreateTexture (nil, "overlay")
|
||||
mech_icon:SetTexture ([[Interface\Vehicles\UI-Vehicles-Endcap-Alliance]])
|
||||
@@ -1203,8 +1207,8 @@ local window_openned_at = time()
|
||||
end)
|
||||
|
||||
----------------
|
||||
|
||||
pages [#pages+1] = {update_frame_alert, mech_icon2, mech_icon, window.segmentsLabel, window.segmentsSlider, bg, texto4, interval_text, dance_text, window.updatespeedLabel, window.updatespeedSlider, window.animateLabel, window.animateSlider, window.changemind4Label, window.DpsHpsLabel, window.DpsHpsSlider}
|
||||
-- window.segmentsLabel, window.segmentsSlider,
|
||||
pages [#pages+1] = {update_frame_alert, mech_icon2, mech_icon, bg, texto4, interval_text, dance_text, window.updatespeedLabel, window.updatespeedSlider, window.animateLabel, window.animateSlider, window.changemind4Label, window.DpsHpsLabel, window.DpsHpsSlider}
|
||||
|
||||
for _, widget in ipairs (pages[#pages]) do
|
||||
widget:Hide()
|
||||
|
||||
Reference in New Issue
Block a user