My program doesn't have bugs. It just develops random features.
Legacy:UTExtraKeyBindings
From Unreal Wiki, The Unreal Engine Documentation Site
This can be used to create new entries in the Options -> Preferences -> Controls window.
See GUIUserKeyBinding for a similar facility in UT2003.
Usage
- Subclass UTExtraKeyBindings.
- Put the name of your mod in the SectionName variable.
- Put the descriptions of the actions in the LabelList array.
- Put the exec functions to be bound in the AliasNames array.
Make a MyPackage.int file with the following data in it:
[Public] Object=(Name=MyPackage.MyKeyBindingsClass,Class=Class,MetaClass=UTMenu.UTExtraKeyBindings)
The corresponding UTExtraKeyBindings subclass:
class MyKeyBindings extends UTExtraKeyBindings;
defaultproperties
{
SectionName="Capture the Mage"
LabelList(0)="Cast Spell"
LabelList(1)="Activate Shield"
AliasNames(0)="castspell"
AliasNames(1)="activateshield"
}
