Major changes to the way VOID_Core was implemented to allow a more-extensible core framework for use in multiple scenes.
[VOID.git] / VOIDCore_Flight.cs
blob:a/VOIDCore_Flight.cs -> blob:b/VOIDCore_Flight.cs
--- a/VOIDCore_Flight.cs
+++ b/VOIDCore_Flight.cs
@@ -25,11 +25,27 @@
 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using KSP;
 using System;
+using UnityEngine;
+using ToadicusTools;
 
 namespace VOID
 {
-	public class VOIDCore_Flight : VOIDCore_Generic<VOIDCore_Flight> {}
+	[VOID_Scenes(GameScenes.FLIGHT)]
+	public class VOIDCore_Flight : VOIDCore_Generic<VOIDCore_Flight>
+	{
+		public override void DrawConfigurables()
+		{
+			if (HighLogic.LoadedSceneIsFlight)
+			{
+				this.consumeResource.value = GUITools.Toggle(this.consumeResource, "Consume Resources");
+			}
+
+			base.DrawConfigurables();
+		}
+	}
 }