⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tdrange.lua

📁 WOW的一款PVP插件
💻 LUA
字号:
local s = {}
local _, v

function tdRange_GetColor(id)
	s.Range = IsActionInRange(id) == 0 and true or nil
	s.Usable, s.Mana= IsUsableAction(id);
	s.Usable = not s.Usable
	for _, v in ipairs(tCCDB.Other.Color) do
		if s[v] then
			return tCCDB.Color[v].r, tCCDB.Color[v].g, tCCDB.Color[v].b, v
		end
	end
	return 1.0, 1.0, 1.0, ""
end

function ActionButton_UpdateUsable()
	local r, g, b, index = tdRange_GetColor(ActionButton_GetPagedID(this))
	if not (this.index and this.index == index) then
		this.index = index
		getglobal(this:GetName().."Icon"):SetVertexColor(r, g, b);
	end
end

old_ActionButton_OnUpdate = ActionButton_OnUpdate
function ActionButton_OnUpdate(elapsed)
	old_ActionButton_OnUpdate(elapsed)
	if ( this.rangeTimer and this.rangeTimer <= elapsed ) then
		hotkey = getglobal(this:GetName().."HotKey");
		if hotkey:GetText() == RANGE_INDICATOR then
			hotkey:SetText("")
		end
		ActionButton_UpdateUsable();
	end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -