Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You can add a new key to the game with the following function:
`[SECTION]` can be any of the available sections, or a new one! This will add the key to the appropriate section on the Keybind Options Tab.
At this point, even if you have already added the key another way, you would typically add a function to an Event to handle your key as well. Instead, we're going to add our key this way:
You ONLY need to add the events that you intend to support!
You can do this in all one go, too!
If you are ADDING a new key bind, it MUST be done during or before `OnGameBoot` to ensure that the game receives this!
NOTE: If a user has the Keyboard Optimize disabled, then your keys will be added as normal events. You will need to plan for this in your function, by first checking the key pressed.
A full example:
Mouse Button Events are still be developed, in that I am trying to make it easier to handle when a Mouse Button is not available.
For now, you have access to the following variable to tell you how many Mouse Buttons are enabled:
Mouse Events work similarly to key bind events.
Events:
An example:
I also would like to add support for detecting when these Mouse Buttons are clicked on a UI, but it seems the base game only performs these checks on the main Mouse Buttons. So, stay tuned!
The Modifier Key (or: Modkey) allows for different actions to be done depending on if a player is holding this key. The state of this key can be gotten easily:
If you would like to include controllers, then use the following:
`player` must be an `IsoPlayer`.
This will return if the player is using the Modkey OR holding the Left Bumper (L1) on a controller. I recommend this version for full support.
The state of the Modifier is fully synced in Multiplayer and is available in the player's ModData:
`player` must be an `IsoPlayer`.
This is also synced in Singleplayer, so you can rely on this method to retrieve the state of the Modifier as well.
If you are having any issues with incorporating support for BindAid into your mod, post here and I'll see if I can help you out.
Other posts will be ignored and deleted; please communicate in the appropriate channels.