コード例 #1
0
        private void InitMenuPanel()
        {
            menuPanel = new UITweenPanel();
            menuPanel.AddConstraint(Edge.CenterXY, null, Edge.CenterXY);
            menuPanel.Alpha = 0.5f;
            menuPanel.AddChild(GetMenuEntry("New Game"));
            menuPanel.AddChild(GetMenuEntry("Continue"));
            menuPanel.AddChild(GetMenuEntry("Options"));
            menuPanel.AddChild(GetMenuEntry("Help"));
            menuPanel.AddChild(GetMenuEntry("Exit"));

            uiManager.Add(menuPanel);
        }
コード例 #2
0
ファイル: Menu.cs プロジェクト: adamxi/SharpDXFramework
        public Menu()
        {
            //UIManager.DrawDebug = true;
            uiManager = new UIManager();
            uiManager.EnableProfilling = true;

            UITweenPanel menuPanel = new UITweenPanel();
            menuPanel.Alpha = 0f;
            menuPanel.AddConstraint( Edge.CenterXY, null, Edge.CenterXY );
            menuPanel.AddChild( GetMenuEntry( menuPanel, "New Game" ) );
            menuPanel.AddChild( GetMenuEntry( menuPanel, "Continue" ) );
            menuPanel.AddChild( GetMenuEntry( menuPanel, "Options" ) );
            menuPanel.AddChild( GetMenuEntry( menuPanel, "Help" ) );
            menuPanel.AddChild( GetMenuEntry( menuPanel, "Exit" ) );

            uiManager.Add( menuPanel );
        }
コード例 #3
0
        public Menu()
        {
            //UIManager.DrawDebug = true;
            uiManager = new UIManager();
            uiManager.EnableProfilling = true;

            UITweenPanel menuPanel = new UITweenPanel();

            menuPanel.Alpha = 0f;
            menuPanel.AddConstraint(Edge.CenterXY, null, Edge.CenterXY);
            menuPanel.AddChild(GetMenuEntry(menuPanel, "New Game"));
            menuPanel.AddChild(GetMenuEntry(menuPanel, "Continue"));
            menuPanel.AddChild(GetMenuEntry(menuPanel, "Options"));
            menuPanel.AddChild(GetMenuEntry(menuPanel, "Help"));
            menuPanel.AddChild(GetMenuEntry(menuPanel, "Exit"));

            uiManager.Add(menuPanel);
        }
コード例 #4
0
        private void InitMenuPanel()
        {
            menuPanel = new UITweenPanel();
            menuPanel.AddConstraint(Edge.CenterXY, null, Edge.CenterXY);
            menuPanel.Alpha = 0.5f;
            menuPanel.AddChild(GetMenuEntry("New Game"));
            menuPanel.AddChild(GetMenuEntry("Continue"));
            menuPanel.AddChild(GetMenuEntry("Options"));
            menuPanel.AddChild(GetMenuEntry("Help"));
            menuPanel.AddChild(GetMenuEntry("Exit"));

            uiManager.Add(menuPanel);
        }