Jump to content

Get text from part's context menu


Recommended Posts

I'm currently writing a plugin to show a page in the RasterPropMonitor with a list of all the parts in the vessel, to allow you to interact with them from IVA. I can list all the parts, and i can display and edit their Fields (stuff like UI_Toggle, UI_Cycle and UI_FloatRange), and invoke their Events, but i'm struggling with the labels (i think that's what they are).

I'm talking about, for instance, when you right click on a Mk 1 command pod there's some text like "Comm Signal: 1.00" or "Reaction Wheels: Idle". I would like to access that text from the module, but i don't know how.

Edited by Fedex7501
Link to comment
Share on other sites

(I thought i posted this comment yesterday but apparently not? So here it goes again)
OK, i got it mostly working except for the Comm Signal and Comm First Hop Dist which behave differently to the rest. It's like the game only calculates their values when the context menu is opened. Otherwise they only return NA. This looks really hard to solve to be honest but i think it's good enough.

4dIUel1.png

 

Now i'll start working on the Checklist page, and then i'll make a pull request on the ASET repo, hopefully they'll like it.

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...