#include <map>
#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
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);
void scrollup();
void pagedown();
void pageup();
-
+
private:
size_t firstline;
std::vector<InfoBoxLine*> lines;
std::auto_ptr<Surface> background;
std::vector<InfoBoxLine*> lines;
float scroll;
+ bool fading;
};
#endif
-