Beispiel #1
0
        protected override void InitializeCore()
        {
            ShowDebug = true;

            //Debugger.Launch();

            stage = new Stage(Context.GraphicsDevice.Viewport.Width, Context.GraphicsDevice.Viewport.Height, true, Context.GraphicsDevice);

            Skin skin = new Skin(Context.GraphicsDevice, "Data/uiskin.json");

            Context.Input.Processor = stage;

            SelectBox box = new SelectBox(selectItems, skin);

            box.SetPosition(200, 300);

            stage.AddActor(box);
        }