diff options
author | Stijn Buys <ingar@osirion.org> | 2009-03-07 13:57:09 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-03-07 13:57:09 +0000 |
commit | 4c53365c16362156529c7669079e31845384589f (patch) | |
tree | 193bb5d05299d2acb38311d108c1d39b6e1dd229 /src/client/playerview.cc | |
parent | ee2200638be3fcb14097f3e8b0abb93e210f93d9 (diff) |
renamed Entity::eventstate() to Entity::state(),
introduced Destroyed state
Diffstat (limited to 'src/client/playerview.cc')
-rw-r--r-- | src/client/playerview.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/playerview.cc b/src/client/playerview.cc index f129a1e..54d444d 100644 --- a/src/client/playerview.cc +++ b/src/client/playerview.cc @@ -144,6 +144,9 @@ void PlayerView::draw() { if (core::localplayer()->view()) { + // hide hide when a view is set + view_hud->hide(); + // docking view if (core::localplayer()->view()->menus().size()) { @@ -154,11 +157,13 @@ void PlayerView::draw() label_zonename->show(); if (view_lastentity != core::localplayer()->view()) { - // initialy show the menu + // initially show the menu show_menu("main"); map()->hide(); chat()->hide(); audio::play("ui/menu"); + + view_lastentity = core::localplayer()->view(); } else if (!view_menu->visible() && !map()->visible() && (!chat()->visible() || chat()->small_view()) ) { // show the menu if there's no other window open menu()->show(); @@ -167,13 +172,12 @@ void PlayerView::draw() } else { // entity without menus, plain view + view_lastentity = 0; + this->hide(); return; } - view_hud->hide(); - view_lastentity = core::localplayer()->view(); - } else { if (view_menu->visible()) { view_menu->hide(); |