Key Binding Problem
Hello all, sorry my english.
I'm now testing key bindings, and I readed a lot of them in the forums and in the wiki. I followed all the tutorials I found, and readed a lot of posts about them, but I can't make my key binding to work. I can select the key I want in the controls>key binding menu, but when I press the key I get this error: Code:
:1: function expected instead of nil Code:
<Bindings> bindings.lua Code:
ZO_CreateStringId("SI_BINDING_NAME_TOGGLE_TEST", "Toggle Test") And my addon lua Code:
BindingTest= {} |
You're trying to reference a function called OnKeyDown() but your function is named BindingTest.OnKeyDown()
Try xml Code:
|
You are right. Thank you!! It worked : D
Like always, I get simple errors that I don't see xD |
FYI:
They way you have the bindings file won't work if the player is in French or German language mode. ZOS is using the name attributes of the bindings XML to build the game menu for key binding settings. The layer name must become "General" in the language of the player. English -- German -- French "General" = "Allgemein" = "Général" There are localization string variables. The "SI_" table is global for internationalized strings. The one for the layer is called SI_KEYBINDINGS_LAYER_GENERAL. Your bindings file should end up looking something like this: Code:
<Bindings> |
Hmm... You are right, Halja. Thanks for your help ^^
|
All times are GMT -6. The time now is 09:41 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI