Jump to content

Not possible to write on GUI Elements? (0.23.5)


Recommended Posts

Hi,

so I'm trying to update a mod that writes in the speed text on the navball.

In 0.23.5, the text i intend to write is not written in navball.

I'm using this sentence (it worked fine in 0.23):

FlightUIController.fetch.speed.text = "someText";

Are GUI elements protected someway or there is any workaround/other object to use to write in the textbox in the navball?

Thanks!

Link to comment
Share on other sites

Hmm. Hmm. No, no, this won't do. This isn't really about KSP's development at all. Lemme throw it over to the plugin help and support section. Pretty sure that's where it needs to be.

Link to comment
Share on other sites

Hmm. Hmm. No, no, this won't do. This isn't really about KSP's development at all. Lemme throw it over to the plugin help and support section. Pretty sure that's where it needs to be.

I think that my first question (Are GUI elements protected someway) is somehow related with KSP development because it may imply that SQUAD is now (from/on 0.23.5) protecting some things (like GUI) to be not possible to mod them. I honestly don't think so because KSP has a huge modding community and protecting certain aspects of the game will be like putting restrictions to the community. But I think this could be a possibility among others that how a basic modification cannot be made as before.

Besides that, I now think this thread belogns here, because probably it will be another way to modify the text on the navball.

Link to comment
Share on other sites

I suspect this is something awkward like the order in which things are being called. E.g. if 0.23 drew the navball text first and then called the mod but 0.23.5 calls the mod first and then draws the navball, then this would explain the issue you are having.

I'm not saying this is what is happening but it sounds likely to me. If so, then perhaps there is another method you could put your drawing code in that still gets called after the navball has been drawn...

Link to comment
Share on other sites

Untested, but have you tried LateUpdate? That would be the logical place for something like this in my opinion
Yup, pretty much it worked fine. Thanks you all for the info!
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...