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Rgb)RiOktMbrXG45SBpMRPM9m)mlxYiJmMG)t3JNYhpVzo1z)zl7pX)WHFLagggggggMn)G6Ug6s9VJHkaXZz3EmxtnAnjK7TzEBuEtxujaodbmmmmmmmmmmmmmmmmypuZu(ofhbWziGHHHHHHHXuYWVsadddJj5B9xg7XuddSWY8VrB9ACv3V2RAET9hm24NzCAkcyyyyyyyyoG2vJG)22JjzYmnh2Z8ZSCjJmYyc(pDpEkF88M5uN9NTS)e)dh(vcyyyyyyyy28dQ7AOl1)ogQaj7XKGXbTMeY92mVnkVPlQeaNHaggggggggggggggggShQzkFNIJa4meWWWWWWWWykz4xjGHHHXuYeykzciGaciGaciGaciGaciGaciGaciGaciGackS9yQXVWB0wVgx19R9QMxB)bJn2w)M6OHvnV2Y6fOVv96Ezv72yDCiuFTD4a6dYHEm0x7vHF9Iw96QXV2oCaTQTWZ9bRWEn(JOBH9A8hr3V5(Gvy7XutH9A8hr3pNDzRWt31KRPWnOsf25mh83F8OWGSqCzx84kOR32Q5wOp2QcpMMMDcNOAWDHOvx2sivyVg)r0fY00u43gL30fvcGtaddddQnnOkgzKXe8F6E8u(45nZPo7pBz)j(h(vcmLmbeqabeqabeqabeqabeqabeqabeuyeVPlQ8lOc)2vDFNfuH9A8hr3cJ9qnt57uCea)kbeqabeqabeqqHLf)8A8hr3sixtnfw14cH2xSWq9Rl7QPWp1LDc7w7kSWGSqudAl8kOR32Q5wORPk

原作者:Feat Screenshotter

如何隐藏动作条上的文本/快捷键

消息源:Hiding macro text & hotkeys

插件版本,同时隐藏 HotKey(快捷键)和 Name(宏名称):

local noop = function() end
hooksecurefunc("ActionButton_Update", function(btn)
    local hotkey = _G[btn:GetName().."HotKey"]
    hotkey:SetText("")
    hotkey.Show = noop
    hotkey:Hide()
end)

hooksecurefunc("ActionButton_Update", function(btn)
    local name = _G[btn:GetName().."Name"]
    name:Hide()
end)

下面有人提供了宏的版本,只隐藏快捷键,方法更简单,把 alpha 值改为 0 即可:

/run for i=1,12 do _G["ActionButton"..i.."HotKey"]:SetAlpha(0)end

不过上述都只隐藏主动作条,我来优化一下,隐藏所有动作条的快捷键:

/run local r={"MultiBarBottomLeft", "MultiBarBottomRight", "Action", "MultiBarLeft", "MultiBarRight"} for b=1,#r do for i=1,12 do _G[r[b].."Button"..i.."HotKey"]:SetAlpha(0) end end

隐藏所有动作条的宏名称:

/run local r={"MultiBarBottomLeft", "MultiBarBottomRight", "Action", "MultiBarLeft", "MultiBarRight"} for b=1,#r do for i=1,12 do _G[r[b].."Button"..i.."Name"]:SetAlpha(0) end end

如何编写多语言宏

多语言宏可以做到切换不同语言客户端后,无需修改宏语言做到无缝切换,也可以节省角色宏的槽位

双语言例子:

#showtooltip
/施放 冰封之韧
/施放 灵界打击
/use Icebound Fortitude
/use Death Strike
#showtooltip 
/施放 [nomod,btn:1] 炼金术;[nomod,btn:2] 工程学 
/施放 [mod:shift,btn:1] 烹饪;[mod:shift,btn:2] 烹饪用火
/use [nomod,btn:1]Alchemy;[nomod,btn:2]Engineering 
/use [mod:shift,btn:1]Cooking;[mod:shift,btn:2]Cooking Fire

要点与技巧:

  • 非英文技能必须使用本地化命令,这样可以让英文客户端直接忽略该行命令
  • 英文命令永远排在最后
  • 要显示图标的技能永远放在当前语言的第一位
  • 英文命令中 /cast 可以用 /use 代替,节省字节

下面是多语言例子:

#showtooltip
/施放 冰封之韧
/施放 灵界打击
/lanzar Entereza ligada al hielo
/lanzar Golpe letal
/use Icebound Fortitude
/use Death Strike

下面是动态技能宏(同等级天赋技能判断宏)的多语言例子:

#showtooltip
/施放 白骨风暴
/施放 血之镜像
/use Bonestorm
/use Blood Mirror
/run local G=GetSpellInfo SetMacroSpell("DK-BS", G" 白骨风暴" or G" 血之镜像" or G"Bonestorm" or G"Blood Mirror")

一键删除所有通用宏/角色专用宏

删除所有通用宏:

/script for i=1,120 do DeleteMacro(i) end

删除所有角色专用宏:

/script for i=121,138 do DeleteMacro(i) end

删除所有宏(通用+角色专用)

/script for i=1,138 do DeleteMacro(i) end