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

# TribesGUI.QuickChatMenu

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
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054

    //
    // Defines the heirachy of quick chat menus
    // available for perusal in game.
    //
    class QuickChatMenu extends HUDElement
    	PerObjectConfig
    	Config(QuickChatMenu);

    import enum EInputKey from Engine.Interactions;

    var() config Name chatTag;
    var() config Name sayType;
    var() config String animationName;
    var() config bool bLocal;
    var() config String messageOverride;
    var() config EInputKey keyBinding;
    var() config Array<Name> subMenuNames;
    var() config bool bDummyItem;

    var String					messageText;
    var Array<QuickChatMenu>	subMenu;
    var QuickChatMenu			parentMenu;

    function InitMenu()
    {
    	local int i;

    	if(bDummyItem)
    		return;

    	if(messageOverride == "")
    		messageText = Localize("QuickChat", String(ChatTag), "Localisation\\Speech\\QuickChat");
    	else
    		messageText = messageOverride;

    	for(i = 0; i < subMenuNames.Length; ++i)
    	{
    		subMenu[i] = new(None, String(subMenuNames[i])) class'QuickChatMenu';
    		subMenu[i].InitMenu();
    	}
    }

    function bool IsCategoryMenu()
    {
    	return (subMenu.Length > 0);
    }

    defaultproperties
    {
    	chatTag=NO_TAG_SET
    	sayType=Say
    	keyBinding=IK_Q
    	messageOverride="Message text"
    }

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:46.000 - Creation time: st 23.5.2018 00:10:46.659 - Created with UnCodeX