Add support for setting the drawing content of a floating label.
This commit is contained in:
parent
18452f8ee5
commit
71b2b26c5a
2 changed files with 3 additions and 3 deletions
|
@ -945,11 +945,11 @@ std::stack<std::set<int> > label_contexts;
|
|||
|
||||
namespace font {
|
||||
|
||||
floating_label::floating_label(const std::string& text)
|
||||
floating_label::floating_label(const std::string& text, const surface& surf)
|
||||
#if 0
|
||||
: img_(),
|
||||
#else
|
||||
: surf_(NULL), buf_(NULL),
|
||||
: surf_(surf), buf_(NULL),
|
||||
#endif
|
||||
text_(text),
|
||||
font_size_(SIZE_NORMAL),
|
||||
|
|
|
@ -118,7 +118,7 @@ enum LABEL_SCROLL_MODE { ANCHOR_LABEL_SCREEN, ANCHOR_LABEL_MAP };
|
|||
class floating_label
|
||||
{
|
||||
public:
|
||||
floating_label(const std::string& text);
|
||||
floating_label(const std::string& text, const surface& surface = NULL);
|
||||
|
||||
void set_font_size(int font_size) {font_size_ = font_size;}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue