I wont to open Uwindow directly in game. I write this Code:
class SkillsFW is normal FramedWindow. It works, but, to see opened window I have to enter UT main menu. So anyone of You know, how Can I fix this?
Code:
class RPGPlayer extends NaliPlayer;
exec function ShowSkillBrowser()
{
local GameReplicationInfo GRI;
local UWindowRootWindow Root;
local WindowConsole Con;
local bool bPause;
/* if(bPause){
bPause=false;
UMenuRootWindow(Root).MenuBar.ShowWindow();
} else if(!bPause) {
bPause=true;
UMenuRootWindow(Root).MenuBar.HideWindow();
}
Level.Game.SetPause(bPause, self);*/
if (!WindowConsole(player.console).bcreatedroot)
WindowConsole(player.console).CreateRootWindow(none);
WindowConsole(Player.Console).bQuickKeyEnable = true;
WindowConsole(Player.Console).LaunchUWindow();
WindowConsole(Player.Console).Root.CreateWindow(class'RPGEngine.SkillsFW', 100, 100, 100, 100);
/* foreach AllActors(class'GameReplicationInfo', GRI)
{
UMenuRootWindow(Root).MenuBar.HideWindow();
Con = WindowConsole(Player.Console);
Con.LaunchUWindow();
Con.Root.CreateWindow(class<UWindowWindow>(DynamicLoadObject("RPGEngine.SkillBrowser", class'Class')), 100, 100, 100, 100);
// Con.Root.CreateWindow(class<UWindowWindow>(DynamicLoadObject("UTMenu.DemoStoryWindow", class'Class')), 100, 100, 100, 100);
}*/
}
class SkillsFW is normal FramedWindow. It works, but, to see opened window I have to enter UT main menu. So anyone of You know, how Can I fix this?
Last edited: