UnrealScript Canvas Dialog

It took me a long while to figure out the "good" way to handle keyboard input, for temporary popup dialogs (such as a "Quit" dialog). Most examples these days presume you are making GUI things via Scaleform and Adobe Flash.

The solution I found, involves creating or modifying two files:
PlayerController, to handle calling entrypoints for things via "exec" functions, and PlayerInput, to best deal with the actual keyboard input.

Source code:
M5PlayerController.uc
M5PlayerInput.uc

The above presumes you have also modified your HUDtype to be plain "HUD" or some such, in your GameInfo class!
(Note to mention also setting PlayerControllerClass=class'MyPlayerController')


Written by:Philip Brown
Bolthole Top - UDK top - Search Bolthole.com