From cc18095cded14f5e7e3f049e47fca2224134b647 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Sep 2010 19:44:13 +0000 Subject: text rendering cleanups, inventory capacity & cargo volume --- src/ui/modelview.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ui/modelview.h') diff --git a/src/ui/modelview.h b/src/ui/modelview.h index 54799f3..89b6554 100755 --- a/src/ui/modelview.h +++ b/src/ui/modelview.h @@ -26,8 +26,11 @@ public: return modelview_color; } - void set_modelname(const std::string & modelname); void set_modelname(const char *modelname); + + inline void set_modelname(const std::string & modelname) { + set_modelname(modelname.c_str()); + } void set_color(const math::Color &color); @@ -47,7 +50,10 @@ protected: virtual void draw(); /// draw border - void draw_border(); + virtual void draw_border(); + + /// draw border + virtual void draw_background(); /// keypress event handler virtual bool on_keypress(const int key, const unsigned int modifier); -- cgit v1.2.3