diff --git a/ClassicCastbars_Options/Locales/enUS.lua b/ClassicCastbars_Options/Locales/enUS.lua index 6dd8ee1..ae229c0 100644 --- a/ClassicCastbars_Options/Locales/enUS.lua +++ b/ClassicCastbars_Options/Locales/enUS.lua @@ -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." diff --git a/ClassicCastbars_Options/TestMode.lua b/ClassicCastbars_Options/TestMode.lua index 51fdfd1..39b4bb6 100644 --- a/ClassicCastbars_Options/TestMode.lua +++ b/ClassicCastbars_Options/TestMode.lua @@ -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