From 9f4c1454dc75d697b43a634927ebcfd6186a4e93 Mon Sep 17 00:00:00 2001 From: erihel Date: Thu, 27 Sep 2012 23:42:52 +0200 Subject: * Ingame help should now display correctly --- src/graphics/engine/text.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/graphics/engine/text.h') diff --git a/src/graphics/engine/text.h b/src/graphics/engine/text.h index bb9a32d..cc18f55 100644 --- a/src/graphics/engine/text.h +++ b/src/graphics/engine/text.h @@ -239,7 +239,7 @@ public: void FlushCache(); //! Draws text (multi-format) - void DrawText(const std::string &text, const std::vector &format, + void DrawText(const std::string &text, std::map &format, float size, Math::Point pos, float width, TextAlign align, int eol); //! Draws text (one font) @@ -248,7 +248,7 @@ public: int eol); //! Calculates dimensions for text (multi-format) - void SizeText(const std::string &text, const std::vector &format, + void SizeText(const std::string &text, std::map &format, float size, Math::Point pos, TextAlign align, Math::Point &start, Math::Point &end); //! Calculates dimensions for text (one font) @@ -265,20 +265,20 @@ public: //! Returns width of string (multi-format) float GetStringWidth(const std::string &text, - const std::vector &format, float size); + std::map &format, float size); //! Returns width of string (single font) float GetStringWidth(const std::string &text, FontType font, float size); //! Returns width of single character float GetCharWidth(UTF8Char ch, FontType font, float size, float offset); //! Justifies a line of text (multi-format) - int Justify(const std::string &text, const std::vector &format, + int Justify(const std::string &text, std::map &format, float size, float width); //! Justifies a line of text (one font) int Justify(const std::string &text, FontType font, float size, float width); //! Returns the most suitable position to a given offset (multi-format) - int Detect(const std::string &text, const std::vector &format, + int Detect(const std::string &text, std::map &format, float size, float offset); //! Returns the most suitable position to a given offset (one font) int Detect(const std::string &text, FontType font, float size, float offset); @@ -287,7 +287,7 @@ protected: CachedFont* GetOrOpenFont(FontType type, float size); CharTexture CreateCharTexture(UTF8Char ch, CachedFont* font); - void DrawString(const std::string &text, const std::vector &format, + void DrawString(const std::string &text, std::map &format, float size, Math::Point pos, float width, int eol); void DrawString(const std::string &text, FontType font, float size, Math::Point pos, float width, int eol); -- cgit v1.2.3-1-g7c22