aboutsummaryrefslogtreecommitdiff
path: root/src/text_file_functions.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-03-12 18:09:56 +0300
committerCrystalwarrior <varsash@gmail.com>2020-03-12 18:09:56 +0300
commit7aa24bf50158b3a93c17c56e1371b72389238185 (patch)
tree1d4a6b1bb763fb7607cc88a5f7b7b53c5bfb6b23 /src/text_file_functions.cpp
parentce3269cc36485e44a85778b0d93b6bfc26f95eb1 (diff)
Add a search bar for server list
Add options for sticky sounds, sticky effects and sticky preanims Optimize the search for areas and music (previously, area search also searched for music in the background, causing lag with huge music lists)
Diffstat (limited to 'src/text_file_functions.cpp')
-rw-r--r--src/text_file_functions.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index 49bf61f7..432f61a0 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -987,6 +987,24 @@ bool AOApplication::is_colorlog_enabled()
return result.startsWith("true");
}
+bool AOApplication::is_stickysounds_enabled()
+{
+ QString result = configini->value("stickysounds", "false").value<QString>();
+ return result.startsWith("true");
+}
+
+bool AOApplication::is_stickyeffects_enabled()
+{
+ QString result = configini->value("stickyeffects", "false").value<QString>();
+ return result.startsWith("true");
+}
+
+bool AOApplication::is_stickypres_enabled()
+{
+ QString result = configini->value("stickypres", "false").value<QString>();
+ return result.startsWith("true");
+}
+
bool AOApplication::get_casing_enabled()
{
QString result = configini->value("casing_enabled", "false").value<QString>();