1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
auto OptionSettings::construct() -> void {
setCollapsible();
setVisible(false);
rewind.setText("Rewind").setChecked(settings.general.rewind).onToggle([&] {
settings.general.rewind = rewind.checked();
program.rewindReset();
}).doToggle();
rewindLayout.setAlignment(1);
rewindHint.setText("Allows you to reverse time via the rewind hotkey").setFont(Font().setSize(7.0)).setForegroundColor(SystemColor::Sublabel);
runAhead.setText("Run-Ahead").setEnabled(co_serializable()).setChecked(settings.general.runAhead && co_serializable()).onToggle([&] {
settings.general.runAhead = runAhead.checked() && co_serializable();
program.runAheadUpdate();
});
runAheadLayout.setAlignment(1);
runAheadHint.setText("Removes one frame of input lag, but doubles system requirements").setFont(Font().setSize(7.0)).setForegroundColor(SystemColor::Sublabel);
autoSaveMemory.setText("Auto-Save Memory Periodically").setChecked(settings.general.autoSaveMemory).onToggle([&] {
settings.general.autoSaveMemory = autoSaveMemory.checked();
});
autoSaveMemoryLayout.setAlignment(1);
autoSaveMemoryHint.setText("Helps safeguard game saves from being lost").setFont(Font().setSize(7.0)).setForegroundColor(SystemColor::Sublabel);
nativeFileDialogs.setText("Use Native File Dialogs").setChecked(settings.general.nativeFileDialogs).onToggle([&] {
settings.general.nativeFileDialogs = nativeFileDialogs.checked();
});
nativeFileDialogsLayout.setAlignment(1);
nativeFileDialogsHint.setText("More familiar, but lacks advanced loading options").setFont(Font().setSize(7.0)).setForegroundColor(SystemColor::Sublabel);
}
|