English Custom Gui/menu?

1 reply
Goto Page
To the start Previous 1 Next To the start
05.12.15 10:48:09 am
Up
Gaelstrom
User
Offline Off
Had an idea for a mod, I'd need to be able to load an image, and then allow the player to select certain locations on the image. Is this possible?
05.12.15 12:01:07 pm
Up
Hurri04
Super User
Offline Off
the only way I know of (without modding the source code) is to use s2 cmd cscr to create a menu that fills the entire game window and then use s2 cmd cscr_image and s2 cmd cscr_text to create clickable interface elements.

since the game supports multiple resolutions you'll also have to create the background image you use for the cscr command in these resolutions. check which one you need to load by using the s2 cmd getsetting command with the "xres" and/or "yres" parameter.

as for the placement of images and text, I'd recommend to optimize them to stay inside the 800*600 pixel area.


the old cooking system of my Cast Away Mod used this to create a cooking menu: https://www.youtube.com/watch?v=TNYtX-hRGXU&t=90s
To the start Previous 1 Next To the start