//AboutBox aboutForm = new AboutBox(); #endregion //-------------------------------- #endregion //========= CONSTRUCTORS ========= #region Constructors /** <summary> Constructs the form. </summary> */ public GroupForm(string[] args) { InitializeComponent(); Pathing.SetPathSprites(); Water.LoadResources(); ColorRemapping.LoadResources(); Terrain.LoadResources(); this.fontBold = new SpriteFont(Resources.BoldFont, ' ', 'z', 10); this.drawSettings.Remap1 = RemapColors.IndianRed; this.drawSettings.Remap2 = RemapColors.Gold; this.drawSettings.Remap3 = RemapColors.Bark; this.drawSettings.Slope = -1; this.labelCurrentObject.Text = ""; this.objectImage = new Bitmap(190, 254); this.LoadSettings(null, null); //this.directory = this.defaultDirectory; this.sceneryGroup = new SceneryGroup(); this.sceneryGroup = (SceneryGroup)ObjectData.FromBuffer(Resources.SCGCUST); this.sceneryGroup.ObjectHeader.Flags = 0x7; LoadSceneryGroup(); }
/** <summary> Creates a new water object. </summary> */ private void New(object sender, EventArgs e) { if (!changed || WarningMessageBox.Show(this, "Scenery group has been changed.", "Are you sure you want to continue?") == DialogResult.Yes) { sceneryGroup = (SceneryGroup)ObjectData.FromBuffer(Resources.SCGCUST); sceneryGroup.ObjectHeader.Flags = 0x7; LoadSceneryGroup(); fileName = ""; } }
/** <summary> Creates a new water object. </summary> */ private void New(object sender, EventArgs e) { if (!changed || WarningMessageBox.Show(this, "Water object has been changed.", "Are you sure you want to continue?") == DialogResult.Yes) { waterObject = (Water)ObjectData.FromBuffer(Resources.WTRCYAN); waterObject.Source = SourceTypes.Custom; LoadFromObject(); UpdatePalettes(); SelectColor(); fileName = ""; } }
//-------------------------------- #endregion //========= CONSTRUCTORS ========= #region Constructors /** <summary> Constructs the form. </summary> */ public WaterForm() { SetStyle(ControlStyles.SupportsTransparentBackColor, true); InitializeComponent(); waterObject = (Water)ObjectData.FromBuffer(Resources.WTRCYAN); waterObject.Source = SourceTypes.Custom; LoadFromObject(); UpdatePalettes(); this.animationImage = new Bitmap(180, 208); SelectColor(); changed = false; }