View Full Version : [UI] How to show an UIScene through script ?
acropole
11-15-2009, 01:59 PM
Hi,
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 ?
Solid Snake
11-15-2009, 05:48 PM
http://wiki.beyondunreal.com/Legacy:Solid_Snake/Opening_A_UIScene_With_Unrealscript
This was something I wrote a few years ago. It may still be useful.
LennardF1989
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.