예제 #1
0
        public override void OnInitializeScene(GameFramework g)
        {
            BindGameController();

            font_small           = g.CANVAS.CreateFont(new System.Drawing.Font("Arial", 12));
            font_large           = g.CANVAS.CreateFont(new System.Drawing.Font("Arial", 28));
            menu                 = new PanelMenu(font_small, new PanelMenuSelectHandler(MenuHandler));
            menu.ForegroundColor = Color.White;
            menu.BackgroundColor = Color.Black;
            menu.BorderColor     = Color.White;

            //menu.ScrollButtonWidth = 20;
            menu.SetHeight(100);
            menu.SetPosition(200, 200);
            menu.SetWidth(100);
            //menu.DrawFormat = DrawTextFormat.None;

            int height = menu.LayoutMenuOptions(new string[] {
                "item1",
                "item2",
                "item3",
                "item4",
                "item5",
                "item6",
                "item7",
                "item8 ",
                "item9 ",
                "item10"
            }, PanelLayout.HorizontalFree);
        }