0 of 0

File information

Last updated

Original upload

Created by

shazdeh2

Uploaded by

shazdeh2

Virus scan

Safe to use

Tags for this mod

About this mod

This is a utility for mod authors, to show keybindings for contextual actions in the HUD.

Requirements
Permissions and credits
Changelogs
This is a tool for modders, to allow displaying keybindings in the HUD.


Compatibility
This mod does not touch any vanilla records, should be compatible with everything, including mods that change HUD or interface skin mod.


How to use
Get a reference to SkyInteract Quest by adding it as a property in your script or by calling SkyInteract_Util.GetSkyInteract(), then you can use it to add/remove keybinding display in HUD:

SkyInteract myBinding = SkyInteract_Util.GetSkyInteract()
myBinding.Add("myUniqueID", "Label of the action", Int aiKeyCode1, Int aiKeyCode2, Int aiKeyCode3, Int aiKeyCode4)
Utility.Wait(3)
myBinding.Remove("myUniqueID") ; now hide it

The first parameter is a unique ID, which you need if later on you want to hide the thing from HUD, next is the string label which supports scaleform translation, next four parameters are the keycodes you want to show (you'll likely use just one/two). You can use Input.GetMappedKey() to get the keycode for a given Control.