/// <summary> /// The class constructor with the parameters. /// </summary> /// <param name="handle">The windows handle of the engine surface.</param> /// <param name="parent">The parent form.</param> public NewProject(IntPtr handle, Form parent) { InitializeComponent(); _handle = handle; _parent = (MainEditorWindow)parent; this.ProjectType.Select(0, 1); }
public DrawTileCommand(MainEditorWindow window, int x, int y, Image image, Image newImage) { this.window = window; this.x = x; this.y = y; this.image = image; this.newImage = newImage; }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); if (Environment.GetCommandLineArgs().Length > 1) { OneTimeRunWindow oneTimeRunWindow = new OneTimeRunWindow(); MainWindow = oneTimeRunWindow; MainWindow.Show(); } else { MainEditorWindow mainEditorWindow = new MainEditorWindow(); MainWindow = mainEditorWindow; MainWindow.Show(); } }
public ZoomInCommand(MainEditorWindow window) { this.window = window; }
public static void Menu_ShowBGSWindow() { MainEditorWindow.Show_MainEditorWindow(); }
public static void Select_BloxGlobal() { MainEditorWindow.Show_MainEditorWindow("blox-main-ed", "global-vars"); }
private static void OpenWindow() { MainEditorWindow window = GetWindow <MainEditorWindow>(); window.titleContent = new GUIContent("City Editor"); }
public FillGridCommand(MainEditorWindow window, Tile[,] oldGrid, Image chosenImage) { this.window = window; this.oldGrid = oldGrid; this.chosenImage = chosenImage; }
public DrawLineCommand(MainEditorWindow window, List<DrawTileCommand> tilesDrawn) { this.window = window; this.tilesDrawn = tilesDrawn; }
public DefaultZoomCommand(MainEditorWindow window, int prevRectSize) { this.window = window; this.prevRectSize = prevRectSize; }