[1.7b1] Using new HUD elements

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 780
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way

[1.7b1] Using new HUD elements

Post by Xephyr » Wed Nov 02, 2016 8:05 pm

1.7 beta 1 introduces some default HUD elements for playerships. These will be used by default if you use plyChangeShip to switch to a ship without a defined <PlayerSettings>, but you can also use them rather than the default HUD on your own ships.

This is particularly helpful because it saves you the trouble of making an armor HUD.

Code: Select all

<PlayerSettings
   ...
   >

   <ArmorDisplay
      style=         "circular"
      />

   <ReactorDisplay
      style=         "circular"
      />
         
   <WeaponDisplay
      style=         "circular"
      />
</PlayerSettings>
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
"Cowards die many times before their deaths; The valiant never taste of death but once. " -Julius Caesar as written by William Shakespeare, a notorious permadeath player.

User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 780
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way

Re: [1.7b1] Using new HUD elements

Post by Xephyr » Wed Dec 28, 2016 2:40 am

Searching through the source on GitHub I've discovered that the armorHUD also accepts color values!

Code: Select all

<ArmorDisplay style=	"circular"		
armorColor="#FFFFFF"
shieldsColor="#FFFFFF"/>
This will make the armor and shields appear white.

Reactor HUD also accepts the following values:

Code: Select all

<ReactorDisplay style=	"circular"
backgroundColor="..."
fuelColor="..."
powerColor="..."
warningColor="..."/>
Weapons/Targeting HUD accepts the following:

Code: Select all

<WeaponDisplay style=	"circular"
backgroundColor="..."
targetColor="..."
weaponColor="..."
/>
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
"Cowards die many times before their deaths; The valiant never taste of death but once. " -Julius Caesar as written by William Shakespeare, a notorious permadeath player.

User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2559
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Re: [1.7b1] Using new HUD elements

Post by digdug » Wed Dec 28, 2016 7:52 pm

what styles are available ? I see only circular

User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 780
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way

Re: [1.7b1] Using new HUD elements

Post by Xephyr » Wed Dec 28, 2016 8:18 pm

digdug wrote:what styles are available ? I see only circular
Just circular for now, but there's plans for more in the future.
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
"Cowards die many times before their deaths; The valiant never taste of death but once. " -Julius Caesar as written by William Shakespeare, a notorious permadeath player.

relanat
Militia Commander
Militia Commander
Posts: 328
Joined: Tue Nov 05, 2013 9:56 am

Re: [1.7b1] Using new HUD elements

Post by relanat » Tue Jan 03, 2017 4:42 am

Thanks for posting this info. Very helpful.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest