Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UMenu.UMenuStatsMenu


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
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
class UMenuStatsMenu extends UWindowPulldownMenu;

var UWindowPulldownMenuItem ViewLocal, ViewGlobal, About, About2;

var localized string ViewLocalName;
var localized string ViewLocalHelp;
var localized string ViewGlobalName;
var localized string ViewGlobalHelp;
var localized string AboutName;
var localized string AboutHelp;
var localized string About2Name;
var localized string About2Help;

function Created()
{
    Super.Created();

    // Add menu items.
    ViewLocal = AddMenuItem(ViewLocalName, None);
    ViewGlobal = AddMenuItem(ViewGlobalName, None);
    AddMenuItem("-", None);
    About = AddMenuItem(AboutName, None);
    About2 = AddMenuItem(About2Name, None);
}

function ExecuteItem(UWindowPulldownMenuItem I) 
{
/*UG
    switch(I)
    {
    case ViewLocal:
        class'StatLog'.Static.BatchLocal();
        break;
    case ViewGlobal:
        GetPlayerOwner().ConsoleCommand("start http://ut.ngworldstats.com/");
        break;
    case About:
        class'StatLog'.Static.BrowseRelativeLocalURL("..\\NetGamesUSA.com\\ngStats\\html\\Help_Using_ngStats.html");
        break;
    case About2:
        GetPlayerOwner().ConsoleCommand("start http://ut.ngworldstats.com/FAQ/");
        break;
    }
*/
    Super.ExecuteItem(I);
}

function Select(UWindowPulldownMenuItem I)
{
    switch(I)
    {
    case ViewLocal:
        UMenuMenuBar(GetMenuBar()).SetHelp(ViewLocalHelp);
        break;
    case ViewGlobal:
        UMenuMenuBar(GetMenuBar()).SetHelp(ViewGlobalHelp);
        break;
    case About:
        UMenuMenuBar(GetMenuBar()).SetHelp(AboutHelp);
        break;
    case About2:
        UMenuMenuBar(GetMenuBar()).SetHelp(About2Help);
        break;
    }

    Super.Select(I);
}

defaultproperties
{
     ViewLocalName="View Local ngStats"
     ViewLocalHelp="View your game statistics accumulated in single player and practice games."
     ViewGlobalName="View Global ngWorldStats"
     ViewGlobalHelp="View your game statistics accumulated online."
     AboutName="Help with &ngStats"
     AboutHelp="Get information about local stat logging."
     About2Name="Help with &ngWorldStats"
     About2Help="Get information about global stat logging."
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:27:50.000 - Creation time: za 22-4-2006 13:29:32.656 - Created with UnCodeX