Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Jul 21, 2017 2:49 am

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Apr 20, 2017 7:49 am 
Offline
Dangerous
Dangerous
User avatar

Joined: Mon Feb 20, 2017 2:14 pm
Posts: 106
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.

_________________
DeeperSpace HUD | pleiadian's Oolite GitHub


Top
   
PostPosted: Thu Apr 20, 2017 9:52 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon May 20, 2013 9:53 pm
Posts: 2298
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
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.

_________________
OXPs by Norby


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited