X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftextscroller.hpp;h=5198eb9222fd29cebaf58d46c04876a58cd42662;hb=d4b281559d45406a5d07cf04d89142cdeb90b114;hp=604af08941aee0f306ee8b38decab29f66f3f510;hpb=2536976bee590a6028443c6fe6032ca00450866f;p=supertux.git diff --git a/src/textscroller.hpp b/src/textscroller.hpp index 604af0894..5198eb922 100644 --- a/src/textscroller.hpp +++ b/src/textscroller.hpp @@ -26,10 +26,11 @@ #include #include "screen.hpp" -#include "video/font.hpp" +#include "math/vector.hpp" class DrawingContext; class Surface; +class Font; /** * Helper class for InfoBox: Represents a line of text @@ -41,7 +42,7 @@ private: LineType lineType; Font* font; std::string text; - Surface* image; + Surface* image; public: InfoBoxLine(char format_char, const std::string& text); @@ -66,7 +67,7 @@ public: void scrollup(); void pagedown(); void pageup(); - + private: size_t firstline; std::vector lines; @@ -92,7 +93,7 @@ private: std::auto_ptr background; std::vector lines; float scroll; + bool fading; }; #endif -