Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# TribesGUI.ControlMapping

00001 00002 00003 00004 00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025

    class ControlMapping extends Core.Object
    	PerObjectConfig
    	Config(ControlMapping);

    struct CommandMapping
    {
    	var				bool	bIsSectionLabel;
    	var localized	string	Action;
    	var				string	Command;
    };

    var localized config string			Labels[50];		// fixed-length array for localization
    var localized config CommandMapping	Mappings[50];	// mappings of keyMappings
    var config int NumMappings;							// number of mappings

    //
    // Bug in ucc means that we have to have an accessor function
    // for fixed size arrays. Meh.
    //
    function CommandMapping GetMapping(int i)
    {
    	log("labels["$i$"]: "$Labels[i]);
    	log("mappings["$i$"]: "$Mappings[i].Action@Mappings[i].Command);
    	return Mappings[i];
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: st 16.4.2014 10:20:44.000 - Creation time: st 23.5.2018 00:10:42.976 - Created with UnCodeX