Inheritance: FlatRedBall.Gui.Window
Esempio n. 1
0
        public static void Initialize()
        {

            Window.KeepWindowsInScreen = false;

            #region Assign engine references

            camera = GameForm.camera;

            #endregion


            fileButtonWindow = new FileButtonWindow(GuiManager.Cursor);

            ToolsWindow = new ToolsWindow();
            mVisibleToggleWindows.Add(ToolsWindow);
            
            ListWindow = new ListWindow(ToolsWindow);
            mVisibleToggleWindows.Add(ListWindow);

            //#region Create AttributesWindow
            //mAttributesWindow = new AttributesWindow(messages);
            //mAttributesWindow.SetPositionTL(84.5f, 25.8f);
            //mAttributesWindow.Visible = false;
            //GuiManager.AddWindow(mAttributesWindow);
            //#endregion

            spriteGridPropertiesWindow = new SpriteGridCreationPropertiesWindow(GuiManager.Cursor);
            srSaveOptions = new SpriteRigSaveOptions(messages, GuiManager.Cursor);

            #region TextureCoordinateSelectionWindow

            mTextureCoordinateSelectionWindow = new TextureCoordinatesSelectionWindow();
            GuiManager.AddWindow(mTextureCoordinateSelectionWindow);
            // set AddToListButtonShown to true before setting the visibility to false so that it updates correclty
            mTextureCoordinateSelectionWindow.AddToListButtonShown = true;
            mTextureCoordinateSelectionWindow.Visible = false;
            mTextureCoordinateSelectionWindow.HasCloseButton = true;
            mTextureCoordinateSelectionWindow.AddToListClickEventAdd(messages.AddDisplayRegion);
            mVisibleToggleWindows.Add(mTextureCoordinateSelectionWindow);

            #endregion

            #region MenuStrip

            mMenuStrip = new SpriteEditor.Gui.MenuStrip();
            mMenuStrip.SavedSuccess += new EventHandler(mMenuStrip_SavedSuccess);
            
            #endregion

            GameData.EditorLogic.NodeNetworkEditorManager.AddNodeNetworkMenus(MenuStrip);


            CreateInfoBar();

            CreatePropertyGrids();

            CreateListDisplayWindows();

            List<string> windowsToExclude = new List<string>();
            windowsToExclude.Add(mMenuStrip.Name);

            LayoutManager.LoadWindowLayout(windowsToExclude);

            Window.KeepWindowsInScreen = true;

        }
Esempio n. 2
0
        public static void Initialize()
        {
            Window.KeepWindowsInScreen = false;

            #region Assign engine references

            camera = GameForm.camera;

            #endregion


            fileButtonWindow = new FileButtonWindow(GuiManager.Cursor);

            ToolsWindow = new ToolsWindow();
            mVisibleToggleWindows.Add(ToolsWindow);

            ListWindow = new ListWindow(ToolsWindow);
            mVisibleToggleWindows.Add(ListWindow);

            //#region Create AttributesWindow
            //mAttributesWindow = new AttributesWindow(messages);
            //mAttributesWindow.SetPositionTL(84.5f, 25.8f);
            //mAttributesWindow.Visible = false;
            //GuiManager.AddWindow(mAttributesWindow);
            //#endregion

            spriteGridPropertiesWindow = new SpriteGridCreationPropertiesWindow(GuiManager.Cursor);
            srSaveOptions = new SpriteRigSaveOptions(messages, GuiManager.Cursor);

            #region TextureCoordinateSelectionWindow

            mTextureCoordinateSelectionWindow = new TextureCoordinatesSelectionWindow();
            GuiManager.AddWindow(mTextureCoordinateSelectionWindow);
            // set AddToListButtonShown to true before setting the visibility to false so that it updates correclty
            mTextureCoordinateSelectionWindow.AddToListButtonShown = true;
            mTextureCoordinateSelectionWindow.Visible        = false;
            mTextureCoordinateSelectionWindow.HasCloseButton = true;
            mTextureCoordinateSelectionWindow.AddToListClickEventAdd(messages.AddDisplayRegion);
            mVisibleToggleWindows.Add(mTextureCoordinateSelectionWindow);

            #endregion

            #region MenuStrip

            mMenuStrip = new SpriteEditor.Gui.MenuStrip();
            mMenuStrip.SavedSuccess += new EventHandler(mMenuStrip_SavedSuccess);

            #endregion

            GameData.EditorLogic.NodeNetworkEditorManager.AddNodeNetworkMenus(MenuStrip);


            CreateInfoBar();

            CreatePropertyGrids();

            CreateListDisplayWindows();

            List <string> windowsToExclude = new List <string>();
            windowsToExclude.Add(mMenuStrip.Name);

            LayoutManager.LoadWindowLayout(windowsToExclude);

            Window.KeepWindowsInScreen = true;
        }