[Status bar] Add custom text to footer (#8419)

Allows to add any text to the status bar. Can be a placeholder (empty space) for better positioning of the indicators.
This commit is contained in:
zwim
2021-11-09 18:04:44 +01:00
committed by GitHub
parent 3dabbd5d73
commit abcd989ec4
2 changed files with 114 additions and 5 deletions

View File

@@ -925,7 +925,7 @@ function TouchMenu:onMenuHold(item, text_truncated)
elseif item.help_text or type(item.help_text_func) == "function" then
local help_text = item.help_text
if item.help_text_func then
help_text = item.help_text_func()
help_text = item.help_text_func(self)
end
if help_text then
UIManager:show(InfoMessage:new{ text = help_text, })