Skip to content

Commit

Permalink
Actually, create new defaults to fix the issue with profiles not reve…
Browse files Browse the repository at this point in the history
…rting back as this could have affected a lot of people...
  • Loading branch information
Luxocracy committed Nov 27, 2024
1 parent 44e9bc6 commit 1eff267
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions NeatPlatesHub/Defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ NeatPlatesHubDefaults = {
StyleFriendlyBarsOnElite = false,
StyleFriendlyBarsInstanceMode = false,
StyleFriendlyBarsOnPlayers = true,
StyleFriendlyBarsOnPlayersExcludeFlagged = false,
StyleFriendlyBarsOnPlayersExcludeNonFlagged = false,
StyleFriendlyBarsOnPlayersExcludePvPFlagged = false,
StyleFriendlyBarsOnPlayersExcludePvPNonFlagged = false,
StyleFriendlyBarsNoMinions = false,
StyleFriendlyBarsNoTotem = false,
StyleFriendlyBarsOnNPC = false,
Expand All @@ -36,8 +36,8 @@ NeatPlatesHubDefaults = {
StyleEnemyBarsNoMinions = false,
StyleEnemyBarsNoTotem = false,
StyleEnemyBarsOnPlayers = true,
StyleEnemyBarsOnPlayersExcludeFlagged = false,
StyleEnemyBarsOnPlayersExcludeNonFlagged = false,
StyleEnemyBarsOnPlayersExcludePvPFlagged = false,
StyleEnemyBarsOnPlayersExcludePvPNonFlagged = false,
StyleEnemyBarsOnNPC = true,
StyleEnemyBarsClickThrough = false,

Expand Down
16 changes: 8 additions & 8 deletions NeatPlatesHub/Hub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ local function BuildHubPanel(panel)
panel.StyleEnemyBarsNoTotem:SetScale(.8)
panel.StyleEnemyBarsOnElite, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnElite", L["Elite Units"], AlignmentColumn, F, 16, 0)
panel.StyleEnemyBarsOnPlayers, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnPlayers", L["Players"], AlignmentColumn, F, 16, 0)
panel.StyleEnemyBarsOnPlayersExcludeFlagged, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnPlayersExcludeFlagged", L["Exclude PvP-Flagged"], AlignmentColumn, F, 32*(1/.8), 0)
panel.StyleEnemyBarsOnPlayersExcludeFlagged:SetScale(.8)
panel.StyleEnemyBarsOnPlayersExcludeNonFlagged, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnPlayersExcludeNonFlagged", L["Exclude Non PvP-Flagged"], AlignmentColumn, F, 32*(1/.8), 0)
panel.StyleEnemyBarsOnPlayersExcludeNonFlagged:SetScale(.8)
panel.StyleEnemyBarsOnPlayersExcludePvPFlagged, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnPlayersExcludePvPFlagged", L["Exclude PvP-Flagged"], AlignmentColumn, F, 32*(1/.8), 0)
panel.StyleEnemyBarsOnPlayersExcludePvPFlagged:SetScale(.8)
panel.StyleEnemyBarsOnPlayersExcludePvPNonFlagged, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnPlayersExcludePvPNonFlagged", L["Exclude Non PvP-Flagged"], AlignmentColumn, F, 32*(1/.8), 0)
panel.StyleEnemyBarsOnPlayersExcludePvPNonFlagged:SetScale(.8)
panel.StyleEnemyBarsOnActive, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsOnActive", L["Active/Damaged Units"], AlignmentColumn, F, 16, 0)
panel.StyleEnemyBarsOnActive.tooltipText = L["Requires 'All NPCs' to be unchecked"]
panel.StyleEnemyBarsClickThrough, F = CreateQuickCheckbutton(objectName.."StyleEnemyBarsClickThrough", L["Clickthrough"], AlignmentColumn, F, 16, 0)
Expand All @@ -113,10 +113,10 @@ local function BuildHubPanel(panel)
panel.StyleFriendlyBarsNoTotem:SetScale(.8)
panel.StyleFriendlyBarsOnElite, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnElite", L["Elite Units"], AlignmentColumn, F, OffsetColumnB+16, 0)
panel.StyleFriendlyBarsOnPlayers, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnPlayers", L["Players"], AlignmentColumn, F, OffsetColumnB+16, 0)
panel.StyleFriendlyBarsOnPlayersExcludeFlagged, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnPlayersExcludeFlagged", L["Exclude PvP-Flagged"], AlignmentColumn, F, (OffsetColumnB+32)*(1/.8), 0)
panel.StyleFriendlyBarsOnPlayersExcludeFlagged:SetScale(.8)
panel.StyleFriendlyBarsOnPlayersExcludeNonFlagged, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnPlayersExcludeNonFlagged", L["Exclude Non PvP-Flagged"], AlignmentColumn, F, (OffsetColumnB+32)*(1/.8), 0)
panel.StyleFriendlyBarsOnPlayersExcludeNonFlagged:SetScale(.8)
panel.StyleFriendlyBarsOnPlayersExcludePvPFlagged, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnPlayersExcludePvPFlagged", L["Exclude PvP-Flagged"], AlignmentColumn, F, (OffsetColumnB+32)*(1/.8), 0)
panel.StyleFriendlyBarsOnPlayersExcludePvPFlagged:SetScale(.8)
panel.StyleFriendlyBarsOnPlayersExcludePvPNonFlagged, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnPlayersExcludePvPNonFlagged", L["Exclude Non PvP-Flagged"], AlignmentColumn, F, (OffsetColumnB+32)*(1/.8), 0)
panel.StyleFriendlyBarsOnPlayersExcludePvPNonFlagged:SetScale(.8)
panel.StyleFriendlyBarsOnActive, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsOnActive", L["Active/Damaged Units"], AlignmentColumn, F, OffsetColumnB+16, 0)
panel.StyleFriendlyBarsOnActive.tooltipText = L["Requires 'All NPCs' to be unchecked"]
panel.StyleFriendlyBarsClickThrough, F = CreateQuickCheckbutton(objectName.."StyleFriendlyBarsClickThrough", L["Clickthrough"], AlignmentColumn, F, OffsetColumnB+16, 0)
Expand Down
8 changes: 4 additions & 4 deletions NeatPlatesHub/functions/Style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ local function StyleNameDelegate(unit)
if IsUnitActive(unit) and LocalVars.StyleFriendlyBarsOnActive then return "Default"
elseif unit.isElite and LocalVars.StyleFriendlyBarsOnElite then return "Default"
elseif unit.type == "PLAYER" and LocalVars.StyleFriendlyBarsOnPlayers then
if unit.isPVPFlagged and LocalVars.StyleFriendlyBarsOnPlayersExcludeFlagged then
if unit.isPVPFlagged and LocalVars.StyleFriendlyBarsOnPlayersExcludePvPFlagged then
return "NameOnly"
elseif LocalVars.StyleFriendlyBarsOnPlayersExcludeNonFlagged then
elseif LocalVars.StyleFriendlyBarsOnPlayersExcludePvPNonFlagged then
return "NameOnly"
end
return "Default"
Expand All @@ -177,9 +177,9 @@ local function StyleNameDelegate(unit)
if IsUnitActive(unit) and LocalVars.StyleEnemyBarsOnActive then return "Default"
elseif unit.isElite and LocalVars.StyleEnemyBarsOnElite then return "Default"
elseif unit.type == "PLAYER" and LocalVars.StyleEnemyBarsOnPlayers then
if unit.isPVPFlagged and LocalVars.StyleEnemyBarsOnPlayersExcludeFlagged then
if unit.isPVPFlagged and LocalVars.StyleEnemyBarsOnPlayersExcludePvPFlagged then
return "NameOnly"
elseif LocalVars.StyleEnemyBarsOnPlayersExcludeNonFlagged then
elseif LocalVars.StyleEnemyBarsOnPlayersExcludePvPNonFlagged then
return "NameOnly"
end
return "Default"
Expand Down

0 comments on commit 1eff267

Please sign in to comment.