Ejemplo n.º 1
0
        public override void LoadContent()
        {
            base.LoadContent();

            cam = new Camera(GraphicsDevice);
            uiManager = new UIManager();
            //uiManager.EnableProfilling = true;

            var menuPanel = new UIPanel();
            menuPanel.AddConstraint(Edge.CenterXY, null, Edge.CenterXY);
            menuPanel.Alpha = 0f;

            var testScenesButton = GetMenuEntry(menuPanel, "UI Test Scenes");
            testScenesButton.InputReleased += testScenes;
            menuPanel.AddChild(testScenesButton);

            var transitionScenesButton = GetMenuEntry(menuPanel, "Transition Test Scenes");
            transitionScenesButton.InputReleased += TransitionScenesButton_InputReleased;
            menuPanel.AddChild(transitionScenesButton);

            var exitButton = GetMenuEntry(menuPanel, "Exit");
            exitButton.InputReleased += ExitButton_InputReleased;
            menuPanel.AddChild(exitButton);

            uiManager.Add(menuPanel);
        }
Ejemplo n.º 2
0
        public override void LoadContent()
        {
            UIManager.DrawDebug = false;
            base.LoadContent();
            cam = new Camera(GraphicsDevice);
            uiManager = new UIManager();
            uiManager.EnableProfilling = true;

            InitTextWindow();
            InitMenuPanel();
            InitWindow();
        }