Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
committerStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
commitcc18095cded14f5e7e3f049e47fca2224134b647 (patch)
tree2a057f4836925083a19988d571dc0664925c9e48 /src/ui/modelview.h
parentbadfb31888a6bd62e0a019b3f3dec517df4121ec (diff)
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-xsrc/ui/modelview.h10
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);