Beispiel #1
0
 public override void Initialize(CloseEvent closeFunction = null, string title = null, bool resizable = false, bool isDialog = true, string category = null, ISkinFile file = null)
 {
     throw new NotImplementedException();
 }
Beispiel #2
0
        public void Initialize(SpawnPoint _spawnPoint, CloseEvent closeFunction = null, string title = null, bool resizable = false, bool isDialog = true, string category = null, ISkinFile file = null)
        {
            spawnPoint = _spawnPoint;

            base.Initialize(closeFunction, title, resizable, isDialog, category, file);
        }
Beispiel #3
0
        protected MonoFont GetMonoFont(ISkinFile file, string category, string name)
        {
            MonoFont resource = file.GetFont(DrawBoxResourceGroup, category, name);

            return(resource);
        }
Beispiel #4
0
        public static AddSpawnEntityForm ShowDialogue(Window window, SpawnPoint _spawnPoint, CloseEvent closeFunction = null, string category = null, ISkinFile file = null)
        {
            var form = new AddSpawnEntityForm();

            form.Initialize(_spawnPoint, closeFunction, "Add Entity to Spawn", true, true, category, file);
            form.Show(window);

            return(form);
        }
Beispiel #5
0
 public virtual void Initialize(int bufferWidth, int bufferHeight, ISkinFile file)
 {
     Initialize(bufferWidth, bufferHeight, DefaultCategory, file);
 }
Beispiel #6
0
        protected ISprite GetTexture(ISkinFile file, string category, string name)
        {
            ISprite resource = file.GetSprite(DrawBoxResourceGroup, category, name);

            return(resource);
        }
Beispiel #7
0
        public static EditWorldForm ShowDialogue(Window window, IWorld _world, CloseEvent closeFunction = null, string category = null, ISkinFile file = null)
        {
            var form = new EditWorldForm();

            form.Initialize(_world, closeFunction, "Edit World-Template", true, true, category, file);
            form.Show(window);

            return(form);
        }
Beispiel #8
0
        public virtual void Initialize(int bufferWidth, int bufferHeight, string category = null, ISkinFile file = null)
        {
            if (category == null)
            {
                category = DefaultCategory;
            }
            if (file == null)
            {
                file = DefaultSkinFile;
            }
            display = new char[bufferWidth, bufferHeight];
            Font    = GetMonoFont(file, category, "Font");

            Width  = bufferWidth * (Font.CharWidth + Font.HorizontalSpace);
            Height = bufferHeight * (Font.CharHeight + Font.VerticalSpace);

            inputMachine              = new TextInputMachine(KeyboardInput, Font);
            inputMachine.CursorMoved += new TextInputMachine.CursorEvent(machine_CursorMoved);
            inputMachine.Cursor       = inputMachine.Cursor;       //This will call machine_CursorMoved()

            base.BaseInitialize();
        }
Beispiel #9
0
        public void Initialize(IWorld _world, CloseEvent closeFunction = null, string title = null, bool resizable = false, bool isDialog = true, string category = null, ISkinFile file = null)
        {
            world = _world;

            base.Initialize(closeFunction, title, resizable, isDialog, category, file);
        }
Beispiel #10
0
        public static EditDefaultSigmoid ShowDialogue(Window window, DefaultSigmoid sigmoid, List <Gene> sigmoidGeneList, CloseEvent closeFunction = null, string category = null, ISkinFile file = null)
        {
            var form = new EditDefaultSigmoid();

            form.Initialize(sigmoid, sigmoidGeneList, closeFunction, "Edit Neuron-list", true, true, category, file);
            form.Show(window);

            return(form);
        }
Beispiel #11
0
        public void Initialize(DefaultSigmoid _sigmoid, List <Gene> _geneList, CloseEvent closeFunction = null, string title = null, bool resizable = false, bool isDialog = true, string category = null, ISkinFile file = null)
        {
            sigmoid  = _sigmoid;
            geneList = _geneList;

            base.Initialize(closeFunction, title, resizable, isDialog, category, file);
        }
Beispiel #12
0
        public static EntityDrawingOptionsForm ShowDialogue(Window window, Simulation _simulation, CloseEvent closeFunction = null, string category = null, ISkinFile file = null)
        {
            var form = new EntityDrawingOptionsForm();

            form.Initialize(_simulation, closeFunction, "Entity Drawing-Options", true, true, category, file);
            form.Show(window);

            return(form);
        }
Beispiel #13
0
        public static AddEntityPainterForm ShowDialogue(Window window, Simulation _simulation, CloseEvent closeFunction = null, string category = null, ISkinFile file = null)
        {
            var form = new AddEntityPainterForm();

            form.Initialize(_simulation, closeFunction, "Add Entity-Painter", true, true, category, file);
            form.Show(window);

            return(form);
        }