From c87f1ba437f364bbc73cff43a0c0f385917487ba Mon Sep 17 00:00:00 2001 From: RBG DEV <149433862+rbgdevx@users.noreply.github.com> Date: Mon, 4 Nov 2024 20:58:09 -0500 Subject: [PATCH] fixing placeholder text --- .vscode/settings.json | 4 +++- AutoBodyRes.toc | 2 +- CHANGELOG.md | 4 ++++ options.lua | 6 +++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 925bc87..5d53a93 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -51,5 +51,7 @@ "table": "disable", "utf8": "disable" }, - "Lua.workspace.library": ["~\\.vscode\\extensions\\ketho.wow-api-0.17.6\\Annotations"] + "Lua.workspace.library": [ + "~\\.vscode\\extensions\\ketho.wow-api-0.17.6\\Annotations" + ] } diff --git a/AutoBodyRes.toc b/AutoBodyRes.toc index 719677a..a8b1195 100644 --- a/AutoBodyRes.toc +++ b/AutoBodyRes.toc @@ -1,6 +1,6 @@ ## Interface: 110005 ## Title: AutoBodyRes -## Version: 1.1.6 +## Version: 1.1.7 ## Author: RBGDEV ## Notes: Shows text if someone took your body or not after you died in a battleground, preventing you from being able to body res. ## OptionalDeps: Ace3, LibStub, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets diff --git a/CHANGELOG.md b/CHANGELOG.md index 5785c81..3a60f5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Auto Body Res +## [v1.1.7](https://github.com/rbgdevx/auto-body-res/releases/tag/v1.1.7) (2024-11-04) + +- Fixing placeholder text hide/show settings + ## [v1.1.6](https://github.com/rbgdevx/auto-body-res/releases/tag/v1.1.6) (2024-11-04) - Updating placeholder text to be clear its placeholder diff --git a/options.lua b/options.lua index 323ad5b..0ca04a1 100644 --- a/options.lua +++ b/options.lua @@ -79,9 +79,11 @@ NS.AceConfig = { if NS.db.global.outside then if not NS.isDead() then NS.Interface.textFrame:Hide() + NS.Interface.text:SetText("") end else NS.Interface.textFrame:Hide() + NS.Interface.text:SetText("") end end end @@ -150,7 +152,9 @@ NS.AceConfig = { NS.Interface.textFrame:Show() FrameUtil.RegisterFrameForEvents(AutoBodyResFrame, DEAD_EVENTS) else - NS.Interface.textFrame:Hide() + if not NS.db.global.test then + NS.Interface.textFrame:Hide() + end FrameUtil.UnregisterFrameForEvents(AutoBodyResFrame, DEAD_EVENTS) end end