コード例 #1
0
 /// <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);
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
 public ZoomInCommand(MainEditorWindow window)
 {
     this.window = window;
 }
コード例 #5
0
 public static void Menu_ShowBGSWindow()
 {
     MainEditorWindow.Show_MainEditorWindow();
 }
コード例 #6
0
 public static void Select_BloxGlobal()
 {
     MainEditorWindow.Show_MainEditorWindow("blox-main-ed", "global-vars");
 }
コード例 #7
0
    private static void OpenWindow()
    {
        MainEditorWindow window = GetWindow <MainEditorWindow>();

        window.titleContent = new GUIContent("City Editor");
    }
コード例 #8
0
 public FillGridCommand(MainEditorWindow window, Tile[,] oldGrid, Image chosenImage)
 {
     this.window = window;
     this.oldGrid = oldGrid;
     this.chosenImage = chosenImage;
 }
コード例 #9
0
 public DrawLineCommand(MainEditorWindow window, List<DrawTileCommand> tilesDrawn)
 {
     this.window = window;
     this.tilesDrawn = tilesDrawn;
 }
コード例 #10
0
 public DefaultZoomCommand(MainEditorWindow window, int prevRectSize)
 {
     this.window = window;
     this.prevRectSize = prevRectSize;
 }