Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TopAce on August 17, 2004, 06:43:54 am

Title: Variables and the beloved HUD
Post by: TopAce on August 17, 2004, 06:43:54 am
I am hearing from KARMA and Black Wolf that theoretically, I can make the value of variables displayed on a modified HUD. I would rather ignore hard searching for older threads and establish a new one to ask. What modifications do I have to make to the HUD to have the variable values displayed? Is it possible to make the value displayed in the debriefing?

Thanks for the help.
Title: Variables and the beloved HUD
Post by: Goober5000 on August 17, 2004, 11:36:48 am
Search is A-1 Supar...
Title: Variables and the beloved HUD
Post by: TopAce on August 17, 2004, 11:41:39 am
So?
Title: Re: Variables and the beloved HUD
Post by: Goober5000 on August 17, 2004, 11:48:35 am
Quote
Originally posted by TopAce
I would rather ignore hard searching for older threads and establish a new one to ask.
This is exactly the kind of thing we discourage.  Search first.  Then ask.

(You'll have to wait for an answer anyway, because WMCoolmon isn't here yet and he's the one who worked on the HUD.)
Title: Variables and the beloved HUD
Post by: TopAce on August 17, 2004, 01:48:56 pm
OK, I splurged two hours of my life searching. Can I get the info now? :mad2:
Title: Variables and the beloved HUD
Post by: Fury on August 17, 2004, 02:05:45 pm
I think you're looking for those threads:
http://www.hard-light.net/forums/index.php/topic,20586.0.html
http://www.hard-light.net/forums/index.php/topic,19906.0.html

Wasted two minutes of my life.
Title: Variables and the beloved HUD
Post by: TopAce on August 17, 2004, 02:12:31 pm
The first thread does not say anything about it ... looking at the second one.
The second thread is too long to read from A till Z, I only read the posts by coders and I found nothing usable.
Sorry, your links did not have any use.
Title: Variables and the beloved HUD
Post by: karajorma on August 17, 2004, 03:18:32 pm
Then search yourself :D
Title: Variables and the beloved HUD
Post by: Goober5000 on August 17, 2004, 03:19:30 pm
Perhaps it was never implemented.  I don't recall WMC ever finishing it.  Why don't you ask Black Wolf or KARMA?
Title: Variables and the beloved HUD
Post by: TopAce on August 17, 2004, 03:25:55 pm
I asked KARMA in the SW internal. He said he didn't know the answer and if BW knew the answer, he would have told it to me.
Title: Variables and the beloved HUD
Post by: KARMA on August 18, 2004, 07:34:50 am
not sure if this can be of some help
http://www.hard-light.net/forums/index.php/topic,23874.0.html

btw shouldn't this be somewhere in the readme/wiki?
Title: Variables and the beloved HUD
Post by: TopAce on August 18, 2004, 10:07:08 am
I read throught the Wiki some time ago, but no luck.
Title: Variables and the beloved HUD
Post by: Goober5000 on August 18, 2004, 02:04:04 pm
Quote
Originally posted by KARMA
not sure if this can be of some help
http://www.hard-light.net/forums/index.php/topic,23874.0.html

btw shouldn't this be somewhere in the readme/wiki?
TopAce, this post (http://www.hard-light.net/forums/index.php/topic,23874.msg479089.html#msg479089) might be what you're looking for.

I'm still not sure if it's finished or not.
Title: Variables and the beloved HUD
Post by: WMCoolmon on August 19, 2004, 12:18:09 am
It's pretty simple.
Quickie sample of a hud_gauges.tbl with a text gauge:
Code: [Select]
#Custom Gauges
$Name: Text_Gauge
#End
#Main Gauges
$Default: (640 480)
$Text_Gauge: (256 256)
+Text: String             ;Default text will be 'String'
#End


You can then use hud-set-text (IIRC, if not it's in the HUD subcategory of change) to set the text of a given gauge to a variable. There's separate ones for string and integer variables.

99% of the info on custom gauges is in these threads:
http://www.hard-light.net/forums/index.php/topic,24411.0.html
http://www.hard-light.net/forums/index.php/topic,23874.0.html
http://www.hard-light.net/forums/index.php/topic,24223.0.html
Title: Variables and the beloved HUD
Post by: TopAce on August 19, 2004, 06:29:29 am
Thanks, WM:cool:mon. You are the king.