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(); }
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); }
protected MonoFont GetMonoFont(ISkinFile file, string category, string name) { MonoFont resource = file.GetFont(DrawBoxResourceGroup, category, name); return(resource); }
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); }
public virtual void Initialize(int bufferWidth, int bufferHeight, ISkinFile file) { Initialize(bufferWidth, bufferHeight, DefaultCategory, file); }
protected ISprite GetTexture(ISkinFile file, string category, string name) { ISprite resource = file.GetSprite(DrawBoxResourceGroup, category, name); return(resource); }
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); }
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(); }
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); }
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); }
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); }
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); }
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); }