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-10-05 14:38:14 +0000
committerStijn Buys <ingar@osirion.org>2010-10-05 14:38:14 +0000
commitfed29d9ddc3b8372b9c3fe8bffe221a5a55e5ce9 (patch)
tree659096f4412e6ad9a0f47e70a620da327195e67a /src/ui/listitem.cc
parent312b9bcb81748032ff21e3d3f1d5fd36405fb713 (diff)
updated inventory window, listview seletion sounds, modelview zoom factor
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r--src/ui/listitem.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc
index ff9ad18..8702757 100644
--- a/src/ui/listitem.cc
+++ b/src/ui/listitem.cc
@@ -51,10 +51,16 @@ void ListItem::draw()
Paint::draw_label(global_location(), size(), font(), text(), alignment());
}
+void ListItem::on_mouseover(const math::Vector2f &cursor)
+{
+ if (enabled())
+ audio::play("ui/select");
+}
+
bool ListItem::on_keypress(const int key, const unsigned int modifier)
{
if (key == 512 + SDL_BUTTON_LEFT) {
- audio::play("ui/select");
+ audio::play("ui/button");
emit(EventListItemClicked);