示例#1
0
 public LoadWorldForm(Form previousForm, Integration.IMouse mouse, Engine.IDrawer drawer, IGameScene scene, StartUp init) : base(new Color(100, 200, 255), 300, previousForm, mouse, drawer)
 {
     controls.Add(new Label(new Vector2(0, 40), "Enter path to file", 50, drawer, mouse));
     txtFile = new Button(new Vector2(0, 0), " ", 50, StaticExtensions.configureAsTextBox(false, scene), drawer, mouse);
     controls.Add(new Button(new Vector2(0, -50), "Load Save", 50, LoadSave, drawer, mouse));
     controls.Add(txtFile);
     this.init = init;
 }
示例#2
0
 public SaveWorldForm(SaveManager manager, Form PrevForm, IMouse mouse, Engine.IDrawer drawer, IGameScene scene) : base(new Color(200, 100, 0), 300, PrevForm, mouse, drawer)
 {
     controls.Add(new Label(new Vector2(0, 40), "Enter path to file", 50, drawer, mouse));
     txtFile = new Button(new Vector2(0, 0), " ", 50, StaticExtensions.configureAsTextBox(false, scene), drawer, mouse);
     controls.Add(new Button(new Vector2(0, -50), "Save world", 50, SaveSave, drawer, mouse));
     controls.Add(txtFile);
     this.manager = manager;
 }
示例#3
0
        public NewWorldForm(Form previousForm, StartUp init, IMouse mouse, IDrawer drawer, IGameScene scene) : base(new Color(200, 100, 0), 300, previousForm, mouse, drawer)
        {
            IList <Box> PreBoxs = new Box[]
            {
                new Box("0", StaticExtensions.configureAsTextBox(true, scene)),
                new Box("0", StaticExtensions.configureAsTextBox(true, scene)),
                new Box("Generate", GenerateWorld)
            };

            controls.Add(new Label(new Vector2(-30, 20), "size", 20, drawer, mouse));
            controls.Add(new Label(new Vector2(-30, -10), "seed", 20, drawer, mouse));
            parameters = new SelectBox(new Vector2(0, 20), PreBoxs, drawer, mouse);
            controls.Add(parameters);
            this.init = init;
        }