simon56modder Posted August 18, 2015 Share Posted August 18, 2015 OK. I know this is probably hard to do, maybe so hard that we can say it's impossible, but I'll try to get an answer anyway.What I want to do is to add a new building in the Space center that can be clicked.I just want a GUI to be opened when the building is clicked - something like the launch pad UI, that can be created using GUI class that we all know about.Basically use a model in the same .MU part format.Is that possible ?Can I hope having this in my mod one day ? Link to comment Share on other sites More sharing options...
blowfish Posted August 18, 2015 Share Posted August 18, 2015 I don't believe the stock code that makes this happen is accessible.That being said, you might be able to rig something to make this Kerbal Konstructs allows the placing new static instances. If you could write some code to detect clicks on these instances in the space center scene, you could use that to open a UI. Link to comment Share on other sites More sharing options...
simon56modder Posted August 18, 2015 Author Share Posted August 18, 2015 Thanks I have an idea of trying to get the position of my building using positions of other buildings, then trying to detect if the mouse is over this zone. Link to comment Share on other sites More sharing options...
MrHappyFace Posted August 19, 2015 Share Posted August 19, 2015 I'm pretty sure this could be accomplished with a Kerbal Konstructs building, and a MonoBehaviour that extends the SpaceCenterBuilding class that gets added to the building's GameObject during the space center scene. You'd probably have to instantiate a new ScreenSafeGUIText for it's buildingInfoText field though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now