diff options
| author | Crystalwarrior <varsash@gmail.com> | 2019-09-16 21:08:43 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-09-16 21:08:43 +0300 |
| commit | b085be5a2a0512c432bc9fd58413a9d8f93d451e (patch) | |
| tree | 871d7b8c85a7df9db13ab0f9fb35703d9a50628a /src/aoemotebutton.cpp | |
| parent | b037edc9d8360ee679cae8d5f6c4d138ede4482b (diff) | |
Add two new helper functions - get_design_element and get_static_image_suffix
Modify all set_image calls to utilize said suffix helper function
Dynamically change betweehn chatblank, chat, chatmed, chatbig based on the showname's length
Use char.ini showname if showname is set to whitespace (doesn't yet check if char.ini showname is also whitespace)
Diffstat (limited to 'src/aoemotebutton.cpp')
| -rw-r--r-- | src/aoemotebutton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aoemotebutton.cpp b/src/aoemotebutton.cpp index 9c1d3889..ca4d6941 100644 --- a/src/aoemotebutton.cpp +++ b/src/aoemotebutton.cpp @@ -16,7 +16,7 @@ AOEmoteButton::AOEmoteButton(QWidget *p_parent, AOApplication *p_ao_app, int p_x void AOEmoteButton::set_image(QString p_char, int p_emote, QString suffix) { QString emotion_number = QString::number(p_emote + 1); - QString image_path = ao_app->get_character_path(p_char, "emotions/button" + emotion_number + suffix); + QString image_path = ao_app->get_static_image_suffix(ao_app->get_character_path(p_char, "emotions/button" + emotion_number + suffix)); if (file_exists(image_path)) { |
