From 9c2d1a1c867bbd7eea083dbc03c0acf1edace8c2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 27 Jan 2009 18:53:24 +0000 Subject: moves docking menus from ui to client, allow map and chat window while docked --- src/client/playerview.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/client/playerview.h') 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__ -- cgit v1.2.3