I have a question:
how do i get to bring up a menu in game (in a mutator) kind of like the menu in WFUT or TFC.
please help
how do i get to bring up a menu in game (in a mutator) kind of like the menu in WFUT or TFC.
please help
local UMenuRootWindow ParentWindow;
ParentWindow = UMenuRootWindow(WindowConsole(Player.Console).Root);
if(MM == None)
{
MM = MainMenu(ParentWindow.CreateWindow(Class'BloodCrusade.MainMenu', 100, 100, 200, 200));
MM.bLeaveOnScreen = True;
}
WindowConsole(Player.Console).Root.SetMousePos(0, 132.0 / 768 * WindowConsole(Player.Console).Root.WinWidth);
if (ChallengeHUD(myHUD) != None)
ChallengeHUD(myHUD).bHideCenterMessages = True;
MM.SlideInWindow();
WindowConsole(Player.Console).bQuickKeyEnable = True;
WindowConsole(Player.Console).LaunchUWindow();
replication
{
// Functions server can call.
reliable if( Role==ROLE_Authority )
OpenTheMenu;
}
function OpenTheMenu()
{
local UMenuRootWindow ParentWindow;
ParentWindow = UMenuRootWindow(WindowConsole(Player.Console).Root);
if(MM == None)
{
MM = MainMenu(ParentWindow.CreateWindow(Class'BloodCrusade.MainMenu', 100, 100, 200, 200));
MM.bLeaveOnScreen = True;
}
WindowConsole(Player.Console).Root.SetMousePos(0, 132.0 / 768 * WindowConsole(Player.Console).Root.WinWidth);
if (ChallengeHUD(myHUD) != None)
ChallengeHUD(myHUD).bHideCenterMessages = True;
MM.SlideInWindow();
WindowConsole(Player.Console).bQuickKeyEnable = True;
WindowConsole(Player.Console).LaunchUWindow();
}
var MainMenu MM;