OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kobrah on 15 Sep 2005, 20:48:17

Title: Changing OFP GUI
Post by: kobrah on 15 Sep 2005, 20:48:17
Hi all, newbie here also first timer on these boards. I searched the forums and I didn't find a topic on this. I was wondering if it's possible to change the menu interface? I would like to maybe change the fonts, font sizes, placement, etc. Any help appreciated.
Title: Re:Changing OFP GUI
Post by: bedges on 15 Sep 2005, 21:18:55
i don't think it can be changed, but it can be overlaid with a new gui. search for 'dialog' in the editor's depot. there are fine tutorials there, albeit tricksy for noobsters ;)

(bedges hangs his head in shame for forgetting mods...)

just so you know, dialogs are considered 'advanced' here at ofpec... you have been warned  :P

EDIT - in fact, i think i may shunt it over there, just keep things tidy... tadaaa
Title: Re:Changing OFP GUI
Post by: Baddo on 15 Sep 2005, 21:51:23
Can be changed but you would have to edit OFP's configuration files. Probably only resource.cpp would need to be changed, IIRC. The other configuration file is config.cpp. Those files are actually resource.bin and config.bin in the OFP\bin folder or for Resistance OFP\res\bin folder. I think these files can be found in some form from the Editors Depot by searching a little bit... or you can grab a utility from somewhere which can uncompress the bin files into cpp form so you can read them with a text editor. Make backups first if you start to experiment with the original bin files!

You don't need to convert the cpp file back to bin format before testing it in OFP, it works as cpp just fine. Just make sure you have only one config and resource file at a time in the bin folders when testing (renaming files helps here).

There's a lot to read in those configuration files but I bet you'll find the GUI configuration lines by yourself ;)

That's like making your own mod so you would have difficulties in multiplayer games when you'd have that modification loaded.
Title: Re:Changing OFP GUI
Post by: kobrah on 15 Sep 2005, 23:09:05
Thanks for the info. =D
Title: Re:Changing OFP GUI
Post by: paddy on 16 Sep 2005, 16:23:44
well, we definitly know it can be done, FDF did it for their wonderful mod and it looked fantastic.  Civil war mod also changed the GUI to stunning effect.  This is something I would really like to see a tutorial on, on the other hand if i can figure it out myself I might make one.

As for dialogs, get a description.ext tutorial, Vektorboson's text tutorial and the dialog editor by razorwings and you can really hit the ground running.  As a fellow newbie I would like to offer my encouragment and limited knowledge to anyone who wants to get into dialog editing, it can really enhance a mission.
Title: Re:Changing OFP GUI
Post by: h- on 16 Sep 2005, 16:41:40
The OFP GUI is in the resource.cpp(bin), search for class RscActiveMenu, that's the class it starts with..
The last class included in the GUI stuff is class RscDisplayMissionEnd..

Everything, like the MP menus, Options etc are included in and between those classes..
Title: Re:Changing OFP GUI
Post by: Lean Bear on 01 Oct 2005, 20:47:41
Editing the GUI in OFP is very easy to do - making it look good is something else though. But if all you want to do is change font sizes etc. then I'd recommend Raymond Koh's tut over at Project War Chamber (http://www.mindwavemedia.com/warchamber.shtml).

I think it explains the basics pretty well :)
Title: Re:Changing OFP GUI
Post by: Tyger on 04 Oct 2005, 02:14:10
The was a tutorial over at the Project War Chamber site. They've updated it though, so you might not be able to find it. Check the Affilate Mods for the url.

Oh, never mind. Lean Bear was all over that one. :P