Updated custom layout value names to be more accurate

This commit is contained in:
OpenSauce04
2024-05-26 21:17:37 +01:00
parent 90c64a4e0a
commit 779a0f4af2
9 changed files with 104 additions and 104 deletions

View File

@@ -522,14 +522,14 @@ void Config::ReadLayoutValues() {
if (global) {
ReadBasicSetting(Settings::values.mono_render_option);
ReadBasicSetting(Settings::values.custom_layout);
ReadBasicSetting(Settings::values.custom_top_left);
ReadBasicSetting(Settings::values.custom_top_top);
ReadBasicSetting(Settings::values.custom_top_right);
ReadBasicSetting(Settings::values.custom_top_bottom);
ReadBasicSetting(Settings::values.custom_bottom_left);
ReadBasicSetting(Settings::values.custom_bottom_top);
ReadBasicSetting(Settings::values.custom_bottom_right);
ReadBasicSetting(Settings::values.custom_bottom_bottom);
ReadBasicSetting(Settings::values.custom_top_x);
ReadBasicSetting(Settings::values.custom_top_y);
ReadBasicSetting(Settings::values.custom_top_width);
ReadBasicSetting(Settings::values.custom_top_height);
ReadBasicSetting(Settings::values.custom_bottom_x);
ReadBasicSetting(Settings::values.custom_bottom_y);
ReadBasicSetting(Settings::values.custom_bottom_width);
ReadBasicSetting(Settings::values.custom_bottom_height);
ReadBasicSetting(Settings::values.custom_second_layer_opacity);
}
@@ -1071,14 +1071,14 @@ void Config::SaveLayoutValues() {
if (global) {
WriteBasicSetting(Settings::values.mono_render_option);
WriteBasicSetting(Settings::values.custom_layout);
WriteBasicSetting(Settings::values.custom_top_left);
WriteBasicSetting(Settings::values.custom_top_top);
WriteBasicSetting(Settings::values.custom_top_right);
WriteBasicSetting(Settings::values.custom_top_bottom);
WriteBasicSetting(Settings::values.custom_bottom_left);
WriteBasicSetting(Settings::values.custom_bottom_top);
WriteBasicSetting(Settings::values.custom_bottom_right);
WriteBasicSetting(Settings::values.custom_bottom_bottom);
WriteBasicSetting(Settings::values.custom_top_x);
WriteBasicSetting(Settings::values.custom_top_y);
WriteBasicSetting(Settings::values.custom_top_width);
WriteBasicSetting(Settings::values.custom_top_height);
WriteBasicSetting(Settings::values.custom_bottom_x);
WriteBasicSetting(Settings::values.custom_bottom_y);
WriteBasicSetting(Settings::values.custom_bottom_width);
WriteBasicSetting(Settings::values.custom_bottom_height);
WriteBasicSetting(Settings::values.custom_second_layer_opacity);
}

View File

@@ -56,14 +56,14 @@ void ConfigureLayout::SetConfiguration() {
ui->toggle_swap_screen->setChecked(Settings::values.swap_screen.GetValue());
ui->toggle_upright_screen->setChecked(Settings::values.upright_screen.GetValue());
ui->large_screen_proportion->setValue(Settings::values.large_screen_proportion.GetValue());
ui->custom_top_left->setValue(Settings::values.custom_top_left.GetValue());
ui->custom_top_top->setValue(Settings::values.custom_top_top.GetValue());
ui->custom_top_right->setValue(Settings::values.custom_top_right.GetValue());
ui->custom_top_bottom->setValue(Settings::values.custom_top_bottom.GetValue());
ui->custom_bottom_left->setValue(Settings::values.custom_bottom_left.GetValue());
ui->custom_bottom_top->setValue(Settings::values.custom_bottom_top.GetValue());
ui->custom_bottom_right->setValue(Settings::values.custom_bottom_right.GetValue());
ui->custom_bottom_bottom->setValue(Settings::values.custom_bottom_bottom.GetValue());
ui->custom_top_x->setValue(Settings::values.custom_top_x.GetValue());
ui->custom_top_y->setValue(Settings::values.custom_top_y.GetValue());
ui->custom_top_width->setValue(Settings::values.custom_top_width.GetValue());
ui->custom_top_height->setValue(Settings::values.custom_top_height.GetValue());
ui->custom_bottom_x->setValue(Settings::values.custom_bottom_x.GetValue());
ui->custom_bottom_y->setValue(Settings::values.custom_bottom_y.GetValue());
ui->custom_bottom_width->setValue(Settings::values.custom_bottom_width.GetValue());
ui->custom_bottom_height->setValue(Settings::values.custom_bottom_height.GetValue());
ui->custom_second_layer_opacity->setValue(
Settings::values.custom_second_layer_opacity.GetValue());
bg_color =
@@ -82,14 +82,14 @@ void ConfigureLayout::RetranslateUI() {
void ConfigureLayout::ApplyConfiguration() {
Settings::values.large_screen_proportion = ui->large_screen_proportion->value();
Settings::values.custom_top_left = ui->custom_top_left->value();
Settings::values.custom_top_top = ui->custom_top_top->value();
Settings::values.custom_top_right = ui->custom_top_right->value();
Settings::values.custom_top_bottom = ui->custom_top_bottom->value();
Settings::values.custom_bottom_left = ui->custom_bottom_left->value();
Settings::values.custom_bottom_top = ui->custom_bottom_top->value();
Settings::values.custom_bottom_right = ui->custom_bottom_right->value();
Settings::values.custom_bottom_bottom = ui->custom_bottom_bottom->value();
Settings::values.custom_top_x = ui->custom_top_x->value();
Settings::values.custom_top_y = ui->custom_top_y->value();
Settings::values.custom_top_width = ui->custom_top_width->value();
Settings::values.custom_top_height = ui->custom_top_height->value();
Settings::values.custom_bottom_x = ui->custom_bottom_x->value();
Settings::values.custom_bottom_y = ui->custom_bottom_y->value();
Settings::values.custom_bottom_width = ui->custom_bottom_width->value();
Settings::values.custom_bottom_height = ui->custom_bottom_height->value();
Settings::values.custom_second_layer_opacity = ui->custom_second_layer_opacity->value();
ConfigurationShared::ApplyPerGameSetting(&Settings::values.layout_option, ui->layout_combobox);

View File

@@ -198,14 +198,14 @@
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="lb_top_left">
<widget class="QLabel" name="lb_top_x">
<property name="text">
<string>X Position</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="custom_top_left">
<widget class="QSpinBox" name="custom_top_x">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -215,14 +215,14 @@
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lb_top_top">
<widget class="QLabel" name="lb_top_y">
<property name="text">
<string>Y Position</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="custom_top_top">
<widget class="QSpinBox" name="custom_top_y">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -232,14 +232,14 @@
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="lb_top_right">
<widget class="QLabel" name="lb_top_width">
<property name="text">
<string>Width</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="custom_top_right">
<widget class="QSpinBox" name="custom_top_width">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -249,14 +249,14 @@
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="lb_top_bottom">
<widget class="QLabel" name="lb_top_height">
<property name="text">
<string>Height</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="custom_top_bottom">
<widget class="QSpinBox" name="custom_top_height">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -281,14 +281,14 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="lb_bottom_left">
<widget class="QLabel" name="lb_bottom_x">
<property name="text">
<string>X Position</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="custom_bottom_left">
<widget class="QSpinBox" name="custom_bottom_x">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -298,14 +298,14 @@
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lb_bottom_top">
<widget class="QLabel" name="lb_bottom_y">
<property name="text">
<string>Y Position</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="custom_bottom_top">
<widget class="QSpinBox" name="custom_bottom_y">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -315,14 +315,14 @@
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="lb_bottom_right">
<widget class="QLabel" name="lb_bottom_width">
<property name="text">
<string>Width</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="custom_bottom_right">
<widget class="QSpinBox" name="custom_bottom_width">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
@@ -332,14 +332,14 @@
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="lb_bottom_bottom">
<widget class="QLabel" name="lb_bottom_height">
<property name="text">
<string>Height</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="custom_bottom_bottom">
<widget class="QSpinBox" name="custom_bottom_height">
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>