예제 #1
0
        public CopyTexturesMultiButtonMessageBox()
            : base(GuiManager.Cursor)
        {
            HasMoveBar     = true;
            HasCloseButton = true;

            LoadTextures();

            addRelativeToggleButton();
            addTextDisplay();
            addListBox();
            addCopyAllButton();
            addMakeAllRelativeButton();
            addSaveButton();
            addCancelButton();

            ScaleY = 21;
            ScaleX = 23;

            GuiManager.BringToFront(this.mListBox);

            ResizeBox();

            this.Resizable = true;
            this.Resizing += new GuiMessage(ResizingThis);
        }
예제 #2
0
        /// <summary>
        /// Shows a ListDisplayWindow with the undos in the UndoManager.  This is provided as a convenience function so it
        /// can be used in MenuStrips.
        /// </summary>
        /// <param name="callingWindow">This property will not be used - it's here to match the GuiMessage delegate.</param>
        public static void ShowListDisplayWindow(Window callingWindow)
        {
            #region If the ListDisplayWindow hasn't been created yet, create it

            if (mInstructionListDisplayWindow == null)
            {
                mInstructionListDisplayWindow = new ListDisplayWindow(GuiManager.Cursor);

                mInstructionListDisplayWindow.ListShowing    = mInstructions;
                mInstructionListDisplayWindow.HasMoveBar     = true;
                mInstructionListDisplayWindow.HasCloseButton = true;
                mInstructionListDisplayWindow.Resizable      = true;
                mInstructionListDisplayWindow.ScaleX         = 9;
                mInstructionListDisplayWindow.X    = SpriteManager.Camera.XEdge * 2 - mInstructionListDisplayWindow.ScaleX;
                mInstructionListDisplayWindow.Name = "Undos";

                GuiManager.AddWindow(mInstructionListDisplayWindow);
            }

            #endregion

            #region Show and bring the ListDisplayWindow to the top

            mInstructionListDisplayWindow.Visible = true;
            GuiManager.BringToFront(mInstructionListDisplayWindow);

            #endregion
        }
예제 #3
0
        private static void ClickShowAssemblyTypes(Window callingWindow)
        {
            mAssemblyTypeListDisplayWindow.Visible = true;
            GuiManager.BringToFront(mAssemblyTypeListDisplayWindow);

            mAssemblyTypeListDisplayWindow.ListShowing = EditorData.EditorLogic.CurrentAssembly.GetTypes();
        }
예제 #4
0
        private void ShowCameraBounds(Window callingWindow)
        {
            GuiData.CameraBoundsPropertyGrid.Visible = true;

            GuiManager.BringToFront(GuiData.CameraBoundsPropertyGrid);
            GuiData.CameraBoundsPropertyGrid.UpdateDisplayedProperties();
        }
예제 #5
0
 public static void ShowCameraBounds()
 {
     mCameraBoundsPropertyGrid.Visible = true;
     GuiManager.BringToFront(mCameraBoundsPropertyGrid);
 }
예제 #6
0
 void ShowShapeCollectionPropertiesWindow(Window callingWindow)
 {
     GuiData.ShapeCollectionPropertyGrid.Visible = true;
     GuiManager.BringToFront(GuiData.ShapeCollectionPropertyGrid);
 }
예제 #7
0
 void ShowScenePropertiesWindow(Window callingWindow)
 {
     GuiData.ScenePropertyGrid.Visible = true;
     GuiManager.BringToFront(GuiData.ScenePropertyGrid);
 }
예제 #8
0
 void ShowNodeNetworkPropertiesWindow(Window callingWindow)
 {
     GuiData.NodeNetworkPropertyGrid.Visible = true;
     GuiManager.BringToFront(GuiData.NodeNetworkPropertyGrid);
 }
예제 #9
0
 void ShowEditorPropertiesWindow(Window callingWindow)
 {
     GuiData.EditorPropertiesGrid.Visible = true;
     GuiManager.BringToFront(GuiData.EditorPropertiesGrid);
 }
 void ShowUsedMembersWindow(Window callingWindow)
 {
     GuiData.UsedPropertySelectionWindow.Visible = true;
     GuiManager.BringToFront(GuiData.UsedPropertySelectionWindow);
 }
 void ShowToolsWindow(Window callingWindow)
 {
     GuiData.ToolsWindow.Visible = true;
     GuiManager.BringToFront(GuiData.ToolsWindow);
 }
예제 #12
0
 private void ShowLineGridProperties(Window callingWindow)
 {
     GuiData.LineGridPropertyGrid.Visible = true;
     GuiManager.BringToFront(GuiData.LineGridPropertyGrid);
     //GuiData.LineGrid.Visible = true;
 }
예제 #13
0
 private void ShowEditorCameraProperties(Window callingWindow)
 {
     GuiData.CameraPropertyGrid.Visible = true;
     GuiManager.BringToFront(GuiData.CameraPropertyGrid);
 }
예제 #14
0
 private void toggleToolsVisibility(Window callingWindow)
 {
     GuiData.ToolsWindow.Visible = true;
     GuiManager.BringToFront(GuiData.ToolsWindow);
 }
예제 #15
0
 private void toggleSpriteListVisibility(Window callingWindow)
 {
     GuiData.ListWindow.Visible = true;
     GuiManager.BringToFront(GuiData.ListWindow);
 }
예제 #16
0
 private void toggleEditorPropertiesVisibility(Window callingWindow)
 {
     GuiData.EditorPropertiesGrid.Visible = true;
     GuiManager.BringToFront(GuiData.EditorPropertiesGrid);
 }
예제 #17
0
 private void toggleCameraPropertiesVisibility(Window callingWindow)
 {
     GuiData.CameraPropertyGrid.Visible = true;
     GuiManager.BringToFront(GuiData.CameraPropertyGrid);
 }