I want to do, a menu with the HUD class that allows me to display a list and select a single item using the cursor keys and accept my selection using the Enter key, and another menu comes from the previous selection and pressing the ESC key to return to first. Also I want to blink the element where the cursor lies.
All this must occur on a screen where the player can not move until the main menu is closed.
Keys bindings are in defaultinput.ini. Then add function to your PlayerController class
exec function UpArrow()
2.Then in defailtinput.ini
What you could do is when the pause button is pressed, set a boolean to true. In your HUD class, if this boolean is true, draw stuff. When you draw this stuff, you need to make note of the locations. Next, you draw the cursor where you wan to start it out. Then you use the keybinds to the UpArrow and DownArrow like rquester suggested above to move this cursor. Make note that it WONT move on its own. You have to make the UpArrow() change the location in which it is drawn (make limits for this so it can only go up so many and down so many depending on location). At this point, you should have the images up and the cursor moving. When the player presses the "select" button, you should then check where the cursor is, and depending on where it is, do a certain action. For example if you know that your Attack icon is at X= 200, Y= 200 (just an example), then you check if you cursor is at X=180, Y= 200 (beside the image). This is just example coordinates, but this is a way it can be done. Of course, this is going to take some trial and error and you are going to comment in your code where your icons are located and make sure when you move the cursor, it moves up or down just the right amount. You can also make note of at what location the arrow is beside a certain icon, because you'll again need this to check where the cursor is to decide what action to call when the "select" action is performed.
Am very new to udk and unreal scripting, am also looking to create as shown above HUD in my game, i gone through canvas technical guide and hud technical guide i understand the properties and functions, but how to use those functions in scripting and wht are the classes to extend i am not getting..
Can anyone pls show me some example script for canvas and hud