Add files via upload

This commit is contained in:
Dusk-92
2026-07-30 11:25:59 +02:00
committed by GitHub
parent b5a24cdf3f
commit 0638f7eb3f
6 changed files with 36 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local hooksecurefunc = ShaguTweaks.hooksecurefunc
local module = ShaguTweaks:register({
title = T["Range Color"],
description = T["Action buttons will be colored red when out of range."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = T["Action Bar"],
enabled = nil,
})
module.enable = function(self)
hooksecurefunc("ActionButton_OnUpdate", function(elapsed)
-- Button color based on range
if ( this.rangeTimer ) then
this.rangeTimer = this.rangeTimer - elapsed
if ( this.rangeTimer <= 0.2 ) then -- 0.1
if ( IsActionInRange( ActionButton_GetPagedID(this)) == 0 ) then
if not this.a then
this.r,this.g,this.b,this.a = 1,.1,.1,1 -- out of range colour
end
_G[this:GetName() .. 'Icon']:SetVertexColor(this.r, this.g, this.b, this.a)
elseif IsUsableAction(ActionButton_GetPagedID(this)) then
_G[this:GetName() .. 'Icon']:SetVertexColor(1, 1, 1, 1)
end
this.rangeTimer = TOOLTIP_UPDATE_TIME
end
end
end, true)
end
+1
View File
@@ -9,6 +9,7 @@ local module = ShaguTweaks:register({
title = T["Cooldown Numbers"],
description = T["Display the remaining duration as text on every cooldown."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = T["Action Bar"],
enabled = true,
color = { r = .3, g = .3, b = .3, a = .9}
})
+1
View File
@@ -5,6 +5,7 @@ local module = ShaguTweaks:register({
title = T["Hide Gryphons"],
description = T["Hides the gryphons left and right of the action bar."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = T["Action Bar"],
enabled = nil,
})
+1 -1
View File
@@ -5,7 +5,7 @@ local module = ShaguTweaks:register({
title = T["No Toggle Auto-Attack"],
description = T["Keeps Auto Attack, Auto Shot, and Shoot active when re-pressed, preventing accidental cancellation."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = T["General"],
category = T["Action Bar"],
enabled = true,
order = 12,
})
+1
View File
@@ -6,6 +6,7 @@ local module = ShaguTweaks:register({
title = T["Reduced Actionbar Size"],
description = T["Reduces the actionbar size by removing several items such as the bag panel and microbar"],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = T["Action Bar"],
enabled = nil,
})
+1 -1
View File
@@ -5,7 +5,7 @@ local module = ShaguTweaks:register({
title = T["XP Bar Text"],
description = T["Always shows current XP and rested bonus percentage directly on the experience bar."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = T["General"],
category = T["Action Bar"],
enabled = true,
order = 70,
})