aboutsummaryrefslogtreecommitdiff
path: root/include/aoapplication.h
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-16 21:08:43 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-16 21:08:43 +0300
commitb085be5a2a0512c432bc9fd58413a9d8f93d451e (patch)
tree871d7b8c85a7df9db13ab0f9fb35703d9a50628a /include/aoapplication.h
parentb037edc9d8360ee679cae8d5f6c4d138ede4482b (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 'include/aoapplication.h')
-rw-r--r--include/aoapplication.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index f499faf0..052ad08a 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -226,6 +226,9 @@ public:
//Returns the dimensions of widget with specified identifier from p_file
pos_size_type get_element_dimensions(QString p_identifier, QString p_file);
+ //Returns the value to you
+ QString get_design_element(QString p_identifier, QString p_file);
+
//Returns the name of the font with p_identifier from p_file
QString get_font_name(QString p_identifier, QString p_file);
@@ -247,6 +250,9 @@ public:
// Can we use APNG for this? If not, WEBP? If not, GIF? If not, fall back to PNG.
QString get_image_suffix(QString path_to_check);
+ // If this image is static and non-animated, return the supported static image formats. Currently only PNG.
+ QString get_static_image_suffix(QString path_to_check);
+
//Returns the value of p_search_line within target_tag and terminator_tag
QString read_char_ini(QString p_char, QString p_search_line, QString target_tag);