EtG Modding Guide
Search…
⌃K

Binding API

BindingAPI Overview and how its used

Overview

This API is used to create custom bindings that show up in the options menu, and custom actions for those bindings.

How It's Used

The first thing you need to do is within your module is type in BindingBuilder.Init("examplebinding");
replace the string that's passed as an argument with something related to your mod. What this init does is creates a JSON in a folder BindingAPI has in the format "bindings_{the string you passed}.json". This JSON contains all the saved keys for your bindings.
After that's been done you can create any of your bindings, check out the subpages for more information on that.