Skip to content

Commit

Permalink
more bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GER-Space committed Mar 21, 2018
1 parent c642c37 commit 55c38ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Binary file modified GameData/KerbalKonstructs/KerbalKonstructs.dll
Binary file not shown.
16 changes: 12 additions & 4 deletions src/Core/StaticObjects/StaticModules/AutoKourse/AutoKourse.cs
Expand Up @@ -28,12 +28,16 @@ public class AutoKourseModule: StaticModule
private Vector3 forward;

private int headingAdj;
private bool isInitialized = false;

public void Awake() {
public void Start() {

Initialize();
if (!isInitialized)
{
Initialize();
}

try {
try {
setTextures();
}
catch {
Expand All @@ -42,7 +46,11 @@ public class AutoKourseModule: StaticModule
}

public override void StaticObjectUpdate() {
setTextures ();
if (!isInitialized)
{
Initialize();
}
setTextures ();
}

private void Initialize()
Expand Down
2 changes: 1 addition & 1 deletion src/Editor/StaticsEditorGUI.cs
Expand Up @@ -309,7 +309,7 @@ private void drawEditorWindow(int id)
GUI.enabled = true;

GUILayout.FlexibleSpace();
if (GUILayout.Button(new GUIContent("Save", "Save all new and edited instances."), GUILayout.Width(fButtonWidth - 10), GUILayout.Height(23)))
if (GUILayout.Button(new GUIContent("Save", "Save all new and edited instances."), GUILayout.Width(110), GUILayout.Height(23)))
{
KerbalKonstructs.instance.saveObjects();
smessage = "Saved all changes to all objects.";
Expand Down

0 comments on commit 55c38ea

Please sign in to comment.