diff --git a/Details.toc b/Details.toc index ec510459..fd8c7dc6 100644 --- a/Details.toc +++ b/Details.toc @@ -16,6 +16,7 @@ locales\Details-deDE.lua locales\Details-frFR.lua locales\Details-koKR.lua locales\Details-ruRU.lua +locales\Details-zhTW.lua boot.lua indent.lua diff --git a/boot.lua b/boot.lua index 13a57b09..4edf11e1 100644 --- a/boot.lua +++ b/boot.lua @@ -107,6 +107,7 @@ do } --> armazena instancias inativas _detalhes.unused_instances = {} + _detalhes.default_skin_to_use = "Minimalistic" function _detalhes:GetArenaInfo (mapid) local t = _detalhes.arena_info [mapid] @@ -293,6 +294,8 @@ do SharedMedia:Register ("statusbar", "Details Serenity", [[Interface\AddOns\Details\images\bar_serenity]]) SharedMedia:Register ("statusbar", "BantoBar", [[Interface\AddOns\Details\images\BantoBar]]) SharedMedia:Register ("statusbar", "Skyline", [[Interface\AddOns\Details\images\bar_skyline]]) + + SharedMedia:Register ("statusbar", "DGround", [[Interface\AddOns\Details\images\bar_background]]) --window bg and bar border SharedMedia:Register ("background", "Details Ground", [[Interface\AddOns\Details\images\background]]) SharedMedia:Register ("border", "Details BarBorder 1", [[Interface\AddOns\Details\images\border_1]]) diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index 070c9207..c82f9e99 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -1261,7 +1261,7 @@ end new_instance:ShowSideBars() new_instance.skin = "no skin" - new_instance:ChangeSkin ("Minimalistic v2") + new_instance:ChangeSkin (_detalhes.default_skin_to_use) --> apply standard skin if have one saved --[[ diff --git a/classes/classe_instancia_include.lua b/classes/classe_instancia_include.lua index a3b6eba7..7271482f 100644 --- a/classes/classe_instancia_include.lua +++ b/classes/classe_instancia_include.lua @@ -90,7 +90,7 @@ end _detalhes.instance_defaults = { --skin - skin = "Minimalistic v2", + skin = _detalhes.default_skin_to_use, --scale window_scale = 1.0, libwindow = {}, diff --git a/framework/dropdown.lua b/framework/dropdown.lua index 2237dfa9..d11fa500 100644 --- a/framework/dropdown.lua +++ b/framework/dropdown.lua @@ -258,14 +258,22 @@ local DropDownMetaFunctions = {} function DropDownMetaFunctions:Enable() self:SetAlpha (1) - return _rawset (self, "lockdown", false) + _rawset (self, "lockdown", false) + + if (self.OnEnable) then + self.OnEnable (self) + end --return self.dropdown:Enable() end function DropDownMetaFunctions:Disable() self:SetAlpha (.4) - return _rawset (self, "lockdown", true) + _rawset (self, "lockdown", true) + + if (self.OnDisable) then + self.OnDisable (self) + end --return self.dropdown:Disable() end diff --git a/framework/panel.lua b/framework/panel.lua index 21b27a58..9161bb44 100644 --- a/framework/panel.lua +++ b/framework/panel.lua @@ -1348,7 +1348,9 @@ local chart_panel_enable_line = function (f, thisbox) for index, box in ipairs (f.BoxLabels) do if (box.type == type and box.showing and box.enabled) then local data = f.GData [index] + f.Graphic:AddDataSeries (data[1], data[2], nil, data[3]) + if (data[4] > max) then max = data[4] end @@ -1502,6 +1504,41 @@ local chart_panel_add_overlay = function (self, overlayData, color, name, icon) self.OverlaysAmount = self.OverlaysAmount + 1 end +local SMA_table = {} +local SMA_max = 0 +local reset_SMA = function() + table.wipe (SMA_table) + SMA_max = 0 +end + +local calc_SMA +calc_SMA = function (a, b, ...) + if (b) then + return calc_SMA (a + b, ...) + else + return a + end +end + +local do_SMA = function (value, max_value) + + if (#SMA_table == 10) then + tremove (SMA_table, 1) + end + + SMA_table [#SMA_table + 1] = value + + local new_value = calc_SMA (unpack (SMA_table)) / #SMA_table + + if (new_value > SMA_max) then + SMA_max = new_value + return new_value, SMA_max + else + return new_value + end + +end + local chart_panel_add_data = function (self, graphicData, color, name, elapsed_time, lineTexture, smoothLevel, firstIndex) local f = self @@ -1522,6 +1559,7 @@ local chart_panel_add_data = function (self, graphicData, color, name, elapsed_t local _i = 3 local graphMaxDps = math.max (self.max_value, max_value) + if (not smoothLevel) then while (_i <= #content-2) do local v = (content[_i-2]+content[_i-1]+content[_i]+content[_i+1]+content[_i+2])/5 --> normalize @@ -1529,6 +1567,25 @@ local chart_panel_add_data = function (self, graphicData, color, name, elapsed_t _i = _i + 1 end + elseif (smoothLevel == "SHORT") then + while (_i <= #content-2) do + local value = (content[_i] + content[_i+1]) / 2 + _data [#_data+1] = {scaleW*(_i-2), value} + _data [#_data+1] = {scaleW*(_i-2), value} + _i = _i + 2 + end + + elseif (smoothLevel == "SMA") then + reset_SMA() + while (_i <= #content-2) do + local value, is_new_max_value = do_SMA (content[_i], max_value) + if (is_new_max_value) then + max_value = is_new_max_value + end + _data [#_data+1] = {scaleW*(_i-2), value} --> x and y coords + _i = _i + 1 + end + elseif (smoothLevel == -1) then while (_i <= #content-2) do local current = content[_i] @@ -1582,7 +1639,7 @@ local chart_panel_add_data = function (self, graphicData, color, name, elapsed_t f:SetScale (max_value) end - tinsert (f.GData, {_data, color or line_default_color, lineTexture, graphicData.max_value, elapsed_time}) + tinsert (f.GData, {_data, color or line_default_color, lineTexture, max_value, elapsed_time}) if (name) then f:AddLabel (color or line_default_color, name, "graphic", #f.GData) end @@ -1662,7 +1719,7 @@ local chart_panel_mousedown = function (self, button) self:StartMoving() self.isMoving = true end - elseif (button == "RightButton") then + elseif (button == "RightButton" and not self.no_right_click_close) then if (not self.isMoving) then self:Hide() end @@ -1679,6 +1736,16 @@ local chart_panel_hide_close_button = function (self) self.CloseButton:Hide() end +local chart_panel_right_click_close = function (self, value) + if (type (value) == "boolean") then + if (value) then + self.no_right_click_close = nil + else + self.no_right_click_close = true + end + end +end + function gump:CreateChartPanel (parent, w, h, name) if (not name) then @@ -1785,6 +1852,7 @@ function gump:CreateChartPanel (parent, w, h, name) f.AddLabel = chart_panel_add_label f.AddOverlay = chart_panel_add_overlay f.HideCloseButton = chart_panel_hide_close_button + f.RightClickClose = chart_panel_right_click_close f:SetScript ("OnSizeChanged", chart_panel_onresize) chart_panel_onresize (f) diff --git a/framework/pictureedit.lua b/framework/pictureedit.lua index c602506b..888f281e 100644 --- a/framework/pictureedit.lua +++ b/framework/pictureedit.lua @@ -284,7 +284,7 @@ local _ end end - local changeColorButton = g:NewButton (buttonsBackground, nil, "$parentOverlayColorButton", nil, 100, 20, changeColor, nil, nil, nil, Loc ["STRING_IMAGEEDIT_COLOR"], 1) + local changeColorButton = g:NewButton (buttonsBackground, nil, "$parentOverlayColorButton", nil, 100, 20, changeColor, nil, nil, nil, Loc ["STRING_COLOR"], 1) changeColorButton:SetPoint ("topright", buttonsBackground, "topright", -8, -95) changeColorButton:InstallCustomTexture() diff --git a/functions/profiles.lua b/functions/profiles.lua index 40a14478..1c1abf3e 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -157,7 +157,7 @@ function _detalhes:ResetProfile (profile_name) instance:AtivarInstancia() end instance.skin = "" - instance:ChangeSkin ("Minimalistic v2") + instance:ChangeSkin (_detalhes.default_skin_to_use) end for index, instance in pairs (_detalhes.unused_instances) do @@ -288,7 +288,7 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy) --> apply default config on this instance (flat skin texture was 'ResetInstanceConfig' running). instance1:ResetInstanceConfig() instance1.skin = "no skin" - instance1:ChangeSkin ("Minimalistic v2") + instance1:ChangeSkin (_detalhes.default_skin_to_use) --> release the snap and lock instance1:LoadLocalInstanceConfig() diff --git a/functions/skins.lua b/functions/skins.lua index f4c8910b..5f9b4444 100644 --- a/functions/skins.lua +++ b/functions/skins.lua @@ -358,7 +358,7 @@ local _ ["stretch_button_side"] = 1, ["row_info"] = { ["textR_outline"] = false, - ["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal_alpha", + ["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal", ["textL_outline"] = false, ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", ["textR_show_data"] = { @@ -546,33 +546,20 @@ local _ right_corner_anchor_bottom = {96, 0}, instance_cprops = { - ["menu_icons_size"] = 0.899999, + ["show_statusbar"] = false, + ["menu_icons_size"] = 0.850000023841858, ["color"] = { - 0.294117647058824, -- [1] - 0.505882352941176, -- [2] - 1, -- [3] - 0.919999957084656, -- [4] + 0.211764705882353, -- [1] + 0.282352941176471, -- [2] + 0.568627450980392, -- [3] + 1, -- [4] }, ["menu_anchor"] = { - 15, -- [1] - 1, -- [2] + 17, -- [1] + 0, -- [2] ["side"] = 2, }, - ["bg_r"] = 0.388235294117647, - ["skin"] = "Serenity", - ["following"] = { - ["enabled"] = false, - ["bar_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - }, - ["text_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - }, - }, + ["bg_r"] = 0, ["color_buttons"] = { 1, -- [1] 1, -- [2] @@ -580,10 +567,6 @@ local _ 1, -- [4] }, ["bars_sort_direction"] = 1, - ["instance_button_anchor"] = { - -27, -- [1] - 1, -- [2] - }, ["attribute_text"] = { ["enabled"] = true, ["shadow"] = false, @@ -597,33 +580,18 @@ local _ ["custom_text"] = "{name}", ["text_face"] = "Accidental Presidency", ["anchor"] = { - -18, -- [1] - 4, -- [2] + -17, -- [1] + 2, -- [2] }, - ["enable_custom_text"] = false, ["text_size"] = 12, + ["enable_custom_text"] = false, }, - ["menu_alpha"] = { - ["enabled"] = false, - ["onenter"] = 1, - ["iconstoo"] = true, - ["ignorebars"] = false, - ["onleave"] = 1, + ["micro_displays_side"] = 2, + ["auto_hide_menu"] = { + ["left"] = false, + ["right"] = false, }, - ["total_bar"] = { - ["enabled"] = false, - ["only_in_group"] = true, - ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", - ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - }, - }, - ["show_sidebars"] = false, - ["strata"] = "LOW", - ["grab_on_top"] = false, - ["bg_alpha"] = 0.0799999982118607, + ["desaturated_menu"] = false, ["plugins_grow_direction"] = 1, ["menu_icons"] = { true, -- [1] @@ -631,32 +599,38 @@ local _ true, -- [3] true, -- [4] true, -- [5] - true, -- [6] + false, -- [6] ["space"] = -4, ["shadow"] = false, }, - ["auto_hide_menu"] = { - ["left"] = false, - ["right"] = false, - }, + ["show_sidebars"] = false, + ["grab_on_top"] = false, ["menu_anchor_down"] = { 15, -- [1] -3, -- [2] }, - ["window_scale"] = 1, + ["backdrop_texture"] = "Details Ground", + ["statusbar_info"] = { + ["alpha"] = 1, + ["overlay"] = { + 0.211764705882353, -- [1] + 0.282352941176471, -- [2] + 0.568627450980392, -- [3] + }, + }, + ["toolbar_side"] = 1, + ["bg_g"] = 0.0509803921568627, ["bars_grow_direction"] = 1, ["row_info"] = { - ["use_spec_icons"] = true, - ["spec_file"] = [[Interface\AddOns\Details\images\spec_icons_normal]], ["textR_outline"] = false, + ["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal", ["textL_outline"] = false, - ["percent_type"] = 1, - ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha", - ["textL_show_number"] = true, - ["texture"] = "Details Serenity", ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", - ["textR_enable_custom_text"] = false, - ["texture_background_class_color"] = false, + ["textR_show_data"] = { + true, -- [1] + true, -- [2] + true, -- [3] + }, ["textL_enable_custom_text"] = false, ["fixed_text_color"] = { 1, -- [1] @@ -668,32 +642,24 @@ local _ ["left"] = 0, ["between"] = 0, }, - ["fixed_texture_background_color"] = { + ["texture_background_class_color"] = false, + ["start_after_icon"] = false, + ["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Accidental Presidency.ttf", + ["textL_custom_text"] = "{data1}. {data3}{data2}", + ["font_size"] = 10, + ["height"] = 15, + ["texture_file"] = "Interface\\AddOns\\Details\\images\\BantoBar", + ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small", + ["textR_bracket"] = "(", + ["textR_enable_custom_text"] = false, + ["fixed_texture_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] - 0.441646844148636, -- [4] }, + ["textL_show_number"] = true, ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", - ["start_after_icon"] = false, - ["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Accidental Presidency.ttf", - ["backdrop"] = { - ["enabled"] = false, - ["size"] = 1, - ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 1, -- [4] - }, - ["texture"] = "Details BarBorder 2", - }, - ["textL_class_colors"] = false, - ["font_size"] = 10, - ["textL_custom_text"] = "{data1}. {data3}{data2}", - ["textR_class_colors"] = false, - ["alpha"] = 1, - ["no_icon"] = false, + ["texture"] = "BantoBar", ["models"] = { ["upper_model"] = "Spells\\AcidBreath_SuperGreen.M2", ["lower_model"] = "World\\EXPANSION02\\DOODADS\\Coldarra\\COLDARRALOCUS.m2", @@ -702,55 +668,60 @@ local _ ["lower_alpha"] = 0.1, ["upper_enabled"] = false, }, - ["texture_background"] = "Details D'ictum", - ["font_face"] = "Accidental Presidency", - ["texture_class_colors"] = true, - ["height"] = 15, - ["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_serenity", - ["texture_background_file"] = "Interface\\AddOns\\Details\\images\\bar4", - ["fixed_texture_color"] = { + ["texture_background"] = "DGround", + ["textL_class_colors"] = false, + ["use_spec_icons"] = true, + ["textR_class_colors"] = false, + ["alpha"] = 1, + ["no_icon"] = false, + ["percent_type"] = 1, + ["fixed_texture_background_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] + 0.440652102231979, -- [4] }, - }, - ["hide_icon"] = true, - ["statusbar_info"] = { - ["alpha"] = 0.919999957084656, - ["overlay"] = { - 0.294117647058824, -- [1] - 0.505882352941176, -- [2] - 1, -- [3] + ["font_face"] = "Accidental Presidency", + ["texture_class_colors"] = true, + ["backdrop"] = { + ["enabled"] = false, + ["texture"] = "Details BarBorder 2", + ["color"] = { + 1, -- [1] + 1, -- [2] + 1, -- [3] + 1, -- [4] + }, + ["size"] = 1, }, + ["fast_ps_update"] = false, + ["textR_separator"] = ",", + ["texture_background_file"] = "Interface\\AddOns\\Details\\images\\bar_background", }, - ["backdrop_texture"] = "Details Ground", - ["auto_current"] = true, - ["toolbar_side"] = 1, - ["bg_g"] = 0.784313725490196, - ["show_statusbar"] = false, + ["bg_alpha"] = 0.123711690306664, ["wallpaper"] = { ["enabled"] = false, - ["texture"] = "Interface\\AddOns\\Details\\images\\skins\\elvui", + ["width"] = 266.000061035156, ["texcoord"] = { - 0.0478515625, -- [1] - 0.2978515625, -- [2] - 0.630859375, -- [3] - 0.755859375, -- [4] + 0.0480000019073486, -- [1] + 0.298000011444092, -- [2] + 0.630999984741211, -- [3] + 0.755999984741211, -- [4] }, ["overlay"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 0.999997794628143, -- [1] + 0.999997794628143, -- [2] + 0.999997794628143, -- [3] + 0.266666084527969, -- [4] }, ["anchor"] = "all", - ["height"] = 128, - ["alpha"] = 0.8, - ["width"] = 256, + ["height"] = 225.999984741211, + ["alpha"] = 0.266666680574417, + ["texture"] = "Interface\\AddOns\\Details\\images\\skins\\elvui", }, ["stretch_button_side"] = 1, - ["micro_displays_side"] = 2, - ["desaturated_menu"] = false, - ["bg_b"] = 1, + ["hide_icon"] = true, + ["bg_b"] = 0.454901960784314, }, skin_options = { diff --git a/functions/spellcache.lua b/functions/spellcache.lua index 826cfc86..600c721a 100644 --- a/functions/spellcache.lua +++ b/functions/spellcache.lua @@ -65,6 +65,8 @@ do [7] = {name = Loc ["STRING_ENVIRONMENTAL_LAVA"], icon = [[Interface\ICONS\Ability_Rhyolith_Volcano]]}, [8] = {name = Loc ["STRING_ENVIRONMENTAL_SLIME"], icon = [[Interface\ICONS\Ability_Creature_Poison_02]]}, + [44461] = {name = GetSpellInfo (44461) .. " (" .. Loc ["STRING_EXPLOSION"] .. ")"}, --> Living Bomb (explosion) + [161576] = {name = GetSpellInfo (161576) .. " (" .. Loc ["STRING_EXPLOSION"] .. ")"}, --> Ko'ragh's Overflowing Energy (explosion) [161612] = {name = GetSpellInfo (161576) .. " (" .. Loc ["STRING_CAUGHT"] .. ")"}, --> Ko'ragh's Overflowing Energy (caught) diff --git a/gumps/janela_options.lua b/gumps/janela_options.lua index facacc32..4fff8296 100644 --- a/gumps/janela_options.lua +++ b/gumps/janela_options.lua @@ -267,7 +267,7 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section) local instances_string = g:NewLabel (window, nil, nil, "instancetext", Loc ["STRING_OPTIONS_EDITINSTANCE"], "GameFontNormal", 12) instances_string:SetPoint ("right", instances, "left", -2, 1) - + -- local group_editing = CreateFrame ("CheckButton", "DetailsOptionsWindowGroupEditing", window.widget, "ChatConfigCheckButtonTemplate") group_editing:ClearAllPoints() @@ -285,6 +285,18 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section) _detalhes.options_group_edit = group_editing:GetChecked() end) + instances.OnDisable = function (self) + instances_string:SetAlpha (0.4) + group_editing:SetAlpha (0.4) + group_editing:Disable() + end + + instances.OnEnable = function (self) + instances_string:SetAlpha (1) + group_editing:SetAlpha (1) + group_editing:Enable() + end + -- local f = CreateFrame ("frame", "DetailsDisable3D", UIParent) @@ -413,18 +425,63 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section) --> left panel buttons + --> index dos menus + local menus_settings = { + 1, --display + 2, --combat + 20, --tooltip + 19, --datafeed + 13, --profiles + 3, --skin + 6, --window settings + 4, --row general + 5, --row texts + 8, --row advanced + 14, -- title bar text + 7, --title bar buttons + 17, --auto hide settings + 9, --wallpaper + 18, --misc + 11, --raid tools + 10, --performance + 12, --plugins + 15, --spell custom + 16 --chart data + } + + local menus = { --labels nos menus - {Loc ["STRING_OPTIONSMENU_DISPLAY"], Loc ["STRING_OPTIONSMENU_COMBAT"], Loc ["STRING_OPTIONSMENU_TOOLTIP"], Loc ["STRING_OPTIONSMENU_DATAFEED"], Loc ["STRING_OPTIONSMENU_PROFILES"]}, + { + Loc ["STRING_OPTIONSMENU_DISPLAY"], + Loc ["STRING_OPTIONSMENU_COMBAT"], + Loc ["STRING_OPTIONSMENU_TOOLTIP"], + Loc ["STRING_OPTIONSMENU_DATAFEED"], + Loc ["STRING_OPTIONSMENU_PROFILES"] + }, - {Loc ["STRING_OPTIONSMENU_SKIN"], Loc ["STRING_OPTIONSMENU_ROWSETTINGS"], Loc ["STRING_OPTIONSMENU_ROWTEXTS"], Loc ["STRING_OPTIONSMENU_ROWMODELS"], Loc ["STRING_OPTIONSMENU_SHOWHIDE"], - Loc ["STRING_OPTIONSMENU_WINDOW"], Loc ["STRING_OPTIONSMENU_TITLETEXT"], Loc ["STRING_OPTIONSMENU_LEFTMENU"], - Loc ["STRING_OPTIONSMENU_WALLPAPER"], Loc ["STRING_OPTIONSMENU_MISC"]}, + { + Loc ["STRING_OPTIONSMENU_SKIN"], + Loc ["STRING_OPTIONSMENU_WINDOW"], + Loc ["STRING_OPTIONSMENU_ROWSETTINGS"], + Loc ["STRING_OPTIONSMENU_ROWTEXTS"], + Loc ["STRING_OPTIONSMENU_ROWMODELS"], + Loc ["STRING_OPTIONSMENU_TITLETEXT"], + Loc ["STRING_OPTIONSMENU_LEFTMENU"], + Loc ["STRING_OPTIONSMENU_SHOWHIDE"], + Loc ["STRING_OPTIONSMENU_WALLPAPER"], + Loc ["STRING_OPTIONSMENU_MISC"] + }, - {Loc ["STRING_OPTIONSMENU_RAIDTOOLS"], Loc ["STRING_OPTIONSMENU_PERFORMANCE"], Loc ["STRING_OPTIONSMENU_PLUGINS"], Loc ["STRING_OPTIONSMENU_SPELLS"], - Loc ["STRING_OPTIONSMENU_DATACHART"]} + { + Loc ["STRING_OPTIONSMENU_RAIDTOOLS"], + Loc ["STRING_OPTIONSMENU_PERFORMANCE"], + Loc ["STRING_OPTIONSMENU_PLUGINS"], + Loc ["STRING_OPTIONSMENU_SPELLS"], + Loc ["STRING_OPTIONSMENU_DATACHART"] + } } - local menus2 = { +local menus2 = { Loc ["STRING_OPTIONSMENU_DISPLAY"], --1 Loc ["STRING_OPTIONSMENU_COMBAT"], --2 Loc ["STRING_OPTIONSMENU_SKIN"], --3 @@ -446,9 +503,32 @@ local menus = { --labels nos menus Loc ["STRING_OPTIONSMENU_DATAFEED"], --19 Loc ["STRING_OPTIONSMENU_TOOLTIP"], --20 } + + local is_window_settings = { + [1] = true, + [3] = true, + [4] = true, + [5] = true, + [6] = true, + [7] = true, + [8] = true, + [9] = true, + [14] = true, + [17] = true, + [18] = true, + } + window.is_window_settings = is_window_settings local select_options = function (options_type, true_index) + window.current_selected = options_type + + if (is_window_settings [options_type]) then + instances:Enable() + else + instances:Disable() + end + window:hide_all_options() window:un_hide_options (options_type) @@ -528,14 +608,8 @@ local menus = { --labels nos menus local g_advanced_texture = g:NewImage (window, [[Interface\AddOns\Details\images\options_window]], 160, 33, nil, nil, "AdvancedSettingsTexture", "$parentAdvancedSettingsTexture") g_advanced_texture:SetTexCoord (0, 0.15625, 0.8173828125, 0.849609375) g_advanced_texture:SetPoint ("topleft", g_advanced, "topleft", 0, 0) - - -- advanced - --> index dos menus - local menus_settings = {1, 2, 20, 19, 13, 3, 4, 5, 8, 17, 6, 14, 7, 9, 18, 11, 10, 12, 15, 16} - - --> create menus local anchors = {g_settings, g_appearance, g_advanced} --g_performance local y = -90 @@ -1136,7 +1210,7 @@ function window:CreateFrame20() window:CreateLineBackground2 (frame20, "TooltipFontDropdown", "TooltipFontLabel", Loc ["STRING_OPTIONS_TOOLTIPS_FONTFACE_DESC"]) -- text shadow - g:NewLabel (frame20, _, "$parentTooltipShadowLabel", "TooltipShadowLabel", Loc ["STRING_OPTIONS_TOOLTIPS_FONTSHADOW"], "GameFontHighlightLeft") + g:NewLabel (frame20, _, "$parentTooltipShadowLabel", "TooltipShadowLabel", Loc ["STRING_OPTIONS_TEXT_LOUTILINE"], "GameFontHighlightLeft") g:NewSwitch (frame20, _, "$parentTooltipShadowSwitch", "TooltipShadowSwitch", 60, 20, nil, nil, _detalhes.tooltip.fontshadow) frame20.TooltipShadowSwitch:SetPoint ("left", frame20.TooltipShadowLabel, "right", 2) frame20.TooltipShadowSwitch.OnSwitch = function (self, _, value) @@ -1267,7 +1341,7 @@ function window:CreateFrame20() return texTable2 end - g:NewLabel (frame20, _, "$parentBackdropBorderTextureLabel", "BackdropBorderTextureLabel", Loc ["STRING_OPTIONS_TOOLTIPS_BORDER_TEXTURE"], "GameFontHighlightLeft") + g:NewLabel (frame20, _, "$parentBackdropBorderTextureLabel", "BackdropBorderTextureLabel", Loc ["STRING_TEXTURE"], "GameFontHighlightLeft") local d = g:NewDropDown (frame20, _, "$parentBackdropBorderTextureDropdown", "BackdropBorderTextureDropdown", DROPDOWN_WIDTH, 20, buildTextureBackdropMenu, _detalhes.tooltip.border_texture) d.onenter_backdrop = dropdown_backdrop_onenter d.onleave_backdrop = dropdown_backdrop_onleave @@ -1278,7 +1352,7 @@ function window:CreateFrame20() window:CreateLineBackground2 (frame20, "BackdropBorderTextureDropdown", "BackdropBorderTextureLabel", Loc ["STRING_OPTIONS_TOOLTIPS_BORDER_TEXTURE_DESC"]) --border size - g:NewLabel (frame20, _, "$parentBackdropSizeLabel", "BackdropSizeLabel", Loc ["STRING_OPTIONS_TOOLTIPS_BORDER_SIZE"], "GameFontHighlightLeft") + g:NewLabel (frame20, _, "$parentBackdropSizeLabel", "BackdropSizeLabel", Loc ["STRING_OPTIONS_SIZE"], "GameFontHighlightLeft") local s = g:NewSlider (frame20, _, "$parentBackdropSizeHeight", "BackdropSizeSlider", SLIDER_WIDTH, 20, 1, 32, 1, _detalhes.tooltip.border_size) s:SetBackdrop (slider_backdrop) s:SetBackdropColor (unpack (slider_backdrop_color)) @@ -1298,7 +1372,7 @@ function window:CreateFrame20() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end g:NewColorPickButton (frame20, "$parentBackdropColorPick", "BackdropColorPick", backdropcolor_callback) - g:NewLabel (frame20, _, "$parentBackdropColorLabel", "BackdropColorLabel", Loc ["STRING_OPTIONS_TOOLTIPS_BORDER_COLOR"], "GameFontHighlightLeft") + g:NewLabel (frame20, _, "$parentBackdropColorLabel", "BackdropColorLabel", Loc ["STRING_COLOR"], "GameFontHighlightLeft") frame20.BackdropColorPick:SetPoint ("left", frame20.BackdropColorLabel, "right", 2, 0) local background = window:CreateLineBackground2 (frame20, "BackdropColorPick", "BackdropColorLabel", Loc ["STRING_OPTIONS_TOOLTIPS_BORDER_COLOR_DESC"]) @@ -1489,9 +1563,9 @@ function window:CreateFrame20() {"TooltipsAnchorPointLabel", 1, true}, {"TooltipAnchorLabel", 2}, {"UnlockAnchorButtonLabel", 3, true}, - {"TooltipAnchorSideLabel", 4}, + {"TooltipAnchorSideLabel", 4, true}, {"TooltipRelativeSideLabel", 5}, - {"TooltipOffsetXLabel", 6}, + {"TooltipOffsetXLabel", 6, true}, {"TooltipOffsetYLabel", 7}, } @@ -2235,9 +2309,9 @@ function window:CreateFrame18() local right_side = { {"instancesMiscLabel", 1, true}, {"deleteInstanceLabel", 2}, - {"MenuTextSizeLabel", 3}, + {"MenuTextSizeLabel", 3, true}, {"fontLabel", 4}, - {"DisableGroupsLabel", 5}, + {"DisableGroupsLabel", 5, true}, {"DisableResetLabel", 6}, {"scrollLabel", 7}, @@ -2300,7 +2374,7 @@ function window:CreateFrame17() window:CreateLineBackground2 (frame17, "combatAlphaDropdown", "combatAlphaLabel", Loc ["STRING_OPTIONS_COMBAT_ALPHA_DESC"]) - g:NewLabel (frame17, _, "$parentHideOnCombatAlphaLabel", "hideOnCombatAlphaLabel", Loc ["STRING_OPTIONS_HIDECOMBATALPHA"], "GameFontHighlightLeft") + g:NewLabel (frame17, _, "$parentHideOnCombatAlphaLabel", "hideOnCombatAlphaLabel", Loc ["STRING_ALPHA"], "GameFontHighlightLeft") local s = g:NewSlider (frame17, _, "$parentHideOnCombatAlphaSlider", "hideOnCombatAlphaSlider", SLIDER_WIDTH, 20, 0, 100, 1, _G.DetailsOptionsWindow.instance.hide_in_combat_alpha) -- min, max, step, defaultv s:SetBackdrop (slider_backdrop) @@ -2347,7 +2421,7 @@ function window:CreateFrame17() frame17.menuOnEnterSlider.useDecimals = true frame17.menuOnLeaveSlider.useDecimals = true - g:NewLabel (frame17, _, "$parentMenuOnEnterLeaveAlphaLabel", "alphaSwitchLabel", Loc ["STRING_OPTIONS_MENU_ALPHAENABLED"], "GameFontHighlightLeft") + g:NewLabel (frame17, _, "$parentMenuOnEnterLeaveAlphaLabel", "alphaSwitchLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewLabel (frame17, _, "$parentMenuOnEnterAlphaLabel", "menuOnEnterLabel", Loc ["STRING_OPTIONS_MENU_ALPHAENTER"], "GameFontHighlightLeft") g:NewLabel (frame17, _, "$parentMenuOnLeaveAlphaLabel", "menuOnLeaveLabel", Loc ["STRING_OPTIONS_MENU_ALPHALEAVE"], "GameFontHighlightLeft") @@ -2443,7 +2517,7 @@ function window:CreateFrame17() {"menuAlphaAnchorLabel", 4, true}, {"alphaSwitchLabel", 5}, {"alphaIconsTooLabel", 6}, - {"menuOnEnterLabel", 7}, + {"menuOnEnterLabel", 7, true}, {"menuOnLeaveLabel", 8}, } @@ -2619,7 +2693,7 @@ function window:CreateFrame16() {name = Loc ["STRING_OPTIONS_CHART_ICON"], width = 50, type = "icon", func = edit_icon}, {name = Loc ["STRING_OPTIONS_CHART_AUTHOR"], width = 125, type = "text", func = edit_author}, {name = Loc ["STRING_OPTIONS_CHART_VERSION"], width = 65, type = "entry", func = edit_version}, - {name = Loc ["STRING_OPTIONS_CHART_ENABLED"], width = 50, type = "button", func = edit_enabled, icon = [[Interface\COMMON\Indicator-Green]], notext = true, iconalign = "center"}, + {name = Loc ["STRING_ENABLED"], width = 50, type = "button", func = edit_enabled, icon = [[Interface\COMMON\Indicator-Green]], notext = true, iconalign = "center"}, {name = Loc ["STRING_OPTIONS_CHART_EXPORT"], width = 50, type = "button", func = export_function, icon = [[Interface\Buttons\UI-GuildButton-MOTD-Up]], notext = true, iconalign = "center"}, {name = Loc ["STRING_OPTIONS_CHART_REMOVE"], width = 70, type = "button", func = remove_capture, icon = [[Interface\Glues\LOGIN\Glues-CheckBox-Check]], notext = true, iconalign = "center"}, } @@ -3177,7 +3251,7 @@ function window:CreateFrame14() --attribute text --enabled - g:NewLabel (frame14, _, "$parentAttributeEnabledLabel", "attributeEnabledLabel", Loc ["STRING_OPTIONS_MENU_ATTRIBUTE_ENABLED"], "GameFontHighlightLeft") + g:NewLabel (frame14, _, "$parentAttributeEnabledLabel", "attributeEnabledLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame14, _, "$parentAttributeEnabledSwitch", "attributeEnabledSwitch", 60, 20, nil, nil, instance.attribute_text.enabled) frame14.attributeEnabledSwitch:SetPoint ("left", frame14.attributeEnabledLabel, "right", 2) frame14.attributeEnabledSwitch.OnSwitch = function (self, instance, value) @@ -3325,7 +3399,7 @@ function window:CreateFrame14() window:CreateLineBackground2 (frame14, "attributeTextColorPick", "attributeTextColorLabel", Loc ["STRING_OPTIONS_MENU_ATTRIBUTE_TEXTCOLOR_DESC"]) --shadow - g:NewLabel (frame14, _, "$parentAttributeShadowLabel", "attributeShadowLabel", Loc ["STRING_OPTIONS_MENU_ATTRIBUTE_SHADOW"], "GameFontHighlightLeft") + g:NewLabel (frame14, _, "$parentAttributeShadowLabel", "attributeShadowLabel", Loc ["STRING_OPTIONS_TEXT_LOUTILINE"], "GameFontHighlightLeft") g:NewSwitch (frame14, _, "$parentAttributeShadowSwitch", "attributeShadowSwitch", 60, 20, nil, nil, instance.attribute_text.shadow) frame14.attributeShadowSwitch:SetPoint ("left", frame14.attributeShadowLabel, "right", 2) frame14.attributeShadowSwitch.OnSwitch = function (self, instance, value) @@ -3731,13 +3805,36 @@ function window:CreateFrame1() --set color local windowcolor_callback = function (button, r, g, b, a) - if (_G.DetailsOptionsWindow.instance.menu_alpha.enabled and a ~= _G.DetailsOptionsWindow.instance.color[4]) then + + local instance = _G.DetailsOptionsWindow.instance + + if (instance.menu_alpha.enabled and a ~= instance.color[4]) then _detalhes:Msg (Loc ["STRING_OPTIONS_MENU_ALPHAWARNING"]) - _G.DetailsOptionsWindow6StatusbarColorPick.MyObject:SetColor (r, g, b, _G.DetailsOptionsWindow.instance.menu_alpha.onleave) - return _G.DetailsOptionsWindow.instance:InstanceColor (r, g, b, _G.DetailsOptionsWindow.instance.menu_alpha.onleave, nil, true) + _G.DetailsOptionsWindow6StatusbarColorPick.MyObject:SetColor (r, g, b, instance.menu_alpha.onleave) + instance:InstanceColor (r, g, b, instance.menu_alpha.onleave, nil, true) + + if (_detalhes.options_group_edit and not DetailsOptionsWindow.loading_settings) then + for _, this_instance in ipairs (instance:GetInstanceGroup()) do + if (this_instance ~= instance) then + this_instance:InstanceColor (r, g, b, instance.menu_alpha.onleave, nil, true) + end + end + end + + return end + _G.DetailsOptionsWindow6StatusbarColorPick.MyObject:SetColor (r, g, b, a) - _G.DetailsOptionsWindow.instance:InstanceColor (r, g, b, a, nil, true) + instance:InstanceColor (r, g, b, a, nil, true) + + if (_detalhes.options_group_edit and not DetailsOptionsWindow.loading_settings) then + for _, this_instance in ipairs (instance:GetInstanceGroup()) do + if (this_instance ~= instance) then + this_instance:InstanceColor (r, g, b, a, nil, true) + end + end + end + end local change_color = function() local r, g, b, a = unpack (_G.DetailsOptionsWindow.instance.color) @@ -3822,28 +3919,49 @@ function window:CreateFrame1() frame1.realmNameLabel:SetPoint (avatar_x_anchor, -235) - frame1.ToolsLabel:SetPoint (avatar_x_anchor, -265) - frame1.EraseDataLabel:SetPoint (avatar_x_anchor, -290) - frame1.BookmarkButton:SetPoint (avatar_x_anchor, -315) - frame1.ClassColorsButton:SetPoint (avatar_x_anchor, -340) + --frame1.ToolsLabel:SetPoint (avatar_x_anchor, -265) + --frame1.EraseDataLabel:SetPoint (avatar_x_anchor, -290) + --frame1.BookmarkButton:SetPoint (avatar_x_anchor, -315) + --frame1.ClassColorsButton:SetPoint (avatar_x_anchor, -340) + + local x = avatar_x_anchor + + local right_side = { + {"WindowControlsLabel", 1, true}, + {"LockButton", 2}, + {"CloseButton", 3}, + {"BreakSnapButton", 4}, + {"SetWindowColorButton", 5}, + {"CreateWindowButton", 6, true}, + } + + window:arrange_menu (frame1, right_side, x, -265) local left_side = { {"GeneralAnchorLabel", 1, true}, {"animateLabel", 2}, {"updatespeedLabel", 3}, + {"WheelSpeedLabel", 4}, - {"SegmentsLockedLabel", 5}, + {"SegmentsLockedLabel", 5, true}, {"segmentsLabel", 6}, - {"maxInstancesLabel", 7}, + {"maxInstancesLabel", 7, true}, {"dpsAbbreviateLabel", 8}, - {"WindowControlsLabel", 9, true}, - {"LockButton", 10}, - {"BreakSnapButton", 12}, - {"CloseButton", 11}, - {"CreateWindowButton", 14, true}, - {"SetWindowColorButton", 13}, + + {frame1.ToolsLabel, 9, true}, + {frame1.EraseDataLabel, 10}, + {frame1.BookmarkButton, 11}, + {frame1.ClassColorsButton, 12}, + + --{"WindowControlsLabel", 9, true}, + --{"LockButton", 10}, + --{"CloseButton", 11}, + --{"BreakSnapButton", 12}, + --{"SetWindowColorButton", 13}, + --{"CreateWindowButton", 14, true}, + } window:arrange_menu (frame1, left_side, window.left_start_at, window.top_start_at) @@ -4171,15 +4289,15 @@ function window:CreateFrame2() {"GeneralAnchorLabel", 1, true}, {"fragsPvpLabel", 2}, {"EraseChartDataLabel", 3}, - {"timetypeLabel", 4}, + {"timetypeLabel", 4, true}, {"OverallDataLabel", 5, true}, {"OverallDataRaidBossLabel", 6}, {"OverallDataRaidCleaupLabel", 7}, {"OverallDataDungeonBossLabel", 8}, {"OverallDataDungeonCleaupLabel", 9}, - {"OverallDataAllLabel", 10}, - {"OverallNewBossLabel", 11}, + {"OverallDataAllLabel", 10, true}, + {"OverallNewBossLabel", 11, true}, {"OverallNewChallengeLabel", 12}, } @@ -4575,10 +4693,19 @@ function window:CreateFrame3() local onSelectSkin = function (_, instance, skin_name) instance:ChangeSkin (skin_name) + if (instance._ElvUIEmbed) then + local AS, ASL = unpack (AddOnSkins) + AS:Embed_Details() + end + if (_detalhes.options_group_edit and not DetailsOptionsWindow.loading_settings) then for _, this_instance in ipairs (instance:GetInstanceGroup()) do if (this_instance ~= instance) then this_instance:ChangeSkin (skin_name) + if (this_instance._ElvUIEmbed) then + local AS, ASL = unpack (AddOnSkins) + AS:Embed_Details() + end end end end @@ -4929,12 +5056,14 @@ function window:CreateFrame3() {"skinLabel", 2}, {"SkinPresetAnchorLabel", 3, true}, {"saveSkinLabel", 4}, - {"loadCustomSkinLabel", 5}, + + {"loadCustomSkinLabel", 5, true}, {"removeCustomSkinLabel", 6}, + {"ExportCustomSkinLabel", 7}, + + {"ImportButton", 9, true}, {"makeDefault", 10}, {"applyToAll", 11}, - {"ExportCustomSkinLabel", 7}, - {"ImportButton", 9, true}, --{"", 10}, } @@ -5097,7 +5226,7 @@ function window:CreateFrame4() return texTable end - g:NewLabel (frame4, _, "$parentTextureLabel", "textureLabel", Loc ["STRING_OPTIONS_BAR_TEXTURE"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentTextureLabel", "textureLabel", Loc ["STRING_TEXTURE"], "GameFontHighlightLeft") local d = g:NewDropDown (frame4, _, "$parentTextureDropdown", "textureDropdown", DROPDOWN_WIDTH, 20, buildTextureMenu, nil) d.onenter_backdrop = dropdown_backdrop_onenter d.onleave_backdrop = dropdown_backdrop_onleave @@ -5125,14 +5254,14 @@ function window:CreateFrame4() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end - g:NewLabel (frame4, _, "$parentRowColorPickLabel", "rowPickColorLabel", Loc ["STRING_OPTIONS_TEXT_ROWCOLOR2"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentRowColorPickLabel", "rowPickColorLabel", Loc ["STRING_COLOR"], "GameFontHighlightLeft") g:NewColorPickButton (frame4, "$parentRowColorPick", "rowColorPick", rowcolor_callback) frame4.rowColorPick:SetPoint ("left", frame4.rowPickColorLabel, "right", 2, 0) local background = window:CreateLineBackground2 (frame4, "rowColorPick", "rowPickColorLabel", Loc ["STRING_OPTIONS_BAR_COLOR_DESC"]) background:SetSize (50, 16) -- bar texture by class color - g:NewLabel (frame4, _, "$parentUseClassColorsLabel", "classColorsLabel", Loc ["STRING_OPTIONS_TEXT_ROWCOLOR_NOTCLASS"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentUseClassColorsLabel", "classColorsLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS"], "GameFontHighlightLeft") g:NewSwitch (frame4, _, "$parentClassColorSlider", "classColorSlider", 60, 20, _, _, instance.row_info.texture_class_colors) frame4.classColorSlider:SetFrameLevel (frame4.rowColorPick:GetFrameLevel()+2) frame4.classColorSlider:SetPoint ("left", frame4.classColorsLabel, "right", 2, -1) @@ -5149,10 +5278,9 @@ function window:CreateFrame4() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end - frame4.classColorsLabel:SetPoint ("left", frame4.rowColorPick, "right", 3, 0) + --frame4.classColorsLabel:SetPoint ("left", frame4.rowColorPick, "right", 3, 0) window:CreateLineBackground2 (frame4, "classColorSlider", "classColorsLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS_DESC"]) - - + --> Bottom Texture --anchor @@ -5183,7 +5311,7 @@ function window:CreateFrame4() return texTable2 end - g:NewLabel (frame4, _, "$parentRowBackgroundTextureLabel", "rowBackgroundLabel", Loc ["STRING_OPTIONS_BAR_TEXTURE"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentRowBackgroundTextureLabel", "rowBackgroundLabel", Loc ["STRING_TEXTURE"], "GameFontHighlightLeft") local d = g:NewDropDown (frame4, _, "$parentRowBackgroundTextureDropdown", "rowBackgroundDropdown", DROPDOWN_WIDTH, 20, buildTextureMenu2, nil) d.onenter_backdrop = dropdown_backdrop_onenter d.onleave_backdrop = dropdown_backdrop_onleave @@ -5208,15 +5336,15 @@ function window:CreateFrame4() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end g:NewColorPickButton (frame4, "$parentRowBackgroundColorPick", "rowBackgroundColorPick", rowcolorbackground_callback) - g:NewLabel (frame4, _, "$parentRowBackgroundColorPickLabel", "rowBackgroundPickLabel", Loc ["STRING_OPTIONS_TEXT_ROWCOLOR"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentRowBackgroundColorPickLabel", "rowBackgroundPickLabel", Loc ["STRING_COLOR"], "GameFontHighlightLeft") frame4.rowBackgroundColorPick:SetPoint ("left", frame4.rowBackgroundPickLabel, "right", 2, 0) - local background = window:CreateLineBackground2 (frame4, "rowBackgroundColorPick", "rowBackgroundPickLabel", Loc ["STRING_OPTIONS_BAR_BCOLOR_DESC"]) + local background = window:CreateLineBackground2 (frame4, "rowBackgroundColorPick", "rowBackgroundPickLabel", Loc ["STRING_OPTIONS_BAR_COLOR_DESC"]) background:SetSize (50, 16) --bar texture by class color g:NewSwitch (frame4, _, "$parentBackgroundClassColorSlider", "rowBackgroundColorByClassSlider", 60, 20, _, _, instance.row_info.texture_background_class_color) - g:NewLabel (frame4, _, "$parentRowBackgroundClassColorLabel", "rowBackgroundColorByClassLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS2"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentRowBackgroundClassColorLabel", "rowBackgroundColorByClassLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS"], "GameFontHighlightLeft") frame4.rowBackgroundColorByClassSlider:SetFrameLevel (frame4.rowBackgroundColorPick:GetFrameLevel()+2) frame4.rowBackgroundColorByClassSlider:SetPoint ("left", frame4.rowBackgroundColorByClassLabel, "right", 2) frame4.rowBackgroundColorByClassSlider.OnSwitch = function (self, instance, value) @@ -5233,9 +5361,9 @@ function window:CreateFrame4() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end - window:CreateLineBackground2 (frame4, "rowBackgroundColorByClassSlider", "rowBackgroundColorByClassLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS2_DESC"]) + window:CreateLineBackground2 (frame4, "rowBackgroundColorByClassSlider", "rowBackgroundColorByClassLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS_DESC"]) - frame4.rowBackgroundColorByClassLabel:SetPoint ("left", frame4.rowBackgroundColorPick, "right", 3) + --frame4.rowBackgroundColorByClassLabel:SetPoint ("left", frame4.rowBackgroundColorPick, "right", 3) --> Icons @@ -5423,7 +5551,7 @@ function window:CreateFrame4() g:NewLabel (frame4, _, "$parentBackdropAnchor", "BackdropAnchorLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_ANCHOR"], "GameFontNormal") --enabled - g:NewLabel (frame4, _, "$parentBackdropEnabledLabel", "BackdropEnabledLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_ENABLED"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentBackdropEnabledLabel", "BackdropEnabledLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame4, _, "$parentBackdropEnabledSlider", "BackdropEnabledSlider", 60, 20, _, _, instance.row_info.backdrop.enabled) frame4.BackdropEnabledSlider:SetPoint ("left", frame4.BackdropEnabledLabel, "right", 2, -1) frame4.BackdropEnabledSlider.OnSwitch = function (self, instance, value) @@ -5467,7 +5595,7 @@ function window:CreateFrame4() return texTable2 end - g:NewLabel (frame4, _, "$parentBackdropBorderTextureLabel", "BackdropBorderTextureLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_TEXTURE"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentBackdropBorderTextureLabel", "BackdropBorderTextureLabel", Loc ["STRING_TEXTURE"], "GameFontHighlightLeft") local d = g:NewDropDown (frame4, _, "$parentBackdropBorderTextureDropdown", "BackdropBorderTextureDropdown", DROPDOWN_WIDTH, 20, buildTextureBackdropMenu, nil) d.onenter_backdrop = dropdown_backdrop_onenter d.onleave_backdrop = dropdown_backdrop_onleave @@ -5478,7 +5606,7 @@ function window:CreateFrame4() window:CreateLineBackground2 (frame4, "BackdropBorderTextureDropdown", "BackdropBorderTextureLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_TEXTURE_DESC"]) --size - g:NewLabel (frame4, _, "$parentBackdropSizeLabel", "BackdropSizeLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_SIZE"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentBackdropSizeLabel", "BackdropSizeLabel", Loc ["STRING_OPTIONS_SIZE"], "GameFontHighlightLeft") local s = g:NewSlider (frame4, _, "$parentBackdropSizeHeight", "BackdropSizeSlider", SLIDER_WIDTH, 20, 1, 20, 1, tonumber (instance.row_info.height)) s:SetBackdrop (slider_backdrop) s:SetBackdropColor (unpack (slider_backdrop_color)) @@ -5516,7 +5644,7 @@ function window:CreateFrame4() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end g:NewColorPickButton (frame4, "$parentBackdropColorPick", "BackdropColorPick", backdropcolor_callback) - g:NewLabel (frame4, _, "$parentBackdropColorLabel", "BackdropColorLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_COLOR"], "GameFontHighlightLeft") + g:NewLabel (frame4, _, "$parentBackdropColorLabel", "BackdropColorLabel", Loc ["STRING_COLOR"], "GameFontHighlightLeft") frame4.BackdropColorPick:SetPoint ("left", frame4.BackdropColorLabel, "right", 2, 0) local background = window:CreateLineBackground2 (frame4, "BackdropColorPick", "BackdropColorLabel", Loc ["STRING_OPTIONS_BAR_BACKDROP_COLOR_DESC"]) @@ -5528,33 +5656,38 @@ function window:CreateFrame4() titulo_bars_desc:SetPoint (x, -50) local left_side = { + --textures + {frame4.rowUpperTextureLabel, 1, true}, + {frame4.textureLabel, 2}, + {frame4.classColorsLabel, 3}, + {frame4.rowPickColorLabel, 4}, + + {frame4.rowLowerTextureLabel, 5, true}, + {frame4.rowBackgroundLabel, 6}, + {frame4.rowBackgroundColorByClassLabel, 7}, + {frame4.rowBackgroundPickLabel, 8}, + --icon + {frame4.rowIconsLabel, 9, true}, + {frame4.iconFileLabel, 10}, + {frame4.iconFileLabel2, 11}, + {frame4.barStartLabel, 12}, + + + } + + local right_side = { --basic {frame4.RowGeneralAnchorLabel, 1, true}, {frame4.barGrowDirectionLabel, 2}, {frame4.barSortDirectionLabel, 3}, - {frame4.rowHeightLabel, 4}, + {frame4.rowHeightLabel, 4, true}, {frame4.BarSpacementLabel, 5}, - --icon - {frame4.rowIconsLabel, 6, true}, - {frame4.iconFileLabel, 7}, - {frame4.iconFileLabel2, 8}, - {frame4.barStartLabel, 9}, --backdrop - {frame4.BackdropAnchorLabel, 10, true}, - {frame4.BackdropColorLabel, 11}, - {frame4.BackdropEnabledLabel, 12}, - {frame4.BackdropSizeLabel, 13}, - {frame4.BackdropBorderTextureLabel, 14}, - } - - local right_side = { - {frame4.rowUpperTextureLabel, 1, true}, - {frame4.textureLabel, 2}, - {frame4.rowPickColorLabel, 3}, - {frame4.rowLowerTextureLabel, 4, true}, - {frame4.rowBackgroundLabel, 5}, - {frame4.rowBackgroundPickLabel, 6}, - + {frame4.BackdropAnchorLabel, 6, true}, + {frame4.BackdropColorLabel, 7}, + {frame4.BackdropEnabledLabel, 8}, + {frame4.BackdropSizeLabel, 9}, + {frame4.BackdropBorderTextureLabel, 10}, } window:arrange_menu (frame4, left_side, x, -90) @@ -5661,7 +5794,7 @@ function window:CreateFrame5() --> left text and right class color g:NewSwitch (frame5, _, "$parentUseClassColorsLeftTextSlider", "classColorsLeftTextSlider", 60, 20, _, _, instance.row_info.textL_class_colors) g:NewSwitch (frame5, _, "$parentUseClassColorsRightTextSlider", "classColorsRightTextSlider", 60, 20, _, _, instance.row_info.textR_class_colors) - g:NewLabel (frame5, _, "$parentUseClassColorsLeftText", "classColorsLeftTextLabel", Loc ["STRING_OPTIONS_TEXT_LCLASSCOLOR"], "GameFontHighlightLeft") + g:NewLabel (frame5, _, "$parentUseClassColorsLeftText", "classColorsLeftTextLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS"], "GameFontHighlightLeft") frame5.classColorsLeftTextSlider:SetPoint ("left", frame5.classColorsLeftTextLabel, "right", 2) frame5.classColorsLeftTextSlider.OnSwitch = function (self, instance, value) @@ -5681,7 +5814,7 @@ function window:CreateFrame5() window:CreateLineBackground2 (frame5, "classColorsLeftTextSlider", "classColorsLeftTextLabel", Loc ["STRING_OPTIONS_TEXT_LCLASSCOLOR_DESC"]) --> right text by class color - g:NewLabel (frame5, _, "$parentUseClassColorsRightText", "classColorsRightTextLabel", Loc ["STRING_OPTIONS_TEXT_RCLASSCOLOR"], "GameFontHighlightLeft") + g:NewLabel (frame5, _, "$parentUseClassColorsRightText", "classColorsRightTextLabel", Loc ["STRING_OPTIONS_BAR_COLORBYCLASS"], "GameFontHighlightLeft") frame5.classColorsRightTextSlider:SetPoint ("left", frame5.classColorsRightTextLabel, "right", 2) frame5.classColorsRightTextSlider.OnSwitch = function (self, instance, value) @@ -5698,7 +5831,7 @@ function window:CreateFrame5() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end - window:CreateLineBackground2 (frame5, "classColorsRightTextSlider", "classColorsRightTextLabel", Loc ["STRING_OPTIONS_TEXT_RCLASSCOLOR_DESC"]) + window:CreateLineBackground2 (frame5, "classColorsRightTextSlider", "classColorsRightTextLabel", Loc ["STRING_OPTIONS_TEXT_LCLASSCOLOR_DESC"]) --> left outline g:NewSwitch (frame5, _, "$parentTextLeftOutlineSlider", "textLeftOutlineSlider", 60, 20, _, _, instance.row_info.textL_outline) @@ -5744,7 +5877,7 @@ function window:CreateFrame5() --> right outline g:NewSwitch (frame5, _, "$parentTextRightOutlineSlider", "textRightOutlineSlider", 60, 20, _, _, instance.row_info.textR_outline) - g:NewLabel (frame5, _, "$parentTextRightOutlineLabel", "textRightOutlineLabel", Loc ["STRING_OPTIONS_TEXT_ROUTILINE"], "GameFontHighlightLeft") + g:NewLabel (frame5, _, "$parentTextRightOutlineLabel", "textRightOutlineLabel", Loc ["STRING_OPTIONS_TEXT_LOUTILINE"], "GameFontHighlightLeft") frame5.textRightOutlineSlider:SetPoint ("left", frame5.textRightOutlineLabel, "right", 2) frame5.textRightOutlineSlider.OnSwitch = function (self, instance, value) @@ -6801,16 +6934,15 @@ function window:CreateFrame6() {"AdjustmentsAnchorLabel", 1, true}, {"windowPickColorLabel", 2}, {"windowBackgroundPickColorLabel", 3}, - {"sideBarsLabel", 4, true}, - {"backdropLabel", 5}, + {"WindowScaleLabel", 4, true}, + {"sideBarsLabel", 5, true}, {"strataLabel", 6}, - {"WindowScaleLabel", 7, true}, + {"backdropLabel", 7}, {"AdjustmentsAnchor2Label", 8, true}, {"instanceToolbarSideLabel", 9}, - {"instanceMicroDisplaysSideLabel", 10}, - {"stretchAnchorLabel", 11}, - {"stretchAlwaysOnTopLabel", 12}, + {"stretchAnchorLabel", 10, true}, + {"stretchAlwaysOnTopLabel", 11}, } window:arrange_menu (frame6, left_side, x, window.top_start_at) @@ -6823,7 +6955,8 @@ function window:CreateFrame6() {"MicroDisplayLeftLabel", 5}, {"MicroDisplayCenterLabel", 6}, {"MicroDisplayRightLabel", 7}, - {"MicroDisplayWarningLabel", 8, true}, + {"instanceMicroDisplaysSideLabel", 8, true}, + {"MicroDisplayWarningLabel", 9, true}, } window:arrange_menu (frame6, right_side, window.right_start_at, window.top_start_at) @@ -7230,7 +7363,7 @@ function window:CreateFrame7() {"menuIconSizeLabel", 3}, {"desaturateMenuLabel", 4}, {"MenuIconShadowLabel", 5}, - {"menuAnchorXLabel", 6}, + {"menuAnchorXLabel", 6, true}, {"menuAnchorYLabel", 7}, {"MenuIconSpaceLabel", 8}, @@ -7263,7 +7396,7 @@ function window:CreateFrame8() g:NewLabel (frame8, _, "$parentModelLowerAnchor", "ModelLowerAnchor", Loc ["STRING_OPTIONS_3D_LANCHOR"], "GameFontNormal") --> upper model enabled - g:NewLabel (frame8, _, "$parentModelUpperEnabledLabel", "ModelUpperEnabledLabel", Loc ["STRING_OPTIONS_3D_ENABLED"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentModelUpperEnabledLabel", "ModelUpperEnabledLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame8, _, "$parentModelUpperEnabledSlider", "ModelUpperEnabledSlider", 60, 20, _, _, _G.DetailsOptionsWindow.instance.row_info.models.upper_enabled) frame8.ModelUpperEnabledSlider:SetPoint ("left", frame8.ModelUpperEnabledLabel, "right", 2, -1) frame8.ModelUpperEnabledSlider.OnSwitch = function (self, instance, value) @@ -7339,7 +7472,7 @@ function window:CreateFrame8() --> upper model alpha - g:NewLabel (frame8, _, "$parentModelUpperAlphaLabel", "ModelUpperAlphaLabel", Loc ["STRING_OPTIONS_3D_UALPHA"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentModelUpperAlphaLabel", "ModelUpperAlphaLabel", Loc ["STRING_ALPHA"], "GameFontHighlightLeft") local s = g:NewSlider (frame8, _, "$parentModelUpperAlphaSlider", "ModelUpperAlphaSlider", SLIDER_WIDTH, 20, 0, 1, 0.05, _G.DetailsOptionsWindow.instance.row_info.models.upper_alpha, true) s:SetBackdrop (slider_backdrop) s:SetBackdropColor (unpack (slider_backdrop_color)) @@ -7364,7 +7497,7 @@ function window:CreateFrame8() window:CreateLineBackground2 (frame8, "ModelUpperAlphaSlider", "ModelUpperAlphaLabel", Loc ["STRING_OPTIONS_3D_UALPHA_DESC"]) --> lower model enabled - g:NewLabel (frame8, _, "$parentModelLowerEnabledLabel", "ModelLowerEnabledLabel", Loc ["STRING_OPTIONS_3D_ENABLED"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentModelLowerEnabledLabel", "ModelLowerEnabledLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame8, _, "$parentModelLowerEnabledSlider", "ModelLowerEnabledSlider", 60, 20, _, _, _G.DetailsOptionsWindow.instance.row_info.models.lower_enabled) frame8.ModelLowerEnabledSlider:SetPoint ("left", frame8.ModelLowerEnabledLabel, "right", 2, -1) frame8.ModelLowerEnabledSlider.OnSwitch = function (self, instance, value) @@ -7392,7 +7525,7 @@ function window:CreateFrame8() frame8.ModelLowerSelect:SetTextColor (button_color_rgb) --> lower model alpha - g:NewLabel (frame8, _, "$parentModelLowerAlphaLabel", "ModelLowerAlphaLabel", Loc ["STRING_OPTIONS_3D_LALPHA"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentModelLowerAlphaLabel", "ModelLowerAlphaLabel", Loc ["STRING_ALPHA"], "GameFontHighlightLeft") local s = g:NewSlider (frame8, _, "$parentModelLowerAlphaSlider", "ModelLowerAlphaSlider", SLIDER_WIDTH, 20, 0, 1, 0.05, _G.DetailsOptionsWindow.instance.row_info.models.lower_alpha, true) s:SetBackdrop (slider_backdrop) s:SetBackdropColor (unpack (slider_backdrop_color)) @@ -7423,7 +7556,7 @@ function window:CreateFrame8() --> enable fast updates - g:NewLabel (frame8, _, "$parentBarUpdateRateLabel", "BarUpdateRateLabel", Loc ["STRING_OPTIONS_BARUR_ENABLED"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentBarUpdateRateLabel", "BarUpdateRateLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame8, _, "$parentBarUpdateRateSlider", "BarUpdateRateSlider", 60, 20, _, _, _G.DetailsOptionsWindow.instance.row_info.fast_ps_update) frame8.BarUpdateRateSlider:SetPoint ("left", frame8.BarUpdateRateLabel, "right", 2, -1) frame8.BarUpdateRateSlider.OnSwitch = function (self, instance, value) @@ -7469,7 +7602,7 @@ function window:CreateFrame8() g:NewLabel (frame8, _, "$parentTotalBarAnchor", "totalBarAnchorLabel", Loc ["STRING_OPTIONS_TOTALBAR_ANCHOR"], "GameFontNormal") - g:NewLabel (frame8, _, "$parentTotalBarLabel", "totalBarLabel", Loc ["STRING_OPTIONS_SHOW_TOTALBAR"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentTotalBarLabel", "totalBarLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame8, _, "$parentTotalBarSlider", "totalBarSlider", 60, 20, _, _, instance.total_bar.enabled) frame8.totalBarSlider:SetPoint ("left", frame8.totalBarLabel, "right", 2) @@ -7515,7 +7648,7 @@ function window:CreateFrame8() _detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance) end g:NewColorPickButton (frame8, "$parentTotalBarColorPick", "totalBarColorPick", totalbarcolor_callback) - g:NewLabel (frame8, _, "$parentTotalBarColorPickLabel", "totalBarPickColorLabel", Loc ["STRING_OPTIONS_COLOR"], "GameFontHighlightLeft") + g:NewLabel (frame8, _, "$parentTotalBarColorPickLabel", "totalBarPickColorLabel", Loc ["STRING_COLOR"], "GameFontHighlightLeft") frame8.totalBarColorPick:SetPoint ("left", frame8.totalBarPickColorLabel, "right", 2, 0) window:CreateLineBackground2 (frame8, "totalBarColorPick", "totalBarPickColorLabel", Loc ["STRING_OPTIONS_SHOW_TOTALBAR_COLOR_DESC"]) @@ -8010,12 +8143,12 @@ function window:CreateFrame9() d.onleave_backdrop = dropdown_backdrop_onleave d:SetBackdrop (dropdown_backdrop) d:SetBackdropColor (unpack (dropdown_backdrop_onleave)) - + -- Wallpaper Settings -- wallpaper - g:NewLabel (frame9, _, "$parentBackgroundLabel", "enablewallpaperLabel", Loc ["STRING_OPTIONS_WP_ENABLE"], "GameFontHighlightLeft") + g:NewLabel (frame9, _, "$parentBackgroundLabel", "enablewallpaperLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") -- frame9.useBackgroundSlider:SetPoint ("left", frame9.enablewallpaperLabel, "right", 2, 0) --> slider ativar ou desativar frame9.useBackgroundSlider.OnSwitch = function (self, instance, value) @@ -8589,7 +8722,7 @@ function window:CreateFrame10() window:CreateLineBackground2 (frame10, "ProfileTypeDropdown", "ProfileTypeLabel", Loc ["STRING_OPTIONS_PERFORMANCE_TYPES_DESC"]) --enabled slider - g:NewLabel (frame10, _, "$parenttProfileTypeEnabledLabel", "ProfileTypeEnabledLabel", Loc ["STRING_OPTIONS_PERFORMANCE_ENABLE"], "GameFontHighlightLeft") + g:NewLabel (frame10, _, "$parenttProfileTypeEnabledLabel", "ProfileTypeEnabledLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame10, _, "$parentProfileTypeEnabledSlider", "ProfileTypeEnabledSlider", 60, 20, _, _, false) frame10.ProfileTypeEnabledSlider:SetPoint ("left", frame10.ProfileTypeEnabledLabel, "right", 2) frame10.ProfileTypeEnabledSlider.OnSwitch = function (self, _, value) @@ -8779,7 +8912,7 @@ function window:CreateFrame11() --interrupts --enable - g:NewLabel (frame11, _, "$parentEnableInterruptsLabel", "EnableInterruptsLabel", Loc ["STRING_OPTIONS_RT_INTERRUPTS_ONOFF"], "GameFontHighlightLeft") + g:NewLabel (frame11, _, "$parentEnableInterruptsLabel", "EnableInterruptsLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame11, _, "$parentEnableInterruptsSlider", "EnableInterruptsSlider", 60, 20, _, _, _detalhes.announce_interrupts.enabled) frame11.EnableInterruptsSlider:SetPoint ("left", frame11.EnableInterruptsLabel, "right", 2) @@ -8908,7 +9041,7 @@ function window:CreateFrame11() --cooldowns - g:NewLabel (frame11, _, "$parentEnableCooldownsLabel", "EnableCooldownsLabel", Loc ["STRING_OPTIONS_RT_COOLDOWNS_ONOFF"], "GameFontHighlightLeft") + g:NewLabel (frame11, _, "$parentEnableCooldownsLabel", "EnableCooldownsLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame11, _, "$parentEnableCooldownsSlider", "EnableCooldownsSlider", 60, 20, _, _, _detalhes.announce_cooldowns.enabled) frame11.EnableCooldownsSlider:SetPoint ("left", frame11.EnableCooldownsLabel, "right", 2) @@ -9097,7 +9230,7 @@ function window:CreateFrame11() --deaths - g:NewLabel (frame11, _, "$parentEnableDeathsLabel", "EnableDeathsLabel", Loc ["STRING_OPTIONS_RT_DEATHS_ONOFF"], "GameFontHighlightLeft") + g:NewLabel (frame11, _, "$parentEnableDeathsLabel", "EnableDeathsLabel", Loc ["STRING_ENABLED"], "GameFontHighlightLeft") g:NewSwitch (frame11, _, "$parentEnableDeathsSlider", "EnableDeathsSlider", 60, 20, _, _, _detalhes.announce_deaths.enabled) frame11.EnableDeathsSlider:SetPoint ("left", frame11.EnableDeathsLabel, "right", 2) @@ -9304,7 +9437,7 @@ function window:CreateFrame12() frame4.descAuthorLabel:SetPoint ("topleft", frame4, "topleft", 180, y) g:NewLabel (frame4, _, "$parentDescVersionLabel", "descVersionLabel", Loc ["STRING_OPTIONS_PLUGINS_VERSION"], "GameFontNormal", 12) frame4.descVersionLabel:SetPoint ("topleft", frame4, "topleft", 290, y) - g:NewLabel (frame4, _, "$parentDescEnabledLabel", "descEnabledLabel", Loc ["STRING_OPTIONS_PLUGINS_ENABLED"], "GameFontNormal", 12) + g:NewLabel (frame4, _, "$parentDescEnabledLabel", "descEnabledLabel", Loc ["STRING_ENABLED"], "GameFontNormal", 12) frame4.descEnabledLabel:SetPoint ("topleft", frame4, "topleft", 400, y) g:NewLabel (frame4, _, "$parentDescOptionsLabel", "descOptionsLabel", Loc ["STRING_OPTIONS_PLUGINS_OPTIONS"], "GameFontNormal", 12) frame4.descOptionsLabel:SetPoint ("topleft", frame4, "topleft", 510, y) @@ -9388,7 +9521,7 @@ function window:CreateFrame12() frame4.descAuthorLabel:SetPoint ("topleft", frame4, "topleft", 180, y) g:NewLabel (frame4, _, "$parentDescVersionLabel2", "descVersionLabel", Loc ["STRING_OPTIONS_PLUGINS_VERSION"], "GameFontNormal", 12) frame4.descVersionLabel:SetPoint ("topleft", frame4, "topleft", 290, y) - g:NewLabel (frame4, _, "$parentDescEnabledLabel2", "descEnabledLabel", Loc ["STRING_OPTIONS_PLUGINS_ENABLED"], "GameFontNormal", 12) + g:NewLabel (frame4, _, "$parentDescEnabledLabel2", "descEnabledLabel", Loc ["STRING_ENABLED"], "GameFontNormal", 12) frame4.descEnabledLabel:SetPoint ("topleft", frame4, "topleft", 400, y) g:NewLabel (frame4, _, "$parentDescOptionsLabel2", "descOptionsLabel", Loc ["STRING_OPTIONS_PLUGINS_OPTIONS"], "GameFontNormal", 12) frame4.descOptionsLabel:SetPoint ("topleft", frame4, "topleft", 510, y) @@ -9473,7 +9606,7 @@ function window:CreateFrame12() frame4.descAuthorLabel:SetPoint ("topleft", frame4, "topleft", 180, y) g:NewLabel (frame4, _, "$parentDescVersionLabel3", "descVersionLabel", Loc ["STRING_OPTIONS_PLUGINS_VERSION"], "GameFontNormal", 12) frame4.descVersionLabel:SetPoint ("topleft", frame4, "topleft", 290, y) - g:NewLabel (frame4, _, "$parentDescEnabledLabel3", "descEnabledLabel", Loc ["STRING_OPTIONS_PLUGINS_ENABLED"], "GameFontNormal", 12) + g:NewLabel (frame4, _, "$parentDescEnabledLabel3", "descEnabledLabel", Loc ["STRING_ENABLED"], "GameFontNormal", 12) frame4.descEnabledLabel:SetPoint ("topleft", frame4, "topleft", 400, y) g:NewLabel (frame4, _, "$parentDescOptionsLabel3", "descOptionsLabel", Loc ["STRING_OPTIONS_PLUGINS_OPTIONS"], "GameFontNormal", 12) frame4.descOptionsLabel:SetPoint ("topleft", frame4, "topleft", 510, y) @@ -9592,7 +9725,7 @@ end end select_options (1) - + DetailsOptionsWindow.loading_settings = nil end --> if not window @@ -9600,6 +9733,8 @@ end --> if not window ---------------------------------------------------------------------------------------- --> Show + + local strata = { ["BACKGROUND"] = "Background", ["LOW"] = "Low", @@ -9763,29 +9898,6 @@ end --> if not window g:BuildMenu (f, skin_object.skin_options, 0, 0, 400) - --[[ - for index, widget in ipairs (skin_object.skin_options) do - local type = widget.type - - if (type == "button") then - local button = g:NewButton (frame3, _, "$parent" .. skin_name_formated .. "Button" .. index, skin_name_formated .. "Button" .. index, 160, 18, widget.func, nil, nil, nil, widget.text) - button:InstallCustomTexture() - - local label = g:NewLabel (frame3, _, "$parent" .. skin_name_formated .. "ButtonLabel" .. index, skin_name_formated .. "ButtonLabel" .. index, "", "GameFontHighlightLeft") - label:SetPoint ("left", button, "left") - - local desc = window:CreateLineBackground2 (frame3, skin_name_formated .. "Button" .. index, skin_name_formated .. "ButtonLabel" .. index, widget.desc) - desc:SetWidth (1) - - tinsert (frame3.ExtraOptions [skin_name_formated], {button, label}) - - button:SetPoint (window.right_start_at, window.top_start_at + (index * 1 * 25 * -1)) - end - end - - frame3.SkinExtraOptionsAnchor:Show() - --]] - elseif (skin_object.skin_options) then frame3.ExtraOptions [skin_name_formated]:Show() end @@ -10271,6 +10383,13 @@ end --> if not window --_detalhes:CooltipPreset (1) GameCooltip:AddLine ("editing window:", editing_instance.meu_id) GameCooltip:ShowCooltip (_G.DetailsOptionsWindowInstanceSelectDropdown, "tooltip") + + if (_G.DetailsOptionsWindow.MyObject.is_window_settings [_G.DetailsOptionsWindow.MyObject.current_selected]) then + _G.DetailsOptionsWindowInstanceSelectDropdown.MyObject:Enable() + else + _G.DetailsOptionsWindowInstanceSelectDropdown.MyObject:Disable() + end + end diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 0d17b77b..fec75313 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -5374,7 +5374,7 @@ function _detalhes:ChangeSkin (skin_name) local this_skin = _detalhes.skins [skin_name] if (not this_skin) then - skin_name = "Minimalistic v2" + skin_name = _detalhes.default_skin_to_use this_skin = _detalhes.skins [skin_name] end diff --git a/images/bar_background.tga b/images/bar_background.tga new file mode 100644 index 00000000..f3f28c03 Binary files /dev/null and b/images/bar_background.tga differ diff --git a/images/skins/flat_skin.tga b/images/skins/flat_skin.tga index 87ba087f..c5f7d69d 100644 Binary files a/images/skins/flat_skin.tga and b/images/skins/flat_skin.tga differ diff --git a/locales/Details-zhTW.lua b/locales/Details-zhTW.lua new file mode 100644 index 00000000..f5507ab8 --- /dev/null +++ b/locales/Details-zhTW.lua @@ -0,0 +1,4 @@ +local L = LibStub("AceLocale-3.0"):NewLocale("Details", "zhTW") +if not L then return end + +@localization(locale="zhTW", format="lua_additive_table", escape-non-ascii=true)@ \ No newline at end of file