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

📄 tcc_addons.lua

📁 WOW的一款PVP插件
💻 LUA
字号:


-- TrinityBars
if IsAddOnLoaded("TrinityBars") then
	TCCBUTTONTYPE = {
		{key = 1, value = "^SpellButton",         type = "Spell"   },
		{key = 1, value = "^TrinityActionButton", type = "Action"  },
		{key = 1, value = "^TrinityPetButton",    type = "Pet"     },
		{key = 2, value = "AutoCastable",         type = "Pet"     },
		{key = 2, value = "HotKey",               type = "Action"  },
		{key = 2, value = "Stock",                type = "Item"    },
	}

	tdOld_Trinity_UpdateActionbar_OnEvent = Trinity_UpdateActionbar_OnEvent
	function Trinity_UpdateActionbar_OnEvent(button)
		local start, duration, enable = GetActionCooldown(this:GetID());
		if getglobal(this:GetName().."IconFrameCooldown") then
			CooldownFrame_SetTimer(getglobal(this:GetName().."IconFrameCooldown"), start, duration, enable);
		end
		tdOld_Trinity_UpdateActionbar_OnEvent(button)
	end

	tdOld_Trinity_UpdatePetActionbar_OnEvent = Trinity_UpdatePetActionbar_OnEvent
	function Trinity_UpdatePetActionbar_OnEvent(button)
		local start, duration, enable = GetPetActionCooldown(this:GetID());
		if getglobal(this:GetName().."IconFrameCooldown") then
			CooldownFrame_SetTimer(getglobal(this:GetName().."IconFrameCooldown"), start, duration, enable);
		end
		tdOld_Trinity_UpdatePetActionbar_OnEvent(button)
	end
end

⌨️ 快捷键说明

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