예제 #1
0
 public clsRGBA_sng(clsRGBA_sng CopyItem)
     : base(CopyItem.Red, CopyItem.Green, CopyItem.Blue)
 {
     this.Alpha = CopyItem.Alpha;
 }
예제 #2
0
 public frmOptions()
 {
     base.FormClosing += new FormClosingEventHandler(this.frmOptions_FormClosing);
     this.ObjectDataPathSet = new ctrlPathSet("Object Data Directories");
     this.TilesetsPathSet = new ctrlPathSet("Tilesets Directories");
     this.lstKeyboardControls_Items = new clsOption<clsKeyboardControl>[0];
     this.AllowClose = false;
     this.InitializeComponent();
     this.Icon = modProgram.ProgramIcon;
     this.TilesetsPathSet.Dock = DockStyle.Fill;
     this.ObjectDataPathSet.Dock = DockStyle.Fill;
     this.TableLayoutPanel1.Controls.Add(this.TilesetsPathSet, 0, 0);
     this.TableLayoutPanel1.Controls.Add(this.ObjectDataPathSet, 0, 1);
     this.ChangedKeyControls = (modControls.clsKeyboardProfile) modControls.KeyboardProfile.GetCopy(new modControls.clsKeyboardProfileCreator());
     this.txtAutosaveChanges.Text = modIO.InvariantToString_uint(modSettings.Settings.AutoSaveMinChanges);
     this.txtAutosaveInterval.Text = modIO.InvariantToString_uint(modSettings.Settings.AutoSaveMinInterval_s);
     this.cbxAutosaveCompression.Checked = modSettings.Settings.AutoSaveCompress;
     this.cbxAutosaveEnabled.Checked = modSettings.Settings.AutoSaveEnabled;
     this.cbxAskDirectories.Checked = modSettings.Settings.DirectoriesPrompt;
     this.cbxPointerDirect.Checked = modSettings.Settings.DirectPointer;
     this.DisplayFont = modSettings.Settings.MakeFont();
     this.UpdateDisplayFontLabel();
     this.txtFOV.Text = modIO.InvariantToString_dbl(modSettings.Settings.FOVDefault);
     this.MinimapCliffColour = new clsRGBA_sng(modSettings.Settings.MinimapCliffColour);
     this.clrMinimapCliffs = new ctrlColour(this.MinimapCliffColour);
     this.pnlMinimapCliffColour.Controls.Add(this.clrMinimapCliffs);
     this.MinimapSelectedObjectColour = new clsRGBA_sng(modSettings.Settings.MinimapSelectedObjectsColour);
     this.clrMinimapSelectedObjects = new ctrlColour(this.MinimapSelectedObjectColour);
     this.pnlMinimapSelectedObjectColour.Controls.Add(this.clrMinimapSelectedObjects);
     this.txtMinimapSize.Text = modIO.InvariantToString_int(modSettings.Settings.MinimapSize);
     this.cbxMinimapObjectColours.Checked = modSettings.Settings.MinimapTeamColours;
     this.cbxMinimapTeamColourFeatures.Checked = modSettings.Settings.MinimapTeamColoursExceptFeatures;
     this.cbxMipmaps.Checked = modSettings.Settings.Mipmaps;
     this.cbxMipmapsHardware.Checked = modSettings.Settings.MipmapsHardware;
     this.txtUndoSteps.Text = modIO.InvariantToString_uint(modSettings.Settings.UndoLimit);
     this.TilesetsPathSet.SetPaths(modSettings.Settings.TilesetDirectories);
     this.ObjectDataPathSet.SetPaths(modSettings.Settings.ObjectDataDirectories);
     this.TilesetsPathSet.SelectedNum = modMath.Clamp_int(Conversions.ToInteger(modSettings.Settings.get_Value(modSettings.Setting_DefaultTilesetsPathNum)), -1, modSettings.Settings.TilesetDirectories.Count - 1);
     this.ObjectDataPathSet.SelectedNum = modMath.Clamp_int(Conversions.ToInteger(modSettings.Settings.get_Value(modSettings.Setting_DefaultObjectDataPathNum)), -1, modSettings.Settings.ObjectDataDirectories.Count - 1);
     this.txtMapBPP.Text = modIO.InvariantToString_int(modSettings.Settings.MapViewBPP);
     this.txtMapDepth.Text = modIO.InvariantToString_int(modSettings.Settings.MapViewDepth);
     this.txtTexturesBPP.Text = modIO.InvariantToString_int(modSettings.Settings.TextureViewBPP);
     this.txtTexturesDepth.Text = modIO.InvariantToString_int(modSettings.Settings.TextureViewDepth);
     this.cbxPickerOrientation.Checked = modSettings.Settings.PickOrientation;
     this.UpdateKeyboardControls(-1);
 }