Skip to content

Commit

Permalink
Added frame level and strata options for the second aura frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed May 17, 2019
1 parent 54802d5 commit ffb1a66
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Plater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions Plater_DefaultSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
29 changes: 26 additions & 3 deletions Plater_OptionsPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")},

Expand Down Expand Up @@ -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.",
},

Expand Down

0 comments on commit ffb1a66

Please sign in to comment.