Implement status screen

This commit is contained in:
Lorenzooone
2024-05-26 02:05:05 +02:00
parent 50b140d41b
commit 6cb0cfd406
10 changed files with 326 additions and 64 deletions

View File

@@ -222,8 +222,8 @@ std::string OptionSelectionMenu::setTextOptionBool(int index, bool value) {
return this->get_string_option(index, DEFAULT_ACTION);
return this->get_string_option(index, FALSE_ACTION);
}
std::string OptionSelectionMenu::setTextOptionFloat(int index, float value) {
std::string out = this->get_string_option(index, DEFAULT_ACTION) + ": " + get_float_str_decimals(value, 1);
std::string OptionSelectionMenu::setTextOptionFloat(int index, float value, int num_decimals) {
std::string out = this->get_string_option(index, DEFAULT_ACTION) + ": " + get_float_str_decimals(value, num_decimals);
return out;
}