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); }
/// <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 }
private static void ClickShowAssemblyTypes(Window callingWindow) { mAssemblyTypeListDisplayWindow.Visible = true; GuiManager.BringToFront(mAssemblyTypeListDisplayWindow); mAssemblyTypeListDisplayWindow.ListShowing = EditorData.EditorLogic.CurrentAssembly.GetTypes(); }
private void ShowCameraBounds(Window callingWindow) { GuiData.CameraBoundsPropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.CameraBoundsPropertyGrid); GuiData.CameraBoundsPropertyGrid.UpdateDisplayedProperties(); }
public static void ShowCameraBounds() { mCameraBoundsPropertyGrid.Visible = true; GuiManager.BringToFront(mCameraBoundsPropertyGrid); }
void ShowShapeCollectionPropertiesWindow(Window callingWindow) { GuiData.ShapeCollectionPropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.ShapeCollectionPropertyGrid); }
void ShowScenePropertiesWindow(Window callingWindow) { GuiData.ScenePropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.ScenePropertyGrid); }
void ShowNodeNetworkPropertiesWindow(Window callingWindow) { GuiData.NodeNetworkPropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.NodeNetworkPropertyGrid); }
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); }
private void ShowLineGridProperties(Window callingWindow) { GuiData.LineGridPropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.LineGridPropertyGrid); //GuiData.LineGrid.Visible = true; }
private void ShowEditorCameraProperties(Window callingWindow) { GuiData.CameraPropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.CameraPropertyGrid); }
private void toggleToolsVisibility(Window callingWindow) { GuiData.ToolsWindow.Visible = true; GuiManager.BringToFront(GuiData.ToolsWindow); }
private void toggleSpriteListVisibility(Window callingWindow) { GuiData.ListWindow.Visible = true; GuiManager.BringToFront(GuiData.ListWindow); }
private void toggleEditorPropertiesVisibility(Window callingWindow) { GuiData.EditorPropertiesGrid.Visible = true; GuiManager.BringToFront(GuiData.EditorPropertiesGrid); }
private void toggleCameraPropertiesVisibility(Window callingWindow) { GuiData.CameraPropertyGrid.Visible = true; GuiManager.BringToFront(GuiData.CameraPropertyGrid); }