Creating a UWindow ingame

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

RestInPieces

New Member
Sep 20, 2001
65
0
0
www.Creep-World.net
Say I've got a function in my Hud class (yes, in my Hud class), which shall open up a UWindow. How can i create this window? All the UWinows tutorials i found assume that i want to open up my window from a menu and they use commands like MenuItem.Owner.Root.CreateWindow(class'MyWindow',10,10,10,10);
What is Root? And what command do I have to use if I want to open a window ingame, like the orders menu?
 

RegularX

Master of Dagoth Lies
Feb 2, 2000
1,215
0
0
Chicago, IL
Root is the parent of the console, which holds all the UWindows (I think - someone else can clarify)

The orders menu is the SpeechWindow class and it's friends. You have to hijack/subclass it out from the playerpawn to customize it. Doing searches for speechwindow in the usual places will offer up some code.

I found it relatively complicated for the buy menu system I was using, so I implemented something directly into the HUD. It's still a work in progress, so I can't really say how successful it is yet.



j/rgx