aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2021-02-11 14:42:37 +0300
committerGitHub <noreply@github.com>2021-02-11 14:42:37 +0300
commit940b04adb17b68402635c0622ca155da9cf358db (patch)
tree86318da8df21c6a1879046a0057c410a0af4404c
parent617f956f2af896f691910abdec11da1960a87854 (diff)
aolayer Debug text bamboozled (#461)
Set focus to chat on pos remove click
-rw-r--r--src/aolayer.cpp8
-rw-r--r--src/courtroom.cpp1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index 5b19c6ac..61b398f4 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -140,7 +140,9 @@ void BackgroundLayer::load_image(QString p_filename)
transform_mode =
ao_app->get_scaling(ao_app->read_design_ini("scaling", design_path));
stretch = ao_app->read_design_ini("stretch", design_path).startsWith("true");
+#ifdef DEBUG_MOVIE
qDebug() << "[BackgroundLayer] BG loaded: " << p_filename;
+#endif
start_playback(ao_app->get_image_suffix(ao_app->get_background_path(p_filename)));
}
@@ -187,9 +189,11 @@ void CharLayer::load_image(QString p_filename, QString p_charname,
play_once = true;
preanim_timer->start(duration * tick_ms);
}
+#ifdef DEBUG_MOVIE
qDebug() << "[CharLayer] anim loaded: prefix " << prefix << " filename "
<< current_emote << " from character: " << p_charname
<< " continuous: " << continuous;
+#endif
QList<QString> pathlist = {
ao_app->get_image_suffix(ao_app->get_character_path(
p_charname, prefix + current_emote)), // Default path
@@ -324,7 +328,9 @@ void AOLayer::start_playback(QString p_image)
if (stretch_override != "")
stretch = stretch_override.startsWith("true");
+#ifdef DEBUG_MOVIE
qDebug() << "stretch:" << stretch << "filename:" << p_image;
+#endif
m_reader.setFileName(p_image);
if (m_reader.loopCount() == 0)
play_once = true;
@@ -474,8 +480,10 @@ void CharLayer::load_network_effects()
if (effect == "sfx^") // Currently the only frame result that feeds us
// data, let's yank it in.
effect += f_data;
+#ifdef DEBUG_MOVIE
qDebug() << effect << f_data << "frame" << f_frame << "for"
<< m_emote;
+#endif
movie_effects[f_frame].append(effect);
}
}
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index b1b4dc16..d03bf23f 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -4341,6 +4341,7 @@ void Courtroom::on_pos_remove_clicked()
ui_pos_dropdown->setCurrentIndex(0); // as a last resort, choose the first item in the dropdown
current_side = "";
ui_pos_remove->hide();
+ ui_ic_chat_message->setFocus();
}
void Courtroom::set_iniswap_dropdown()