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>2011-07-26 20:35:12 +0000
committerStijn Buys <ingar@osirion.org>2011-07-26 20:35:12 +0000
commit11c897f3948c0b4864526e2671874fd662f85688 (patch)
tree30ce397c0d1dbb8f178f218398e4cfdfd2dd7aad /src/client/client.cc
parent7cbc39deea27f95257a7b797d79f74a756ec4fb1 (diff)
renamed client::WorldView to client::MainWindow
Diffstat (limited to 'src/client/client.cc')
-rw-r--r--src/client/client.cc37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/client/client.cc b/src/client/client.cc
index 7d4b7e6..4b27eb7 100644
--- a/src/client/client.cc
+++ b/src/client/client.cc
@@ -62,7 +62,7 @@ void Client::quit(int status)
void Client::init(int count, char **arguments)
{
- client_worldview = 0;
+ client_mainwindow = 0;
con_print << "^BInitializing client..." << std::endl;
// initialize core
@@ -103,8 +103,9 @@ void Client::init(int count, char **arguments)
// initialize user interface
ui::init();
- client_worldview = new WorldView(ui::root());
+ client_mainwindow = new MainWindow(ui::root());
+ // FIXME needs to be a mainwindow child
client_testmodelview = new TestModelView(ui::root());
client_testmodelview->hide();
@@ -308,10 +309,10 @@ void Client::notify_connect()
video::set_loader_message();
video::frame_loader();
- worldview()->clear();
+ mainwindow()->clear();
ui::root()->hide_menu();
- video::set_caption();
+ //video::set_caption();
}
void Client::notify_disconnect()
@@ -320,9 +321,9 @@ void Client::notify_disconnect()
render::reset();
input::reset();
- worldview()->clear();
+ mainwindow()->clear();
- video::set_caption();
+ //video::set_caption();
}
void Client::notify_zonechange()
@@ -384,8 +385,8 @@ void Client::notify_message(const core::Message::Channel channel, const std::str
break;
}
- if (worldview()) {
- worldview()->event_text(message);
+ if (mainwindow()) {
+ mainwindow()->event_text(message);
}
con_print << message << std::endl;
@@ -489,29 +490,29 @@ void Client::func_ui(std::string const &args)
void Client::func_ui_chat(std::string const &args)
{
- if (client()->connected() && client()->worldview()->playerview()->visible()) {
- client()->worldview()->playerview()->toggle_chat();
+ if (client()->connected() && client()->mainwindow()->playerview()->visible()) {
+ client()->mainwindow()->playerview()->toggle_chat();
}
}
void Client::func_ui_chatbar(std::string const &args)
{
- if (client()->connected() && client()->worldview()->playerview()->visible()) {
- client()->worldview()->playerview()->toggle_chatbar();
+ if (client()->connected() && client()->mainwindow()->playerview()->visible()) {
+ client()->mainwindow()->playerview()->toggle_chatbar();
}
}
void Client::func_ui_inventory(std::string const &args)
{
- if (client()->connected() && client()->worldview()->playerview()->visible()) {
- client()->worldview()->playerview()->toggle_inventory();
+ if (client()->connected() && client()->mainwindow()->playerview()->visible()) {
+ client()->mainwindow()->playerview()->toggle_inventory();
}
}
void Client::func_ui_map(std::string const &args)
{
- if (client()->connected() && client()->worldview()->playerview()->visible()) {
- client()->worldview()->playerview()->toggle_map();
+ if (client()->connected() && client()->mainwindow()->playerview()->visible()) {
+ client()->mainwindow()->playerview()->toggle_map();
}
}
@@ -536,8 +537,8 @@ void Client::func_ui_menu(std::string const &args)
// entity menus
void Client::func_view(std::string const &args)
{
- if (client()->worldview()) {
- client()->worldview()->playerview()->show_menu(args);
+ if (client()->mainwindow()) {
+ client()->mainwindow()->playerview()->show_menu(args);
}
}