diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-19 19:44:13 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-19 19:44:13 +0000 |
commit | cc18095cded14f5e7e3f049e47fca2224134b647 (patch) | |
tree | 2a057f4836925083a19988d571dc0664925c9e48 /src/ui/modelview.h | |
parent | badfb31888a6bd62e0a019b3f3dec517df4121ec (diff) |
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-x | src/ui/modelview.h | 10 |
1 files changed, 8 insertions, 2 deletions
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); |