supertux
supertux copied to clipboard
Various TextObject and TextArray additions and fixes
Fixes various issues, regarding TextObject and TextArray:
- Fixes #2256: Adds the missing
set_front_fill_color(),set_back_fill_color(),set_text_color()andset_roundness()functions to TextArray, which only modify the current TextObject. - Closes #2257: The
set_text()function of TextArray now adds a new TextObject with default duration set, if the TextArray has no current TextObject. - Closes #2258: Toggling the visibility of a TextObject now checks if the desired visibility state is
trueorfalse. Iftrue,fade_in(0)is executed, iffalse-fade_out(0). This would allow not just the frame to be toggled, but the text as well.