• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

How to add/modify INTERFACE ?

desmond5

Landlubber
That is still a total mystery for me, how is interface handeled in the game. I want to add an interface screen to game where I can manually insert player name and set game difficulty but I don't know even where to start. I investegated the files in INTERFACE folder, but that only game me an headacke. Could someone please maybe fill me in please (just basics on interface modding, just what variabled to declare and functions to add) ?

Regards, Desmond
 
hey desmond5,

the easiest way is to copy an interface that already does something like what you want yours to do, and then start removing, adding and changing stuff. each interface has a .c file in PROGRAMINTERFACE, which contains all the `decision-making` code, and an .ini file in RESOURCEINIINTERFACES, which positions the buttons and elements of the interface on the screen. each interface also has its own entries in PROGRAMINTERFACEinterface.c, interface.h and BaseInterface.c, which also need to be copied and renamed for new interfaces.

the way i learned was basically by `trial-and`-error - just have a poke at it and see what happens <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> if you have any specific questions, just ask!
 
Back
Top