View Full Version : [UI] How to show an UIScene through script ?
11-15-2009, 01:59 PM
I searched a lot but I don't found how to load show an UIScene inside a script.
I'm working on a UI displayed on player's screen when he join a game. He must make choices before joining like the team and class selectors and buy menu in Counter-Strike.
Any idea ?
11-15-2009, 05:48 PM
This was something I wrote a few years ago. It may still be useful.
11-15-2009, 05:53 PM
Download the UT3 source files, look for UTPlayerController.uc and search for the line:
function UTUIScene_ConnectionStatus OpenProgressMessageScene()
Everything below is a perfect example of dynamically loading a UIScene outside of an actual UIScene class. You might want to hook the "PostLogin" events triggered by an extension of GameInfo to call your scene on the client. Or RestartPlayer/Possess, depending on how early you want the screen to show up.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.