From 33271d7be860df17b8feed9f818331722ea45c35 Mon Sep 17 00:00:00 2001 From: frozn Date: Sun, 26 May 2024 09:18:36 +0200 Subject: [PATCH] - added header in options to mention that settings are for unit tooltips --- TipTacOptions/ttOptions.lua | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/TipTacOptions/ttOptions.lua b/TipTacOptions/ttOptions.lua index 1261358..43148d0 100644 --- a/TipTacOptions/ttOptions.lua +++ b/TipTacOptions/ttOptions.lua @@ -369,12 +369,16 @@ local options = { { category = "Fading", options = { - { type = "Check", var = "overrideFade", label = "Override Default GameTooltip Fade for Units", tip = "Overrides the default fadeout function of the GameTooltip for units. If you are seeing problems regarding fadeout, please disable." }, + { type = "Header", label = "Fading for Unit Tooltips" }, + + { type = "Check", var = "overrideFade", label = "Enable Override Default GameTooltip Fade for Unit Tooltips", tip = "Overrides the default fadeout function of the GameTooltip for units. If you are seeing problems regarding fadeout, please disable." }, { type = "Slider", var = "preFadeTime", label = "Prefade Time", min = 0, max = 5, step = 0.05, enabled = function(factory) return factory:GetConfigValue("overrideFade") end, y = 10 }, { type = "Slider", var = "fadeTime", label = "Fadeout Time", min = 0, max = 5, step = 0.05, enabled = function(factory) return factory:GetConfigValue("overrideFade") end }, - { type = "Check", var = "hideWorldTips", label = "Instantly Hide World Frame Tips", tip = "This option will make most tips which appear from objects in the world disappear instantly when you take the mouse off the object. Examples such as mailboxes, herbs or chests.\nNOTE: Does not work for all world objects.", y = 10 }, + { type = "Header", label = "Others" }, + + { type = "Check", var = "hideWorldTips", label = "Instantly Hide World Frame Tips", tip = "This option will make most tips which appear from objects in the world disappear instantly when you take the mouse off the object. Examples such as mailboxes, herbs or chests.\nNOTE: Does not work for all world objects." }, } }, -- Bars @@ -382,7 +386,7 @@ local options = { category = "Bars", enabled = { type = "Check", var = "enableBars", tip = "Enable bars for unit tooltips" }, options = { - { type = "Header", label = "Health Bar", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, + { type = "Header", label = "Health Bar for Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "Check", var = "healthBar", label = "Show Health Bar", tip = "Will show a health bar of the unit.", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "DropDown", var = "healthBarText", label = "Health Bar Text", list = DROPDOWN_BARTEXTFORMAT, enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("healthBar") end }, @@ -390,18 +394,18 @@ local options = { { type = "Check", var = "healthBarClassColor", label = "Class Colored Health Bar", tip = "This options colors the health bar in the same color as the player class", enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("healthBar") end, y = 2, x = 130 }, { type = "Check", var = "hideDefaultBar", label = "Hide the Default Health Bar", tip = "Check this to hide the default health bar", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, - { type = "Header", label = "Mana Bar", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, + { type = "Header", label = "Mana Bar for Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "Check", var = "manaBar", label = "Show Mana Bar", tip = "If the unit has mana, a mana bar will be shown.", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "DropDown", var = "manaBarText", label = "Mana Bar Text", list = DROPDOWN_BARTEXTFORMAT, enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("manaBar") end }, { type = "Color", var = "manaBarColor", label = "Mana Bar Color", tip = "The color of the mana bar", enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("manaBar") end }, - { type = "Header", label = "Bar for other Power Types" }, + { type = "Header", label = "Bar for other Power Types and Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "Check", var = "powerBar", label = "Show Bar for other Power Types\n(e.g. Energy, Rage, Runic Power or Focus)", tip = "If the unit uses other power types than mana (e.g. energy, rage, runic power or focus), a bar for that will be shown.", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "DropDown", var = "powerBarText", label = "Power Bar Text", list = DROPDOWN_BARTEXTFORMAT, enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("powerBar") end }, - { type = "Header", label = "Cast Bar", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, + { type = "Header", label = "Cast Bar for Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "Check", var = "castBar", label = "Show Cast Bar", tip = "Will show a cast bar of the unit.", enabled = function(factory) return factory:GetConfigValue("enableBars") end }, { type = "Check", var = "castBarAlwaysShow", label = "Always Show Cast Bar", tip = "Check this to always show the cast bar", enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("castBar") end, x = 130 }, @@ -412,7 +416,7 @@ local options = { { type = "Color", var = "castBarFailColor", label = "Cast Bar Fail Color", tip = "The fail color of the cast bar", enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("castBar") end }, { type = "Color", var = "castBarSparkColor", label = "Cast Bar Spark Color", tip = "The spark color of the cast bar", enabled = function(factory) return factory:GetConfigValue("enableBars") and factory:GetConfigValue("castBar") end }, - { type = "Header", label = "Others", enabled = function(factory) return factory:GetConfigValue("enableBars") and (factory:GetConfigValue("healthBar") or factory:GetConfigValue("manaBar") or factory:GetConfigValue("powerBar") or factory:GetConfigValue("castBar")) end }, + { type = "Header", label = "Others for Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableBars") and (factory:GetConfigValue("healthBar") or factory:GetConfigValue("manaBar") or factory:GetConfigValue("powerBar") or factory:GetConfigValue("castBar")) end }, { type = "Check", var = "barsCondenseValues", label = "Show Condensed Bar Values", tip = "You can enable this option to condense values shown on the bars. It does this by showing 57254 as 57.3k as an example", enabled = function(factory) return factory:GetConfigValue("enableBars") and (factory:GetConfigValue("healthBar") or factory:GetConfigValue("manaBar") or factory:GetConfigValue("powerBar") or factory:GetConfigValue("castBar")) end }, @@ -432,6 +436,8 @@ local options = { category = "Auras", enabled = { type = "Check", var = "enableAuras", tip = "Enable auras for unit tooltips" }, options = { + { type = "Header", label = "Auras for Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableAuras") end }, + { type = "Check", var = "showBuffs", label = "Show Unit Buffs", tip = "Show buffs of the unit", enabled = function(factory) return factory:GetConfigValue("enableAuras") end }, { type = "Check", var = "showDebuffs", label = "Show Unit Debuffs", tip = "Show debuffs of the unit", enabled = function(factory) return factory:GetConfigValue("enableAuras") end }, @@ -452,7 +458,7 @@ local options = { category = "Icons", enabled = { type = "Check", var = "enableIcons", tip = "Turns on or off all additional icons next to the tooltip" }, options = { - { type = "Header", label = "Icons for Unit Tooltips" }, + { type = "Header", label = "Icons for Unit Tooltips", enabled = function(factory) return factory:GetConfigValue("enableIcons") end }, { type = "Check", var = "iconRaid", label = "Show Raid Icon", tip = "Shows the raid icon next to the tip", enabled = function(factory) return factory:GetConfigValue("enableIcons") end }, { type = "Check", var = "iconFaction", label = "Show Faction Icon", tip = "Shows the faction icon next to the tip, if the unit is flagged for PvP", enabled = function(factory) return factory:GetConfigValue("enableIcons") end },