Skip to content

Commit

Permalink
- options for larger namepaltes
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed Oct 8, 2024
1 parent d0dc9c4 commit 75eff54
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Plater_ChangeLog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ function Plater.GetChangelogTable()
if (not Plater.ChangeLogTable) then
Plater.ChangeLogTable = {

{1728421735, "New Feature", "Oct 8th, 2024", "Adding 'Larger Nameplates' and the corresponding base nameplate scale optiosn to the advanced tab.", "cont1nuity"},
{1728421735, "Backend Change", "Oct 7th, 2024", "Cleanup of old unused aura update code.", "cont1nuity"},
{1728421735, "Backend Change", "Oct 7th, 2024", "Removing LibClassicDuration as it was no longer in use.", "cont1nuity"},
{1728421735, "Backend Change", "Oct 7th, 2024", "Less frequent group unit updates for tank scanning against event spam.", "cont1nuity"},
{1728421735, "Backend Change", "Oct 7th, 2024", "Adding additional performance units for Palace.", "cont1nuity"},

{1727794055, "Bug Fix", "Oct 1st, 2024", "Ensure soft-interact options work on all client versions now.", "cont1nuity"},
{1727794055, "Bug Fix", "Sept 25th, 2024", "Don't cache game objects in the npc-cache.", "cont1nuity"},
{1727794055, "Bug Fix", "Sept 25th, 2024", "Fix Warlock execute.", "cont1nuity"},
Expand Down
84 changes: 84 additions & 0 deletions options/Plater_O_Advanced.lua
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,90 @@ function platerInternal.CreateAdvancedOptions()
nocombat = true,
},

{type = "label", get = function() return "Selection Space Scaling:" end, text_template = DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE")},
{
type = "toggle",
get = function()
local hScale = GetCVarNumberOrDefault("NamePlateHorizontalScale");
local vScale = GetCVarNumberOrDefault("NamePlateVerticalScale");
local cScale = GetCVarNumberOrDefault("NamePlateClassificationScale");
return not (ApproximatelyEqual(hScale, 1) and ApproximatelyEqual(vScale, 1) and ApproximatelyEqual(cScale, 1));
end,
set = function (self, fixedparam, value)
if value then
SetCVar("NamePlateHorizontalScale", 1.4);
SetCVar("NamePlateVerticalScale", 2.7);
SetCVar("NamePlateClassificationScale", 1.25);
else
SetCVar("NamePlateHorizontalScale", 1);
SetCVar("NamePlateVerticalScale", 1);
SetCVar("NamePlateClassificationScale", 1);
end
PlaterOptionsPanelFrame.RefreshOptionsFrame()
end,
name = "Larger Nameplates" .. CVarIcon,
desc = "Increases the blizzard base nameplate scaling (which is impacting the selection space and default blizzard nameplate size)." .. CVarDesc,
nocombat = true,
},
{
type = "range",
get = function() return tonumber (GetCVar ("NamePlateVerticalScale")) end,
set = function (self, fixedparam, value)
if (not InCombatLockdown()) then
SetCVar ("NamePlateVerticalScale", value)
else
Plater:Msg (L["OPTIONS_ERROR_CVARMODIFY"])
end
end,
min = 0.3,
max = 3,
step = 0.1,
thumbscale = 1.7,
usedecimals = true,
name = "Base Vertical Scale" .. CVarIcon,
desc = "Increases the blizzard base nameplate scaling height (which is impacting the selection space and default blizzard nameplate size)." .. CVarDesc,
nocombat = true,
},
{
type = "range",
get = function() return tonumber (GetCVar ("NamePlateHorizontalScale")) end,
set = function (self, fixedparam, value)
if (not InCombatLockdown()) then
SetCVar ("NamePlateHorizontalScale", value)
else
Plater:Msg (L["OPTIONS_ERROR_CVARMODIFY"])
end
end,
min = 0.3,
max = 2,
step = 0.1,
thumbscale = 1.7,
usedecimals = true,
name = "Base Horizontal Scale" .. CVarIcon,
desc = "Increases the blizzard base nameplate scaling height (which is impacting the selection space and default blizzard nameplate size)." .. CVarDesc,
nocombat = true,
},
{
type = "range",
get = function() return tonumber (GetCVar ("NamePlateClassificationScale")) end,
set = function (self, fixedparam, value)
if (not InCombatLockdown()) then
SetCVar ("NamePlateClassificationScale", value)
else
Plater:Msg (L["OPTIONS_ERROR_CVARMODIFY"])
end
end,
min = 0.3,
max = 1.5,
step = 0.1,
thumbscale = 1.7,
usedecimals = true,
name = "Base Classification Scale" .. CVarIcon,
desc = "Increases the blizzard base nameplate classification scaling (which is impacting the selection space and default blizzard nameplate size)." .. CVarDesc,
nocombat = true,
},


{type = "label", get = function() return "Enemy Box Selection Space:" end, text_template = DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE")},
{
type = "range",
Expand Down

0 comments on commit 75eff54

Please sign in to comment.