-
Notifications
You must be signed in to change notification settings - Fork 0
/
bindings.xml
188 lines (186 loc) · 9.52 KB
/
bindings.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<Bindings>
<Layer name="ItemTrigBlockMostKeys">
<!--
Used to prevent the player from accidentally closing the TrigEdit
windows should they press a key that's bound to open another menu,
e.g. the inventory or map. We simply block those keys from perform-
ing their normal actions.
This is based on ZOS's "SceneChangeInterceptLayer" action layer,
with some modifications.
-->
<Category>
<Action name="ITEMTRIG_INTERCEPT_UI_SHORTCUT_EXIT" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_EXIT">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_UI_SHORTCUT_NEGATIVE" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_NEGATIVE">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_SYSTEM" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_SYSTEM">
<Down>
if ItemTrig.prefs:get("ui/allowEscForceClose") == false then
return true
end
return false
</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_GAME_CAMERA_UI_MODE" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_GAME_CAMERA_UI_MODE">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_MARKET" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_MARKET">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_INVENTORY" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_INVENTORY">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_CHARACTER" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_CHARACTER">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_SKILLS" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_SKILLS">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_CHAMPION" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_CHAMPION">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_JOURNAL" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_JOURNAL">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_COLLECTIONS_BOOK" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_COLLECTIONS_BOOK">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_MAP" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_MAP">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_GROUP" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_GROUP">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_CONTACTS" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_CONTACTS">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_GUILDS" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_GUILDS">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_ALLIANCE_WAR" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_ALLIANCE_WAR">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_MAIL" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_MAIL">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_NOTIFICATIONS" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_NOTIFICATIONS">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_ACTIVITY_FINDER" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_ACTIVITY_FINDER">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_CROWN_CRATES" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_CROWN_CRATES">
<Down>return true</Down>
</Action>
<Action name="ITEMTRIG_INTERCEPT_TOGGLE_HELP" hideAction="true" rebindable="false" inheritsBindFrom="TOGGLE_HELP">
<Down>return true</Down>
</Action>
</Category>
</Layer>
<Layer name="ItemTrigGamepadKeynav">
<!--
This action layer is used by a system that allows a gamepad user to
navigate through a window's controls. As of this writing, that sys-
tem is only employed in a single test menu (where it works well!),
but I may expand it to the main TrigEdit UI in the future.
It's worth noting that joystick input doesn't appear to route
through here (aside from stick clicks); that's handled by an
update registration on the Lua end of things.
-->
<Category>
<!-- These appear to be keyboard arrow keys, actually.
<Action name="ITEMTRIG_KEYNAV_LEFT" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_INPUT_LEFT">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_RIGHT" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_INPUT_RIGHT">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_UP" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_INPUT_UP">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_DOWN" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_INPUT_DOWN">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>-->
<Action name="ITEMTRIG_KEYNAV_PRIMARY" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_PRIMARY">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_SECONDARY" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_SECONDARY">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_TERTIARY" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_TERTIARY">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_QUATERNARY" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_QUATERNARY">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_NEGATIVE" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_NEGATIVE">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_LEFT_SHOULDER" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_LEFT_SHOULDER">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_RIGHT_SHOULDER" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_RIGHT_SHOULDER">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_LEFT_TRIGGER" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_LEFT_TRIGGER">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_RIGHT_TRIGGER" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_RIGHT_TRIGGER">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_LEFT_STICK" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_LEFT_STICK">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
<Action name="ITEMTRIG_KEYNAV_RIGHT_STICK" hideAction="true" rebindable="false" inheritsBindFrom="UI_SHORTCUT_RIGHT_STICK">
<Down>
ItemTrig.GamepadKeynavManager:dispatchKey(keybind)
return true
</Down>
</Action>
</Category>
</Layer>
</Bindings>