Thread Tools Display Modes
Prev Previous Post   Next Post Next
10/28/22, 05:22 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,017
Originally Posted by wookiefriseur View Post
Oh, yeah..looks like the Binding.xml expects a variable to generate the string, instead of writing the text directly into it.
Yep, ESO forces you to use Multi language support here, which is the correct way imo ;-)

https://wiki.esoui.com/Key_bindings
Code:
<Bindings>
   <Layer name="SI_MY_ADDON_LAYER">
      <Category name="SI_MAIN_FUNCTIONS">
         <Action name="TURN_RIGHT">
            <Down>TurnRightStart()</Down>
            <Up>TurnRightStop()</Up>
         </Action>
      </Category>
   </Layer>
</Bindings>
Layers and categories use the same names internally and on the UI; the game will pass the names through GetString to display them. Actions will have the string SI_BINDING_NAME_ prepended to their names, and the results will be passed through GetString for display (i.e. our example above would be GetString(SI_BINDING_NAME_TURN_RIGHT) which needs to be defined in your addon as string constant
https://wiki.esoui.com/How_to_add_lo...eating_strings
).

Last edited by Baertram : 10/28/22 at 05:25 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Adding a Keybind for My Addon


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