From 0319b5c39c05ec6a1212ffe0a531a4cdc32851ea Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 9 Jan 2022 16:59:33 +0100 Subject: [PATCH] turtle-health: option to revert turtle wow health TurtleWoW decided to change and add QoL features to their default client which they consider to be wanted by everyone. This modules lets you disable the target-healthpoints again. This module will be skipped on every other client. --- ShaguTweaks-tbc.toc | 1 + ShaguTweaks.toc | 1 + mods/turtle-health.lua | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 mods/turtle-health.lua diff --git a/ShaguTweaks-tbc.toc b/ShaguTweaks-tbc.toc index 3b2ff88..0d873c4 100644 --- a/ShaguTweaks-tbc.toc +++ b/ShaguTweaks-tbc.toc @@ -63,3 +63,4 @@ mods\worldmap-colors.lua mods\unitframes-bighealth.lua mods\unitframes-classportrait.lua mods\cooldown-numbers.lua +mods\turtle-health.lua diff --git a/ShaguTweaks.toc b/ShaguTweaks.toc index df25656..31ace85 100644 --- a/ShaguTweaks.toc +++ b/ShaguTweaks.toc @@ -63,3 +63,4 @@ mods\worldmap-colors.lua mods\unitframes-bighealth.lua mods\unitframes-classportrait.lua mods\cooldown-numbers.lua +mods\turtle-health.lua diff --git a/mods/turtle-health.lua b/mods/turtle-health.lua new file mode 100644 index 0000000..309a712 --- /dev/null +++ b/mods/turtle-health.lua @@ -0,0 +1,26 @@ +-- TurtleWoW decided to change and add QoL features to their +-- default client, which they consider to be wanted by everyone. +-- This modules lets you disable the target-healthpoints again. +-- +-- Depending on the amount of changes in future, this might move +-- from "Unit Frames" to a more general "Revert TWoW Changes" module. + +-- Skip module initialization on every other client than TurtleWoW. +if not TargetHPText or not TargetHPPercText then return end + +-- This table holds the meta-data of the module: +local module = ShaguTweaks:register({ + title = "Hide TWoW Target Health", + description = "Hide Turtle-WoW Custom Health Points From Target Frame", + expansions = { ["vanilla"] = true, ["tbc"] = false }, + category = "Unit Frames", + enabled = true, +}) + +module.enable = function(self) + TargetHPText:Hide() + TargetHPText.Show = function() return end + + TargetHPPercText:Hide() + TargetHPPercText.Show = function() return end +end