Skip to content

Commit

Permalink
Disable as default
Browse files Browse the repository at this point in the history
  • Loading branch information
siweia committed Aug 1, 2020
1 parent f5d2f94 commit 6e32d3d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Interface/AddOns/NDui/Core/GUI.lua
Expand Up @@ -237,6 +237,7 @@ local defaultSettings = {
MinAlpha = 1,
ColorBorder = false,
QuestIndicator = true,
NameOnlyMode = false,
},
Skins = {
DBM = true,
Expand Down Expand Up @@ -755,6 +756,7 @@ local optionList = { -- type, key, value, name, horizon, doubleline
{1, "Nameplate", "ExplosivesScale", L["ExplosivesScale"], true},
{1, "Nameplate", "QuestIndicator", L["QuestIndicator"]},
{1, "Nameplate", "AKSProgress", L["AngryKeystones Progress"], true},
{1, "Nameplate", "NameOnlyMode", "|cff00cc4c"..L["NameOnlyMode"].."*", nil, nil, nil, L["NameOnlyModeTip"]},
{},--blank
{1, "Nameplate", "CustomUnitColor", "|cff00cc4c"..L["CustomUnitColor"].."*", nil, nil, updateCustomUnitList, L["CustomUnitColorTip"]},
{5, "Nameplate", "CustomColor", L["Custom Color"].."*", 2},
Expand Down
4 changes: 3 additions & 1 deletion Interface/AddOns/NDui/Locales/enUS.lua
Expand Up @@ -651,4 +651,6 @@ L["Clear binds"] = "|cff00ff00All keybinds cleared for|r %s"
L["NameplateAuraFilter"] = "Auras Filter"
L["BlackNWhite"] = "White & Black List"
L["PlayerOnly"] = "List & Player"
L["IncludeCrowdControl"] = "List & Player & CCs"
L["IncludeCrowdControl"] = "List & Player & CCs"
L["NameOnlyMode"] = "Name Only Mode"
L["NameOnlyModeTip"] = "|nIf enabled, nameplate healthbar would be hidden on friendly units."
4 changes: 3 additions & 1 deletion Interface/AddOns/NDui/Locales/ruRU.lua
Expand Up @@ -651,4 +651,6 @@ L["Clear binds"] = "|cff00ff00All keybinds cleared for|r %s" -- need translation
L["NameplateAuraFilter"] = "Auras Filter" -- need translation
L["BlackNWhite"] = "White & Black List" -- need translation
L["PlayerOnly"] = "List & Player" -- need translation
L["IncludeCrowdControl"] = "List & Player & CCs" -- need translation
L["IncludeCrowdControl"] = "List & Player & CCs" -- need translation
L["NameOnlyMode"] = "Name Only Mode" -- need translation
L["NameOnlyModeTip"] = "|nIf enabled, nameplate healthbar would be hidden on friendly units." -- need translation
4 changes: 3 additions & 1 deletion Interface/AddOns/NDui/Locales/zhCN.lua
Expand Up @@ -651,4 +651,6 @@ L["Clear binds"] = "%s |cff00ff00绑定的所有按键已清除。"
L["NameplateAuraFilter"] = "姓名板法术过滤"
L["BlackNWhite"] = "只显示黑白名单"
L["PlayerOnly"] = "名单+玩家"
L["IncludeCrowdControl"] = "名单+玩家+控制技能"
L["IncludeCrowdControl"] = "名单+玩家+控制技能"
L["NameOnlyMode"] = "友方姓名板只保留名字"
L["NameOnlyModeTip"] = "|n启用后,友方姓名板将不再显示血量等信息,只保留名字。"
4 changes: 3 additions & 1 deletion Interface/AddOns/NDui/Locales/zhTW.lua
Expand Up @@ -651,4 +651,6 @@ L["Clear binds"] = "%s |cff00ff00綁定的所有按鍵已清除。"
L["NameplateAuraFilter"] = "名條法術過濾"
L["BlackNWhite"] = "只顯示黑白名單"
L["PlayerOnly"] = "名單+玩家"
L["IncludeCrowdControl"] = "名單+玩家+控場技能"
L["IncludeCrowdControl"] = "名單+玩家+控場技能"
L["NameOnlyMode"] = "友方名條只顯示名字"
L["NameOnlyModeTip"] = "|n啟用後,友方名條不再顯示血量等信息,只保留名字。"
2 changes: 1 addition & 1 deletion Interface/AddOns/NDui/Modules/UFs/Nameplates.lua
Expand Up @@ -808,7 +808,7 @@ function UF:PostUpdatePlates(event, unit)
self.npcID = B.GetNPCID(self.unitGUID)
self.isPlayer = UnitIsPlayer(unit)
self.reaction = UnitReaction(unit, "player")
self.isFriendly = self.reaction and self.reaction >= 5
self.isFriendly = NDuiDB["Nameplate"]["NameOnlyMode"] and self.reaction and self.reaction >= 5

local blizzPlate = self:GetParent().UnitFrame
self.widget = blizzPlate.WidgetContainer
Expand Down

0 comments on commit 6e32d3d

Please sign in to comment.