tcc_addons.lua

来自「WOW的一款PVP插件」· LUA 代码 · 共 31 行

LUA
31
字号


-- 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 + =
减小字号Ctrl + -
显示快捷键?