diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-05-23 16:10:45 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-05-23 16:10:45 +0200 |
| commit | eb024cb93131cddba8ec1a6094abde8bf1f4eaf3 (patch) | |
| tree | b0478364cd4d267c97334164aa876b41c1a841f9 | |
| parent | 29284c0b21408131b280744f58b78b2792d6a826 (diff) | |
Renamed pos_center to rect from Background/design.ini
| -rw-r--r-- | src/courtroom.cpp | 4 | ||||
| -rw-r--r-- | src/path_functions.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 4540c270..7ea7d284 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1413,7 +1413,7 @@ void Courtroom::set_background(QString p_background, bool display) const QStringList overrides = {"def", "wit", "pro"}; for (const QString &override_pos : overrides) { - if (!ao_app->read_design_ini("court:" + override_pos + "/pos_center", ao_app->get_background_path("design.ini")).isEmpty()) + if (!ao_app->read_design_ini("court:" + override_pos + "/rect", ao_app->get_background_path("design.ini")).isEmpty()) { pos_list.append(override_pos); } @@ -3155,7 +3155,7 @@ void Courtroom::do_effect(QString fx_path, QString fx_sound, QString p_char, QSt return; } QString effect = ao_app->get_effect(fx_path, p_char, p_folder); - if (effect == "") + if (effect.isEmpty()) { ui_vp_effect->stopPlayback(); ui_vp_effect->hide(); diff --git a/src/path_functions.cpp b/src/path_functions.cpp index 4d22e9b9..4a23ac72 100644 --- a/src/path_functions.cpp +++ b/src/path_functions.cpp @@ -100,7 +100,7 @@ QPair<QString, QRect> AOApplication::get_pos_path(const QString &pos, const bool QRect f_rect; if (f_pos_split.size() > 1) { // Subposition, get center info - QStringList arglist = read_design_ini(f_pos + "/pos_center", get_background_path("design.ini")).split(","); + QStringList arglist = read_design_ini(f_pos + "/rect", get_background_path("design.ini")).split(","); if (arglist.size() == 4) { f_rect = QRect(arglist[0].toInt(), arglist[1].toInt(), arglist[2].toInt(), arglist[3].toInt()); |
