Rewrite spacing logic to properly handle comments
[supertux.git] / src / textscroller.hpp
index a6dafb6..ede1e6b 100644 (file)
 #include <vector>
 #include <string>
 #include <map>
+#include <memory>
 
 #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;
 };
@@ -91,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;