Modding, Mission Design, and Coding > Test Builds

Bobboau Birthday Build (Fun new features)

(1/13) > >>

WMCoolmon:
Three somewhat large changes:
[*]HUD.tbl no longer used; images are read directly from ships.tbl
[*]Music.tbl is now modular
[*]Added hud_gauges.tbl
[/list]

hud_gauges.tbl format:
(Default values for 640x480 used)

--- Code: ---
#Main Gauges

$Resolution: (640 480)
$Player Shield: (396 379)
$Target Shield: (142 379)
$Shield Mini: (0 291)
+Size: (31 21)
+Percentage: (50 0)
+Image: targhit1
$Afterburner Energy: (171 265)
+Image: energy2
$Weapons Energy: (416 265)
+Image: energy2

#End

#Gauges

$Resolution: (640 480)
$Gauge: Shield Mini
$Text Base: (305 298)
$Text 2 Digit: (307 298) ;Where to place damage text when it's at 10 through 99
$Text 1 Digit: (311 298) ;...0 through 9
#End

--- End code ---


Someone wiki this...
All coordinates are in the form of (x, y). Units are pixels unless explicitly mentioned in this text

#Main Gauges
This contains/will contain the various HUD elements listed in the HUD configuration screen.

$Resolution denotes a resolution. Enter in coordinate format the resolution x and y, ie (1024 768). If you want to specify a default template, use (0 0)
Next are the individual hud elements. All of these are optional, and the volition defaults will be used if one is not specified. The coordinates to the right of the name are the location that element will be placed. (Obviously these won't matter/be required for something that moves, like the lead indicator.)
Under each element are 3 optional fields:
+Size: Size of the element in coordinate-format. This may be used within the code, so if you specify a custom image, USE this.
+Percentage: Percentage of the screen to place the HUD element. If size is not specified, the the upper-left corner will be placed at the specified location. Otherwise, the center of the object will be placed at the location. Floating point numbers are acceptable.
+Image: If an image or ani is used, this image will be substituted for the volition default. If you experience problems with a HUD element you have specified the image for, set the size parameter with the size of this image.

Gauges
These are sub-elements of the different main gauges. Specify a resolution, like in main gauges, then use $Gauge: Gauge Name to specify the Gauge.
At this point you can set the sub-element coordinates/images in the same way as a Main Gauge.

Teh Build

Taristin:
Ooh! This'd be awesome for TVWP... :drevil:

Edit: Fix the guage resolution... (7480)

WMCoolmon:
Fix0red...not like it really matters. ;) You won't see any change if you use that table :p

What specific gauges are you interested in seeing moved? I can prioritize those. (I'd like a smaller list than "all of them", if possible. :p)

Deepblue:
Link is broken.

Deepblue:
Oh and BTW is it possible to adjust EVERYTHING in the hud with the gauge table?

Navigation

[0] Message Index

[#] Next page

Go to full version