using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.CodeDom.Compiler;
using System.CodeDom;
using System.IO;
using System.Xml;
using Microsoft.Xna;
using Microsoft.Xna.Framework;
using DarkWynter.Stream;
using DarkWynter.Engine.Globals;
using DarkWynter.Engine.Utilities;
using DarkWynter.Game;
using DarkWynter.Game.Globals;
using DarkWynter.Game.GameObjects;
using DarkWynter.Game.Controllers;
using DarkWynter.App.Surveys;
using DarkWynter.App.ChallengeSet;
using System.Threading;
using CSTextEditor;
namespace DarkWynter.App
{
///
/// GameForm controls the game entry point as well as the compiler entry
/// points for the Game2Learn system
///
public partial class GameForm : Form
{
public static DarkWynterGame dwGameControl;
/// Initializes a new DarkWynter host form
public GameForm()
{
InitializeComponent();
GameForm.dwGameControl = this.darkWynterGameControl;
//compilerPanel.Hide();
//dialogueGroupPanel.Hide();
//saveButton.Hide();
//runButton.Hide();
//compileButton.Hide();
fileToolStrip.Visible = true;
}
#region Quit, Enter, Load (Mostly Not Used)
///
/// Executed when the user clicks the quit button
///
/// Quit button that has been clicked
/// Not used
private void quitClicked(object sender, FormClosingEventArgs e)
{
string name = Logging.CreateFileName();
Logging.writeG2LLog(name);
//Logging.writeG2LSurvey(name);
Application.Exit();
}
private void quitClickedButton(object sender, EventArgs e)
{
// ... triggers FormClosingEvent quitClicked()
Application.Exit();
}
private void enterClicked(object sender, EventArgs e)
{
//DarkWynterGame.gameControllers[0].
}
private void GameForm_Load(object sender, EventArgs e)
{
}
# endregion
#region ApplicationMain Methods
private void hideAll()
{
//levelEditorPanel.Hide();
//contentLoader.Hide();
//cutSceneMain.Hide();
}
private void cutSceneButton_Click(object sender, EventArgs e)
{
hideAll();
//cutSceneMain.MdiParent = this;
//cutSceneMain.Dock = DockStyle.Fill;
//cutSceneMain.MinimizeBox = false;
//cutSceneMain.MaximizeBox = false;
//cutSceneMain.FormBorderStyle = FormBorderStyle.None;
//cutSceneMain.Show();
}
private void levelEditorButton_Click(object sender, EventArgs e)
{
hideAll();
//levelEditorMain.MdiParent = this;
//levelEditorMain.Dock = DockStyle.Fill;
//levelEditorMain.MinimizeBox = false;
//levelEditorMain.MaximizeBox = false;
//levelEditorMain.FormBorderStyle = FormBorderStyle.None;
//levelEditorMain.Show();
}
private void contentLoaderButton_Click(object sender, EventArgs e)
{
hideAll();
//contentLoaderMain.MdiParent = this;
//contentLoader.Dock = DockStyle.Left;
//contentLoaderMain.MinimizeBox = false;
//contentLoaderMain.MaximizeBox = false;
//contentLoaderMain.FormBorderStyle = FormBorderStyle.None;
//contentLoader.Show();
//this.Controls.Add(contentLoader);
}
#endregion
}
}