Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/15/14, 12:56 PM   #1
Artajörn
Join Date: Apr 2014
Posts: 19
Exclamation My key binding doesn't work.

Hi,

I'm trying to implement a key binding system in my add-on, but it doesn't work. This is the code I have:

Bindings.xml
Code:
<Bindings>
	<Layer name="Improved">
		<Category>
			<Action name="ITESO_TOGGLE_DISPLAY_MENU_WINDOW">
				<Down>ITESO.ToggleDisplayMenuWindow()</Down>
			</Action>
			<Action name="ITESO_TOGGLE_DISPLAY_HELM">
				<Down>ITESO.ToggleDisplayHelm()</Down>
			</Action>
		</Category>
	</Layer>
</Bindings>
Bindings.lua
Code:
ZO_CreateStringId("SI_BINDING_NAME_ITESO_TOGGLE_DISPLAY_MENU_WINDOW", "Toggle Display Menu Window")
ZO_CreateStringId("SI_BINDING_NAME_ITESO_TOGGLE_DISPLAY_HELM", "Toggle Display Helm")
I hope you can help me.

Regards and thanks in advance.

Last edited by Artajörn : 04/15/14 at 01:04 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » My key binding doesn't work.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off