X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftextscroller.hpp;h=ede1e6bbf05765b80075b90bd28177765b8bb215;hb=dd71f2011901da40efa6bd4519c215253283acbd;hp=cc166dc35ea6612126054b389e97ee7fa8c244c3;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/textscroller.hpp b/src/textscroller.hpp index cc166dc35..ede1e6bbf 100644 --- a/src/textscroller.hpp +++ b/src/textscroller.hpp @@ -24,10 +24,12 @@ #include #include #include +#include #include "screen.hpp" #include "math/vector.hpp" #include "math/rect.hpp" +#include "video/color.hpp" class DrawingContext; class Surface; @@ -52,6 +54,7 @@ public: private: InfoBoxLine::LineType lineType; Font* font; + Color color; std::string text; Surface* image; }; @@ -78,6 +81,9 @@ private: Surface* arrow_scrolldown; }; +/** + * Screen that displays intro text, extro text, etc. + */ class TextScroller : public Screen { public: @@ -88,6 +94,10 @@ public: void draw(DrawingContext& context); void update(float elapsed_time); + static Color small_color; + static Color heading_color; + static Color reference_color; + static Color normal_color; private: float defaultspeed; float speed;