找回密码
 点一下
查看: 660|回复: 10

额如何让容器内的物品响应快捷键呢?

[复制链接]
发表于 2013-2-27 21:38:24 | 显示全部楼层 |阅读模式
我创建了一个英雄,装备了一个“wow角色”物品容器,然后将一个技能物品“灵能风暴”(快捷键T)装入了容器中“头部”的位置。
但是当我按下T的时候,无法响应出技能释放,怎么解决呢?
发表于 2013-2-27 21:43:03 | 显示全部楼层
重载物品栏格子,然后在里面加入一行 <Shortcut val="xxxxx"/>

只能针对格子来设定,没法针对物品本身。

点评

了解,能达到预期效果,多谢头目!  详情 回复 发表于 2013-2-27 21:46
回复

使用道具 举报

 楼主| 发表于 2013-2-27 21:46:20 | 显示全部楼层
麦德三世 发表于 2013-2-27 21:43
重载物品栏格子,然后在里面加入一行

只能针对格子来设定,没法针对物品本身。

了解,能达到预期效果,多谢头目!
回复

使用道具 举报

发表于 2013-2-27 21:46:40 | 显示全部楼层
对了。2.0.4可以动态修改对话框控件的快捷键来着。

你找一下相关动作。

另外可以用这个法子把格子映射成对话框控件

http://bbs.islga.org/read-htm-tid-1038317-page-1-fpage-1.html

点评

这个好,可以完美模拟了。  详情 回复 发表于 2013-2-28 08:47
试了一下,似乎快捷键只能选择预设的“闲置工人”“部队选择”这种,自定的话会报错  详情 回复 发表于 2013-2-27 23:57
回复

使用道具 举报

 楼主| 发表于 2013-2-27 23:57:35 | 显示全部楼层
麦德三世 发表于 2013-2-27 21:46
对了。2.0.4可以动态修改对话框控件的快捷键来着。

你找一下相关动作。

试了一下,似乎快捷键只能选择预设的“闲置工人”“部队选择”这种,自定的话会报错
回复

使用道具 举报

发表于 2013-2-28 00:30:50 | 显示全部楼层
自定的话用UI重载就好。像我沙发说的那样子。

点评

试过重载,在Slot58中加入了 似乎也没有效果呢……  详情 回复 发表于 2013-2-28 00:34
回复

使用道具 举报

 楼主| 发表于 2013-2-28 00:34:23 | 显示全部楼层
麦德三世 发表于 2013-2-28 00:30
自定的话用UI重载就好。像我沙发说的那样子。

试过重载,在Slot58中加入了<Shortcut val="T"/>

似乎也没有效果呢……
回复

使用道具 举报

发表于 2013-2-28 00:38:22 | 显示全部楼层
嗯嗯?你发来我看看你有没有写错。
回复

使用道具 举报

 楼主| 发表于 2013-2-28 01:10:39 | 显示全部楼层
头目看下吧……最近UI什么的都搞不好。。

Battlemaster_Bloodstorm.zip

14.68 MB, 阅读权限: 1, 下载次数: 15

回复

使用道具 举报

发表于 2013-2-28 01:34:14 | 显示全部楼层
客户端不小心弄坏了……


不过,目前其实动态修改快捷键能选的不只这几个。可以从下面这263个值里选的。


const int c_hotkeyFPS = 0;
const int c_hotkeyMusic = 1;
const int c_hotkeySound = 2;
const int c_hotkeyPTT = 3;
const int c_hotkeyChatAll = 4;
const int c_hotkeyChatAllies = 5;
const int c_hotkeyChatCancel = 6;
const int c_hotkeyChatDefault = 7;
const int c_hotkeyChatIndividual = 8;
const int c_hotkeyChatRecipient = 9;
const int c_hotkeyChatSend = 10;
const int c_hotkeyDialogDismiss = 11;
const int c_hotkeyMenuAchievements = 12;
const int c_hotkeyMenuGame = 13;
const int c_hotkeyMenuMessages = 14;
const int c_hotkeyMenuHelp = 15;
const int c_hotkeyMenuSocial = 16;
const int c_hotkeyLeaderNone = 17;
const int c_hotkeyLeaderResources = 18;
const int c_hotkeyLeaderIncome = 19;
const int c_hotkeyLeaderSpending = 20;
const int c_hotkeyLeaderUnits = 21;
const int c_hotkeyLeaderStructures = 22;
const int c_hotkeyLeaderUnitsLost = 23;
const int c_hotkeyLeaderProduction = 24;
const int c_hotkeyLeaderUpgrades = 25;
const int c_hotkeyLeaderArmy = 26;
const int c_hotkeyLeaderAPM = 27;
const int c_hotkeyLeaderCPM = 28;
const int c_hotkeyObserveAllPlayers = 29;
const int c_hotkeyObserveAutoCamera = 30;
const int c_hotkeyObserveClearSelection = 31;
const int c_hotkeyObserveCommentator = 32;
const int c_hotkeyObservePlayer0 = 33;
const int c_hotkeyObservePlayer1 = 34;
const int c_hotkeyObservePlayer2 = 35;
const int c_hotkeyObservePlayer3 = 36;
const int c_hotkeyObservePlayer4 = 37;
const int c_hotkeyObservePlayer5 = 38;
const int c_hotkeyObservePlayer6 = 39;
const int c_hotkeyObservePlayer7 = 40;
const int c_hotkeyObservePlayer8 = 41;
const int c_hotkeyObservePlayer9 = 42;
const int c_hotkeyObservePlayer10 = 43;
const int c_hotkeyObservePlayer11 = 44;
const int c_hotkeyObservePlayer12 = 45;
const int c_hotkeyObservePlayer13 = 46;
const int c_hotkeyObservePlayer14 = 47;
const int c_hotkeyObservePlayer15 = 48;
const int c_hotkeyObservePreview = 49;
const int c_hotkeyObserveSelected = 50;
const int c_hotkeyObserveStatusBars = 51;
const int c_hotkeyNamePanel = 52;
const int c_hotkeyStatPanelResources = 53;
const int c_hotkeyStatPanelArmySupply = 54;
const int c_hotkeyStatPanelUnitsLost = 55;
const int c_hotkeyStatPanelAPM = 56;
const int c_hotkeyStatPanelCPM = 57;
const int c_hotkeyToggleVersusModeSides = 58;
const int c_hotkeyToggleWorldPanel = 59;
const int c_hotkeyConversationSkipOne = 60;
const int c_hotkeyCinematicSkip = 61;
const int c_hotkeyAICommunication = 62;
const int c_hotkeyAIArmy = 63;
const int c_hotkeyAIScout = 64;
const int c_hotkeyAIDetect = 65;
const int c_hotkeyAIExpand = 66;
const int c_hotkeyAIBuild = 67;
const int c_hotkeyAIClearAll = 68;
const int c_hotkeyAIDelete = 69;
const int c_hotkeyAIExit = 70;
const int c_hotkeyAICancel = 71;
const int c_hotkeyAlertRecall = 72;
const int c_hotkeyArmySelect = 73;
const int c_hotkeyCameraCenter = 74;
const int c_hotkeyCameraFollow = 75;
const int c_hotkeyCameraMoveUp = 76;
const int c_hotkeyCameraMoveDown = 77;
const int c_hotkeyCameraMoveLeft = 78;
const int c_hotkeyCameraMoveRight = 79;
const int c_hotkeyCameraTurnLeft = 80;
const int c_hotkeyCameraTurnRight = 81;
const int c_hotkeyCameraZoomFirst = 82;
const int c_hotkeyCameraZoomLast = 83;
const int c_hotkeyCameraZoomNext = 84;
const int c_hotkeyCameraZoomPrev = 85;
const int c_hotkeyCameraPush = 86;
const int c_hotkeyControlGroupAppend0 = 87;
const int c_hotkeyControlGroupAppend1 = 88;
const int c_hotkeyControlGroupAppend2 = 89;
const int c_hotkeyControlGroupAppend3 = 90;
const int c_hotkeyControlGroupAppend4 = 91;
const int c_hotkeyControlGroupAppend5 = 92;
const int c_hotkeyControlGroupAppend6 = 93;
const int c_hotkeyControlGroupAppend7 = 94;
const int c_hotkeyControlGroupAppend8 = 95;
const int c_hotkeyControlGroupAppend9 = 96;
const int c_hotkeyControlGroupAssign0 = 97;
const int c_hotkeyControlGroupAssign1 = 98;
const int c_hotkeyControlGroupAssign2 = 99;
const int c_hotkeyControlGroupAssign3 = 100;
const int c_hotkeyControlGroupAssign4 = 101;
const int c_hotkeyControlGroupAssign5 = 102;
const int c_hotkeyControlGroupAssign6 = 103;
const int c_hotkeyControlGroupAssign7 = 104;
const int c_hotkeyControlGroupAssign8 = 105;
const int c_hotkeyControlGroupAssign9 = 106;
const int c_hotkeyControlGroupRecall0 = 107;
const int c_hotkeyControlGroupRecall1 = 108;
const int c_hotkeyControlGroupRecall2 = 109;
const int c_hotkeyControlGroupRecall3 = 110;
const int c_hotkeyControlGroupRecall4 = 111;
const int c_hotkeyControlGroupRecall5 = 112;
const int c_hotkeyControlGroupRecall6 = 113;
const int c_hotkeyControlGroupRecall7 = 114;
const int c_hotkeyControlGroupRecall8 = 115;
const int c_hotkeyControlGroupRecall9 = 116;
const int c_hotkeyGameSpeedDec = 117;
const int c_hotkeyGameSpeedInc = 118;
const int c_hotkeyGameTooltipsOn = 119;
const int c_hotkeyHeroSelect0 = 120;
const int c_hotkeyHeroSelect1 = 121;
const int c_hotkeyHeroSelect2 = 122;
const int c_hotkeyHeroSelect3 = 123;
const int c_hotkeyHeroSelect4 = 124;
const int c_hotkeyHeroSelect5 = 125;
const int c_hotkeyHeroSelect6 = 126;
const int c_hotkeyHeroSelect7 = 127;
const int c_hotkeyIdleWorker = 128;
const int c_hotkeyInventoryButtonAlt0 = 129;
const int c_hotkeyInventoryButtonAlt1 = 130;
const int c_hotkeyInventoryButtonAlt2 = 131;
const int c_hotkeyInventoryButtonAlt3 = 132;
const int c_hotkeyInventoryButtonAlt4 = 133;
const int c_hotkeyInventoryButtonAlt5 = 134;
const int c_hotkeyInventoryButtonAlt6 = 135;
const int c_hotkeyInventoryButtonAlt7 = 136;
const int c_hotkeyInventoryButtonUseSelf0 = 137;
const int c_hotkeyInventoryButtonUseSelf1 = 138;
const int c_hotkeyInventoryButtonUseSelf2 = 139;
const int c_hotkeyInventoryButtonUseSelf3 = 140;
const int c_hotkeyInventoryButtonUseSelf4 = 141;
const int c_hotkeyInventoryButtonUseSelf5 = 142;
const int c_hotkeyInventoryButtonUseSelf6 = 143;
const int c_hotkeyInventoryButtonUseSelf7 = 144;
const int c_hotkeyInventoryButtonUse0 = 145;
const int c_hotkeyInventoryButtonUse1 = 146;
const int c_hotkeyInventoryButtonUse2 = 147;
const int c_hotkeyInventoryButtonUse3 = 148;
const int c_hotkeyInventoryButtonUse4 = 149;
const int c_hotkeyInventoryButtonUse5 = 150;
const int c_hotkeyInventoryButtonUse6 = 151;
const int c_hotkeyInventoryButtonUse7 = 152;
const int c_hotkeyMinimapColors = 153;
const int c_hotkeyMinimapPing = 154;
const int c_hotkeyMinimapTargetingView = 155;
const int c_hotkeyMinimapNormalView = 156;
const int c_hotkeyMinimapTerrain = 157;
const int c_hotkeyPauseGame = 158;
const int c_hotkeyPing = 159;
const int c_hotkeyQuickPing = 160;
const int c_hotkeyQuickSave = 161;
const int c_hotkeyReplayPlayPause = 162;
const int c_hotkeyReplayRestart = 163;
const int c_hotkeyReplaySkipBack = 164;
const int c_hotkeyReplaySkipNext = 165;
const int c_hotkeyReplaySpeedDec = 166;
const int c_hotkeyReplaySpeedInc = 167;
const int c_hotkeyReplayStop = 168;
const int c_hotkeyReplayHide = 169;
const int c_hotkeyScreenshot = 170;
const int c_hotkeySelectionCancelDrag = 171;
const int c_hotkeySelection = 172;
const int c_hotkeySmartCommand = 173;
const int c_hotkeyStatusAll = 174;
const int c_hotkeyStatusOwner = 175;
const int c_hotkeyStatusAlly = 176;
const int c_hotkeyStatusEnemy = 177;
const int c_hotkeySubgroupNext = 178;
const int c_hotkeySubgroupPrev = 179;
const int c_hotkeyTargetCancel = 180;
const int c_hotkeyTargetChoose = 181;
const int c_hotkeyTeamResources = 182;
const int c_hotkeyTownCamera = 183;
const int c_hotkeyVideoRecord = 184;
const int c_hotkeyWarpIn = 185;
const int c_hotkeyCommandButtonSelf00 = 186;
const int c_hotkeyCommandButtonSelf01 = 187;
const int c_hotkeyCommandButtonSelf02 = 188;
const int c_hotkeyCommandButtonSelf03 = 189;
const int c_hotkeyCommandButtonSelf04 = 190;
const int c_hotkeyCommandButtonSelf05 = 191;
const int c_hotkeyCommandButtonSelf06 = 192;
const int c_hotkeyCommandButtonSelf07 = 193;
const int c_hotkeyCommandButtonSelf08 = 194;
const int c_hotkeyCommandButtonSelf09 = 195;
const int c_hotkeyCommandButtonSelf10 = 196;
const int c_hotkeyCommandButtonSelf11 = 197;
const int c_hotkeyCommandButtonSelf12 = 198;
const int c_hotkeyCommandButtonSelf13 = 199;
const int c_hotkeyCommandButtonSelf14 = 200;
const int c_hotkeyCommandButton00 = 201;
const int c_hotkeyCommandButton01 = 202;
const int c_hotkeyCommandButton02 = 203;
const int c_hotkeyCommandButton03 = 204;
const int c_hotkeyCommandButton04 = 205;
const int c_hotkeyCommandButton05 = 206;
const int c_hotkeyCommandButton06 = 207;
const int c_hotkeyCommandButton07 = 208;
const int c_hotkeyCommandButton08 = 209;
const int c_hotkeyCommandButton09 = 210;
const int c_hotkeyCommandButton10 = 211;
const int c_hotkeyCommandButton11 = 212;
const int c_hotkeyCommandButton12 = 213;
const int c_hotkeyCommandButton13 = 214;
const int c_hotkeyCommandButton14 = 215;
const int c_hotkeyCameraSave0 = 216;
const int c_hotkeyCameraSave1 = 217;
const int c_hotkeyCameraSave2 = 218;
const int c_hotkeyCameraSave3 = 219;
const int c_hotkeyCameraSave4 = 220;
const int c_hotkeyCameraSave5 = 221;
const int c_hotkeyCameraSave6 = 222;
const int c_hotkeyCameraSave7 = 223;
const int c_hotkeyCameraView0 = 224;
const int c_hotkeyCameraView1 = 225;
const int c_hotkeyCameraView2 = 226;
const int c_hotkeyCameraView3 = 227;
const int c_hotkeyCameraView4 = 228;
const int c_hotkeyCameraView5 = 229;
const int c_hotkeyCameraView6 = 230;
const int c_hotkeyCameraView7 = 231;
const int c_hotkeyUIEditorToggle = 232;
const int c_hotkeyUIEditorReload = 233;
const int c_hotkeyUIEditorSaveSelected = 234;
const int c_hotkeyUIEditorSaveAll = 235;
const int c_hotkeyUIEditorUndo = 236;
const int c_hotkeyUIEditorRedo = 237;
const int c_hotkeyUIEditorDeselect = 238;
const int c_hotkeyUIEditorShowInfoTooltip = 239;
const int c_hotkeyUIEditorToggleVisible = 240;
const int c_hotkeyUIEditorHoverControls = 241;
const int c_hotkeyUIEditorLockInfoTooltip = 242;
const int c_hotkeyUIEditorOutlineAnchors = 243;
const int c_hotkeyUIEditorIncreaseGridSpacing = 244;
const int c_hotkeyUIEditorDecreaseGridSpacing = 245;
const int c_hotkeyUIEditorSize720x406 = 246;
const int c_hotkeyUIEditorSize800x600 = 247;
const int c_hotkeyUIEditorSize1024x768 = 248;
const int c_hotkeyUIEditorSize1280x1024 = 249;
const int c_hotkeyUIEditorSize1280x960 = 250;
const int c_hotkeyUIEditorSize1280x720 = 251;
const int c_hotkeyUIEditorSize1680x1050 = 252;
const int c_hotkeyUIEditorSize1400x1050 = 253;
const int c_hotkeyUIEditorSize1920x1200 = 254;
const int c_hotkeyUIEditorSize1920x1080 = 255;
const int c_hotkeyUIEditorSize1600x1200 = 256;
const int c_hotkeyUIEditorSize2048x1536 = 257;
const int c_hotkeyUIEditorSize2560x1600 = 258;
const int c_hotkeyUIEditorSize2560x2048 = 259;
const int c_hotkeyUIEditorSize4096x2560 = 260;
const int c_hotkeyUIEditorSize4096x2304 = 261;
const int c_hotkeyUIEditorSize4096x3072 = 262;
回复

使用道具 举报

发表于 2013-2-28 08:47:17 | 显示全部楼层
麦德三世 发表于 2013-2-27 21:46
对了。2.0.4可以动态修改对话框控件的快捷键来着。

你找一下相关动作。

这个好,可以完美模拟了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-9-28 00:09 , Processed in 0.271261 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表