Skip to content

H7KeybindManager

Class in MMH7Game · MMH7Game.H7KeybindManager · native

Object › H7KeybindManager

Using it from Lua
h7.find_all("H7KeybindManager")            -- live instances
h7.find_class("MMH7Game.H7KeybindManager")   -- the class
h7.hook("MMH7Game.H7KeybindManager.AddKeybindToManager", fn)

Enums

EKeybindCategory

KC_GENERAL = 0, KC_ADVENTURE = 1, KC_COMBAT = 2, KC_TOWN = 3, KC_CAMERA = 4, KC_MOVEMENT = 5, KC_CHEATS = 6, KC_WINDOW_UNDEFINED = 7, KC_WINDOW_GAME_MENU = 8, KC_WINDOW_REQUEST = 9, KC_WINDOW_DIALOG = 10, KC_WINDOW_COMBAT = 11, KC_WINDOW_BUILDING = 12, KC_WINDOW_WEEKLY = 13, KC_WINDOW_LOADSAVE = 14, KC_WINDOW_QUESTCOMPLETE = 15, KC_MAX = 16

Structs

H7Keybind

FieldType
KeyBindinit
KeyBindinit
H7KeybindManagerinit
delegateinit
intinit
Defaults
KeyBind=(Name="None",Command="",Control=false,Shift=false,Alt=false,bIgnoreCtrl=false,bIgnoreShift=false,bIgnoreAlt=false)
secondaryKeybind=(Name="None",Command="",Control=false,Shift=false,Alt=false,bIgnoreCtrl=false,bIgnoreShift=false,bIgnoreAlt=false)
Category=EKeybindCategory.KC_GENERAL
keybindFunction=None
Dummy=0

Properties

NameTypeNotes
mKeybindListarray<H7Keybind>transient, protected
mPopupKeybindingsH7PopupKeybindingstransient, protected

Functions

NameDeclaration
AddKeybindToManagernative function AddKeybindToManager(H7Keybind newKeybind)
AddPopupKeybindToManagernative function AddPopupKeybindToManager(H7Keybind popupKeybind)
AddToUnrealfunction AddToUnreal(KeyBind KeyBind, KeyBind oldKeybind)
ApplyPostLaunchFixesfunction KeyBind ApplyPostLaunchFixes(KeyBind userKeybind)
CallKeybindFunctionfunction CallKeybindFunction(H7Keybind KeyBind)
CausesConflictfunction bool CausesConflict(string Command, string Key, bool Shift, bool Alt, bool Control)
CollapseKeybindsfunction H7Keybind CollapseKeybinds(array<H7Keybind> keybinds)
CreateSetupfunction CreateSetup()
DeleteFromUnrealfunction DeleteFromUnreal(string Command)
DeletePopupKeybindingfunction DeletePopupKeybinding(string Command, optional bool removeFromArray)
DeletePopupKeybindsfunction DeletePopupKeybinds()
GetCategoryForCommandfunction H7KeybindManager.EKeybindCategory GetCategoryForCommand(string Command)
GetConflictCategoryfunction string GetConflictCategory(H7KeybindManager.EKeybindCategory Category)
GetConflictKeyComboFromManagerListfunction H7Keybind GetConflictKeyComboFromManagerList(KeyBind KeyBind)
GetConflictUnrealKeybindfunction KeyBind GetConflictUnrealKeybind(KeyBind newKeybind)
GetDebugStringfunction string GetDebugString(KeyBind KeyBind)
GetInstancestatic function H7KeybindManager GetInstance()
GetKeybindByCommandevent bool GetKeybindByCommand(string Command, out H7Keybind kBind)
GetKeybindListfunction array<H7Keybind> GetKeybindList()
GetKeybindListByCategoryfunction array<H7Keybind> GetKeybindListByCategory(H7KeybindManager.EKeybindCategory cat)
GetKeyComboStringfunction string GetKeyComboString(KeyBind KeyBind)
GetPopupKeybindingUserSettingsfunction H7PopupKeybindings GetPopupKeybindingUserSettings()
GetPreferedKeybindByCommandfunction KeyBind GetPreferedKeybindByCommand(string Command)
HasEqualKeyCombofunction bool HasEqualKeyCombo(KeyBind key1, KeyBind key2)
HasRealKeyfunction bool HasRealKey(KeyBind KeyBind)
IsAliasnative function bool IsAlias(name aliasOrKey)
IsPopupCategoryfunction bool IsPopupCategory(H7KeybindManager.EKeybindCategory Category)
IsRealKeyfunction bool IsRealKey(name keyStr)
KeybindComparefunction int KeybindCompare(H7Keybind A, H7Keybind B)
KeybindFunctionDelegatedelegate KeybindFunctionDelegate()
OrderListfunction OrderList()
OverwritePopupKeybindToManagerAndIniListfunction OverwritePopupKeybindToManagerAndIniList(H7Keybind newKeybind)
ResetPopupKeybindsfunction ResetPopupKeybinds()
SaveNewPopupKeybindfunction SaveNewPopupKeybind(H7Keybind newKeybind)
SetKeybindfunction bool SetKeybind(string Command, bool pshift, bool palt, bool pcontrol, string pkey, bool sshift, bool salt, bool scontrol, string skey)
SplitKeybindfunction array<H7Keybind> SplitKeybind(KeyBind KeyBind)

Inherited

FromMembers
Object13 properties, 308 functions