index fe05e20f2e5a964b59a9d6b649a34c5079f0aa46..2f7d323eb23977e1e8df2c6891e949cbe942658c 100644 (file)
--- a/src/editor/f_options.pas
+++ b/src/editor/f_options.pas
ExtCtrls, ComCtrls, ActnList, Spin, EditBtn, Registry, Math, Types;
type
-
- { TOptionsForm }
-
TOptionsForm = class (TForm)
bOK: TButton;
bCancel: TButton;
cbAllowExit: TCheckBox;
- cbBackup: TCheckBox;
cbCheckerboard: TCheckBox;
- cbCompress: TCheckBox;
cbLanguage: TComboBox;
cbMapOnce: TCheckBox;
cbMonstersDM: TCheckBox;
implementation
uses
- LazFileUtils, f_main, StdConvs, CONFIG, g_language, g_resources, g_options;
+ LazFileUtils, f_main, StdConvs, CONFIG, WADEDITOR, g_language, g_options;
{$R *.lfm}
end;
// Files Tab:
- cbCompress.Checked := Compress;
- cbBackup.Checked := Backup;
SpinEdit3.Value := RecentCount;
// Testing Tab:
// Files tab:
re := SpinEdit3.Value;
- Compress := cbCompress.Checked;
- Backup := cbBackup.Checked;
// Testing tab:
TestD2DExe := ExeEdit.Text;
// save into config
config := TConfig.CreateFile(CfgFileName);
+ config.WriteInt('WADEditor', 'LogLevel', gWADEditorLogLevel);
+
config.WriteInt('Editor', 'DotColor', DotColor);
config.WriteBool('Editor', 'DotEnable', DotEnable);
config.WriteInt('Editor', 'DotStepOne', DotStepOne);
config.WriteStr('Editor', 'Language', gLanguage);
config.WriteInt('Editor', 'RecentCount', re);
- config.WriteBool('Editor', 'Compress', Compress);
- config.WriteBool('Editor', 'Backup', Backup);
config.WriteStr('TestRun', 'GameMode', TestGameMode);
config.WriteStr('TestRun', 'LimTime', TestLimTime);