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>2009-01-27 18:53:24 +0000
committerStijn Buys <ingar@osirion.org>2009-01-27 18:53:24 +0000
commit9c2d1a1c867bbd7eea083dbc03c0acf1edace8c2 (patch)
tree51b0f6e52d4dc368fc8358aa86cca395b6d2506b /src/client/playerview.h
parent76a49efdf62a53a54e2deeb559422f11c1e955dd (diff)
moves docking menus from ui to client,
allow map and chat window while docked
Diffstat (limited to 'src/client/playerview.h')
-rw-r--r--src/client/playerview.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/client/playerview.h b/src/client/playerview.h
index e5cb238..9cf8a94 100644
--- a/src/client/playerview.h
+++ b/src/client/playerview.h
@@ -8,6 +8,7 @@
#define __INCLUDED_CLIENT_PLAYERVIEW_H__
#include "client/chat.h"
+#include "client/entitymenu.h"
#include "client/hud.h"
#include "client/map.h"
#include "client/notifications.h"
@@ -27,18 +28,35 @@ public:
void event_text(const std::string & text);
+ /// toggle map window
+ void toggle_map();
+
+ /// togge chat window
+ void toggle_chat();
+
+ /// toggle chat bar
+ void toggle_chatbar();
+
+ /// show entity menus
+ void show_menu(const std::string & label);
+
inline Map *map() { return view_map; }
inline Chat *chat() { return view_chat; }
inline Notifications *notify() { return view_notify; }
+ inline EntityMenu *menu() { return view_menu; }
protected:
virtual void draw();
virtual void resize();
+
private:
Notifications *view_notify;
HUD *view_hud;
Chat *view_chat;
Map *view_map;
+ EntityMenu *view_menu;
+
+ core::Entity *view_lastentity;
ui::Label *label_zonename;
ui::Label *label_viewname;
@@ -48,4 +66,4 @@ private:
}
-#endif // __INCLUDED_CLIENT_PLAYERVIEW_H__ \ No newline at end of file
+#endif // __INCLUDED_CLIENT_PLAYERVIEW_H__