Jump to content

haselnuss

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation

0 Neutral
  1. And the next problem, I can't solve myself. I want to run some code, if KSP or the user adds, modifies or removes stages in the VAB. What I found is the class GameEvents.StageManager. This class contains the following functions: GameEvents.StageManager.OnStageAdded GameEvents.StageManager.OnStageRemoved GameEvents.StageManager.OnStageSequenceModified Are this the functions I am looking for? How do I use them? The code below is not working and I do not understand the error message, my IDE shows me. void Awake() { GameEvents.StageManager.OnStageAdded(eventStageAdded); } private void eventStageAdded() { //do something }
  2. Thank you, Sarbian. The linked post helped me. Is it possible to update my plugin while KSP is running to test a new version?
  3. I installed both plugins in KSP. The structure of the window of Tac Life Support, which is shown in the VAB, is simpler than the window of Kerbal engineer redux. So I thought, it should be easier to find the lines I am looking for in the source code of Tac Life Support. I was wrong. Can you name the files, which contain the lines for the button in the VAB? The word "button" is used in so many files. I don't know, where to start.
  4. I installed both plugins in KSP. The structure of the window of Tac Life Support, which is shown in the VAB, is simpler than the window of Kerbal engineer redux. So I thought, it should be easier to find the lines I am looking for in the source code of Tac Life Support. I was wrong. Can you name the files, which contain the lines for the button in the VAB? The word "button" is used in so many files. I don't know, where to start.
  5. Hi, I started with the development of my first plugin one week ago. What I have so far is a simple window showing some text, which is only visible in the VAB. Now, I want to add a button at the bottom of the screen inside the VAB. A click on the button should show or hide this window. Can someone help me with this? Thanks is advance, haselnuss
×
×
  • Create New...