OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Lean Bear on 30 Oct 2004, 12:09:26
-
Does anyone know how to make a new GUI(?), as in; what sort of components do you need, what do you have to edit etc.
edit
I'm mainly talking about the main screen you see when you start up OFP, but in-game as well (just as important).
-
I changed the contents of "rscScreen.hpp" in the BIN folder of my MOD. The class "RscDisplayMain" contains all the info about the 1st menu page.
I think almost all the other GUIs are defined here but it's been a while since I played around with them.
-
Yes it's all in the resource.bin.
If you are running ECP you can edit the resource.cpp in the ECP mod folder to change the way the GUI looks.
If you do this be sure to make a backup first, just in case.
I have edited mine so that I can see the dialogs in the editor better......my eyesight isn't what it used to be you know.
Picture below.
Planck
-
I only edited mine to see if I could... I also noticed you can change the way the "Laptop" animates and moves about on screen.
-
You can even change the green colour to something else on your laptop screen.
I had orange at one time. ::)
Planck
-
I was gonna use Orange/Amber... just like my very first monitor, but green always looks good.
-
Yeah, I was checking out the FDF Mod rescource.cpp earlier (just looking for some random stuff) and I found that you can also change the compass, GPS etc. to whatever you want as well as adding more "objects" that can be animated/ used in one way or another.
Also, I found that there are loads of bars/ meters that aren't shown in-game. Like there is actually a health bar for the player, you just don't see it.
-
If my memory serves me well.......I think, in older versions of OFP the players health bar was shown.
But then again, maybe I'm losing my mind.
Planck
-
I wouldn't know, I didn't have any of the old versions of OFP.
Do either of you guys know what Rsc is needed to be edited so that the "splash" that comes up when you start OFP (without "-nosplash" of course) your custom one will come up?
I've looked around, but my eyes grow weary.
Also (kinda off-topic) but how do you make your anim (ie. "intro.IslandNameHere"), appear instead of a random one, or another mod's one?
-
When the game starts, it runs <modname>\dta\scripts\startup.sqs automatically.
You can define the screens in the class RscTitles in rscIGUI.hpp
-
Cool, thanks ;)
Is the <modname> just a folder, or what?
-
Just a folder... but it should contain,
Operation Flashpoint\<modname>\DTA
Operation Flashpoint\<modname>\DTA\scripts
Operation Flashpoint\<modname>\DTA\anims
Operation Flashpoint\<modname>\Addons
Operation Flashpoint\<modname>\BIN
Call your MOD with flashpoint.exe -mod=<modname>
-
Out of curiosity, how do mods like FDF and WG do theirs? I know there's still the folder, but how do they get their own tiny app. that installs everything and then have a cool logo that runs OFP with that mod, but isn't a shortcut?
-
Not sure about that one. I tried using a HEX editor to specify a path to my MOD... it kinda worked, but I wouldn't recommend it.
-
(Again, slightly off-topic) How do you "define" a Rsc? So that when you use a command like TitleRsc ["YourRscName","PLAIN"] it will come up?
-
It'll cost you... There is still the matter of the "linear" animation :)
-
Hmm, kinda off-topic wouldn't you say DeadActionMan? ;D
I'll see what I can do, OK?
(so this is why you've been helping me?)
-
Its rare I get to help anyone with OP Flash... Glad I can though. I'll have a look through my mod and send you all I can.
-
Cool. Don't send me too much though :wow:
ps. check the "linear" animations topic. I beleive your payment is there ;)
-
Sooo...
I think DeadActionMan died :-\ :'(
Can anyone else help me out with this little problem?
-
Click Here!! (http://www.mindwavemedia.com/warchamber.shtml)
Should be at the bottom of the page somewhere.
-
Yaay! Good 'ol Homefry :)
:cheers:
ps. I pressume you're refering to the Custom GUI tut, right? :P
edit
Yes, he sure was. That is a very good tutorial for making a custom GUI - explains everything in good detail. And the example GUI that is taken step-by-step is pretty complex so you'll learn pretty much everything.