[HUD Dev] Display current system and tech level?

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

Post Reply
User avatar
pleiadian
Deadly
Deadly
Posts: 143
Joined: Mon Feb 20, 2017 2:14 pm

[HUD Dev] Display current system and tech level?

Post by pleiadian »

I'm still doing some tweaks to my DeeperSpace HUD, and I'm trying to figure out how to acquire variables such as the name and TL of the system you are in at this time. I know through JS there appears to be the variable system.name (seen this in Navigation MFD), but I'm not quite sure how to "grab" it for display in my HUD, for example with drawCustomText.

Any pointers would be appreciated.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [HUD Dev] Display current system and tech level?

Post by Norby »

Set the data source with setCustomHUDDial.

If you need alignment support also then look into the end of Config/script.js in CombatMFD.oxz where the $setData function offer a solution.
Post Reply