summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/hud.h b/src/hud.h
index 88e7181d6..f373d4fe2 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -147,15 +147,20 @@ private:
video::SColor hbar_colors[4];
};
+enum ItemRotationKind {
+ IT_ROT_SELECTED,
+ IT_ROT_HOVERED,
+ IT_ROT_DRAGGED,
+ IT_ROT_NONE, // Must be last, also serves as number
+};
+
void drawItemStack(video::IVideoDriver *driver,
gui::IGUIFont *font,
const ItemStack &item,
const core::rect<s32> &rect,
const core::rect<s32> *clip,
IGameDef *gamedef,
- bool selected,
- bool hovered,
- bool dragged);
+ ItemRotationKind rotation_kind);
#endif