按钮 是shift+leftbutton的如何写binding文件
谁知道 如何设置按键帮顶的 代码啊 我的主按钮是左键顶级奉献 shift+左键是1级的 就是这个不知道怎么设置 试了好几中写法 都不对...因为我改了hordr's holyhope 想给这个+个按件帮顶
[url=http://bbs.game.mop.com/index.html?url=http://bbs.game.mop.com/viewthread.php?tid=1707236&extra=page=1&&ticket=ST-157151-BLwBpHpGNGDaYeHYUODyPqQtNxkR3cCI2Kv-20]http://bbs.game.mop.com/index.html?url=http://bbs.game.mop.com/viewthread.php?tid=1707236&extra=page=1&&ticket=ST-157151-BLwBpHpGNGDaYeHYUODyPqQtNxkR3cCI2Kv-20[/url] 以前写的一些test case
Header = CreateFrame("Frame", "TestHeaderFrame", UIParent, "SecureStateHeaderTemplate")
function Test.Case1()
local testbutton = CreateFrame("CheckButton", "Testbutton1", UIParent, "SecureActionButtonTemplate")
testbutton:SetAttribute("type", "spell")
testbutton:SetAttribute("spell-main", "恢复")
testbutton:SetAttribute("spell-sub", "快速治疗")
testbutton:SetAttribute("unit", "player")
testbutton:SetAttribute("statebutton", "1:main;2:sub")
testbutton:SetAttribute("state", "1")
testbutton:SetAttribute("newstate", "1-2")
testbutton:SetHeight(30)
testbutton:SetWidth(30)
testbutton:SetPoint("CENTER")
testbutton:SetNormalTexture("Interface\\Buttons\\UI-PlusButton-Up")
testbutton:SetPushedTexture("Interface\\Buttons\\UI-PlusButton-Down")
testbutton:SetHighlightTexture("Interface\\Buttons\\UI-PlusButton-Hilight")
SetOverrideBindingClick(testbutton, false, "]", testbutton:GetName())
Header:SetAttribute("addchild", testbutton)
end
可以参考我的ShortKey代码. SetOverrideBindingClick(owner, isPriority, "KEY", "buttonName"[, "mouseButton"])
"buttonName" "mouseButton"分别说什么的呢看不懂文档
还有我的问题不是你这个例子的,我哪个按钮是有3个技能的分别对应鼠标左键右键 shift+左键 ctrl+鼠标是state切换的 现在我想把shift+左键给设置个热键,但不会写,下面的HHH_OTHER_SPELLS.Name[1]="奉献
"
_G["BINDING_NAME_CLICK aAnchorButtonbg:LeftButton"] = HHH_OTHER_SPELLS.Name[1];
_G["BINDING_NAME_CLICK aAnchorButtonbg:RightButton"] = HHH_ITEM.Hearthstone;
------_G["BINDING_NAME_CLICK aAnchorButtonbg:shiftLeftButton"] = HHH_OTHER_SPELLS.Name[1].."("..HH_text.Rank.." 1)";
就是这里不对,--CLICK aAnchorButtonbg:shiftLeftButton-- 嗯可以说说怎么实现鼠标移动到按钮上面就弹出子按钮吗,我看了autobar和popins的 实在看不明白,论坛的2.0api文档那里说的台简单 了, 一定要继承SecureEnterButtonTemplate? 能具体实现个例子吗
页:
[1]