X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftextscroller.hpp;h=5198eb9222fd29cebaf58d46c04876a58cd42662;hb=c174dfb2a675b039e915e01549950c7a5b554492;hp=c7803ea47c5d0a5a164d87a25caf136c58137d18;hpb=6e7973207d7bc868eaa9561d17eaf855cd885800;p=supertux.git diff --git a/src/textscroller.hpp b/src/textscroller.hpp index c7803ea47..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 @@ -37,11 +38,11 @@ class Surface; class InfoBoxLine { private: - enum LineType { NORMAL, NORMAL_LEFT, SMALL, HEADING, REFERENCE, IMAGE, SPACER}; + enum LineType { NORMAL, NORMAL_LEFT, SMALL, HEADING, REFERENCE, IMAGE}; 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 -