public override void DrawGui(MapOverlayGui gui) { GUILayout.BeginHorizontal(); GUILayout.Label("Accuracy"); double temp; var cutoff = GUILayout.TextField(_accuracy.ToString()); GUILayout.EndHorizontal(); if (Double.TryParse(cutoff, out temp)) { _accuracy = temp; } else if (cutoff == "") { _accuracy = 0; } GUILayout.BeginHorizontal(); GUILayout.Label("Max slope"); double temp2; var cutoff2 = GUILayout.TextField(_max.ToString()); GUILayout.EndHorizontal(); if (Double.TryParse(cutoff2, out temp2)) { _max = temp2; } else if (cutoff == "") { _max = 0; } }
public override void DrawGui(MapOverlayGui window) { if (GUILayout.Button("Science Map Options")) { _scienceOverlayView = new ScienceOverlayView(this); } }
public override void DrawGui(MapOverlayGui gui) { base.DrawGui(gui); if (GUILayout.Button("Resource Options")) { new ResourceOverlayView(this); } }
public void ToggleGui() { if (_gui != null) { _gui.SetVisible(false); } _gui = new MapOverlayGui(this); _gui.SetVisible(true); }
public virtual void DrawGui(MapOverlayGui gui) { }