|
@@ -330,17 +330,105 @@ void SettingsWidget::on_patch_texts_checkbox_stateChanged(int arg1)
|
|
|
processParameterChange();
|
|
|
if (arg1 == Qt::Checked) {
|
|
|
Settings::setValue("Components/texts_main", true);
|
|
|
- Settings::updatePatchComponentsDependencies();
|
|
|
} else {
|
|
|
Settings::setValue("Components/texts_main", false);
|
|
|
- Settings::updatePatchComponentsDependencies();
|
|
|
}
|
|
|
checkIfParametersWereReset();
|
|
|
}
|
|
|
|
|
|
|
|
|
+void SettingsWidget::on_patch_items_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/texts_items", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/texts_items", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
+
|
|
|
+void SettingsWidget::on_patch_emotes_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/texts_emotes", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/texts_emotes", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
+
|
|
|
+void SettingsWidget::on_patch_maps_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/maps", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/maps", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
+
|
|
|
+void SettingsWidget::on_patch_textures_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/textures", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/textures", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
+
|
|
|
+void SettingsWidget::on_patch_loadscreens_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/loadscreens", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/loadscreens", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
+
|
|
|
+void SettingsWidget::on_patch_sounds_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/sounds", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/sounds", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
+
|
|
|
+void SettingsWidget::on_patch_video_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/videos", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/videos", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
|
|
|
+void SettingsWidget::on_patch_force_apply_button_clicked()
|
|
|
+{
|
|
|
+ // TODO(endevir): Implement
|
|
|
+}
|
|
|
|
|
|
+void SettingsWidget::on_micropatch_checkbox_stateChanged(int arg1)
|
|
|
+{
|
|
|
+ processParameterChange();
|
|
|
+ if (arg1 == Qt::Checked) {
|
|
|
+ Settings::setValue("Components/micropatch", true);
|
|
|
+ } else {
|
|
|
+ Settings::setValue("Components/micropatch", false);
|
|
|
+ }
|
|
|
+ checkIfParametersWereReset();
|
|
|
+}
|
|
|
|
|
|
void SettingsWidget::on_interface_scale_combobox_currentIndexChanged(const QString &arg1)
|
|
|
{
|
|
@@ -406,5 +494,7 @@ void SettingsWidget::onPatchTotalOperationsFinished()
|
|
|
ui->micropatch_checkbox->setEnabled(true);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+void SettingsWidget::on_apply_changes_button_clicked()
|
|
|
+{
|
|
|
+ Settings::updatePatchComponentsDependencies();
|
|
|
+}
|