public DevToolsForm() { instance = this; Size = new Size(300, 500); Text = "Dev Tools"; BackgroundImage = Image.FromFile(Static.spritesPath + "terminal.png"); BackgroundImageLayout = ImageLayout.Center; BackColor = Color.Black; Icon = new Icon(Static.spritesPath + "devtools.ico"); // add ? icon MinimizeBox = false; MaximizeBox = false; HelpButton = true; FormBorderStyle = FormBorderStyle.FixedSingle; Show(); Init(); }
protected override void OnClosed(EventArgs e) { instance = null; Audio.PlaySound("sfx_back", false); }