欢迎点击只看楼主。
首先,用mpq工具打开war3.mpq,在units文件夹下找到CommandStrings.txt,以及CommandFunc.txt,右键分别“解压为”,这样就导出来了。

导出来的目的是为了修改这两个txt文件。修改后的文本如下,如果没有mpq工具,就直接新建txt,复制下面的东西,保存为对应的名字即可。
CommandFunc.txt——
[CmdMove]
Art=CommandMove
Buttonpos=3,0
[CmdAttack]
Art=CommandAttack
Buttonpos=3,0
[CmdAttackGround]
Art=CommandAttackGround
Buttonpos=3,1
[CmdBuild]
Art=CommandBasicStruct
Buttonpos=0,2
[CmdBuildHuman]
Art=CommandBasicStructHuman
Buttonpos=0,2
[CmdBuildOrc]
Art=CommandBasicStructOrc
Buttonpos=0,2
[CmdBuildNightElf]
Art=CommandBasicStructNightElf
Buttonpos=0,2
[CmdBuildUndead]
Art=CommandBasicStructUndead
Buttonpos=0,2
[CmdCancel]
Art=CommandCancel
ButtonPos=3,2
[CmdCancelBuild]
Art=CommandCancel
ButtonPos=3,2
[CmdCancelTrain]
Art=CommandCancel
ButtonPos=3,2
[CmdCancelRevive]
Art=CommandCancel
ButtonPos=3,2
[CmdHoldPos]
Art=CommandHoldPosition
Buttonpos=2,0
[CmdPatrol]
Art=CommandPatrol
Buttonpos=0,0
[CmdPurchase]
Art=CommandPurchase
Buttonpos=0,0
[CmdRally]
Art=CommandRally
Buttonpos=3,1
PlacementModel=UI\Feedback\RallyPoint\RallyPoint.mdl
[CmdSelectSkill]
Art=CommandNewSkill
Buttonpos=3,1
[CmdStop]
Art=CommandStop
Buttonpos=1,0
//[CmdUnivAgi]
//Art=
//Buttonpos=2,0
//[CmdUnivInt]
//Art=
//Buttonpos=1,0
//[CmdUnivStr]
//Art=
//Buttonpos=0,0