From ffb1a664577e7f0730f6d4e3e3a28bb539cdb30b Mon Sep 17 00:00:00 2001 From: Tercioo Date: Fri, 17 May 2019 12:23:22 -0300 Subject: [PATCH] Added frame level and strata options for the second aura frame --- Plater.lua | 4 ++-- Plater_DefaultSettings.lua | 2 ++ Plater_OptionsPanel.lua | 29 ++++++++++++++++++++++++++--- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/Plater.lua b/Plater.lua index 6165f504..be465cb1 100644 --- a/Plater.lua +++ b/Plater.lua @@ -1585,11 +1585,11 @@ Plater.DefaultSpellRangeList = { unitFrame:SetFrameStrata (profile.ui_parent_base_strata) castBar:SetFrameStrata (profile.ui_parent_cast_strata) buffFrame1:SetFrameStrata (profile.ui_parent_buff_strata) - buffFrame2:SetFrameStrata (profile.ui_parent_buff_strata) + buffFrame2:SetFrameStrata (profile.ui_parent_buff2_strata) --level castBar:SetFrameLevel (profile.ui_parent_cast_level) buffFrame1:SetFrameLevel (profile.ui_parent_buff_level) - buffFrame2:SetFrameLevel (profile.ui_parent_buff_level) + buffFrame2:SetFrameLevel (profile.ui_parent_buff2_level) end end diff --git a/Plater_DefaultSettings.lua b/Plater_DefaultSettings.lua index 1d4fd625..2a352650 100644 --- a/Plater_DefaultSettings.lua +++ b/Plater_DefaultSettings.lua @@ -511,9 +511,11 @@ PLATER_DEFAULT_SETTINGS = { use_ui_parent_just_enabled = false, ui_parent_base_strata = "BACKGROUND", ui_parent_buff_strata = "BACKGROUND", --testing, buffs should be in front of the health bar + ui_parent_buff2_strata = "BACKGROUND", ui_parent_cast_strata = "BACKGROUND", --testing, the castbar should be in front of everythings ui_parent_target_strata = "LOW", --testing, the current target nameplate should be in this strata ui_parent_buff_level = 10, + ui_parent_buff2_level = 10, ui_parent_cast_level = 10, ui_parent_scale_tune = 0, --testing, a slider to change the unit frame scale / goal is to have a fine tune knob to adjust the overall size when using this feature diff --git a/Plater_OptionsPanel.lua b/Plater_OptionsPanel.lua index e0a2268a..a17b248f 100644 --- a/Plater_OptionsPanel.lua +++ b/Plater_OptionsPanel.lua @@ -9966,10 +9966,18 @@ local relevance_options = { type = "select", get = function() return Plater.db.profile.ui_parent_buff_strata end, values = function() return build_framelevel_table ("ui_parent_buff_strata") end, - name = "Aura Frames", - desc = "Which strata aura frames will be placed in.", + name = "Aura Frame 1", + desc = "Which strata aura frame 1 will be placed in.", }, + { + type = "select", + get = function() return Plater.db.profile.ui_parent_buff2_strata end, + values = function() return build_framelevel_table ("ui_parent_buff2_strata") end, + name = "Aura Frame 2", + desc = "Which strata aura frame 2 will be placed in.", + }, + {type = "blank"}, {type = "label", get = function() return "Frame Levels:" end, text_template = DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE")}, @@ -9999,7 +10007,22 @@ local relevance_options = { min = 1, max = 5000, step = 1, - name = "Aura Frames", + name = "Aura Frame 1", + desc = "Move frames up or down within the strata channel.", + }, + + { + type = "range", + get = function() return Plater.db.profile.ui_parent_buff2_level end, + set = function (self, fixedparam, value) + Plater.db.profile.ui_parent_buff2_level = value + Plater.RefreshDBUpvalues() + Plater.UpdateAllPlates() + end, + min = 1, + max = 5000, + step = 1, + name = "Aura Frame 2", desc = "Move frames up or down within the strata channel.", },