I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

Legacy:UTExtraKeyBindings

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT :: Object >> UTExtraKeyBindings

This can be used to create new entries in the Options -> Preferences -> Controls window.

See GUIUserKeyBinding for a similar facility in UT2003.

Usage[edit]

  1. Subclass UTExtraKeyBindings.
  2. Put the name of your mod in the SectionName variable.
  3. Put the descriptions of the actions in the LabelList array.
  4. 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"
}