SpriteEditor.Gui.GuiMessages.AddDisplayRegion C# (CSharp) Method

AddDisplayRegion() public method

public AddDisplayRegion ( Window callingWindow ) : void
callingWindow FlatRedBall.Gui.Window
return void
        public void AddDisplayRegion(Window callingWindow)
        {
            TextInputWindow textInputWindow = GuiManager.ShowTextInputWindow(
                "Enter name for new Display Region", "Enter Name");
            textInputWindow.Text = 
                FileManager.RemovePath(GuiData.TextureCoordinatesSelectionWindow.DisplayedTexture.Name) +
                " Sub" + (GuiData.ListWindow.TextureListBox.GetItem(GuiData.TextureCoordinatesSelectionWindow.DisplayedTexture).Count + 1);

            textInputWindow.OkClick += AddDisplayRegionOk;
        }