Skip to content

Commit

Permalink
show different err message for nameplate testmode not found
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Oct 22, 2023
1 parent d18547d commit 707fb42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ClassicCastbars_Options/Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ L["ICON_SIZE_TOOLTIP"] = "Sets the size for the castbar spell icon."
L["IGNORE_PARENT_ALPHA"] = "Ignore Parent Frame Alpha"
L["IGNORE_PARENT_ALPHA_TOOLTIP"] = "Ignore transparency/alpha value inherited from castbars parent's frame."
L["NAMEPLATE"] = "Nameplate"
L["NO_NAMEPLATE_VISIBLE"] = "You have no target or target nameplate is not visible on screen."
L["PARTY"] = "Party"
L["PER_CHARACTER"] = "|TInterface\\OptionsFrame\\UI-OptionsFrame-NewFeatureIcon:0:0:0:-1|tCharacter Specific Settings"
L["PER_CHARACTER_TOOLTIP"] = "Click this to toggle between general settings and settings specific to this character."
Expand Down
4 changes: 3 additions & 1 deletion ClassicCastbars_Options/TestMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ end
function TestMode:SetCastbarMovable(unitID, parent)
local parentFrame = parent or ClassicCastbars.AnchorManager:GetAnchor(unitID)
if not parentFrame then
if unitID == "target" or unitID == "nameplate-testmode" or unitID == "focus" then
if unitID == "target" or unitID == "focus" then
print(format("|cFFFF0000[ClassicCastbars] %s|r", _G.ERR_GENERIC_NO_TARGET)) -- luacheck: ignore
elseif unitID == "nameplate-testmode" then
print(format("|cFFFF0000[ClassicCastbars] %s|r", L.NO_NAMEPLATE_VISIBLE)) -- luacheck: ignore
end
return false
end
Expand Down

0 comments on commit 707fb42

Please sign in to comment.