From c1e0d3e031d8fec376f30a3af771201eb9ced6cf Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 25 Dec 2010 03:33:38 +0200 Subject: some tinkering around --- src/main.cpp | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 03d194d71..bea0d8e62 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -245,6 +245,7 @@ TODO: Transferring of the table from server to client #include "guiInventoryMenu.h" #include "guiTextInputMenu.h" #include "materials.h" +//#include "guiMessageMenu.h" IrrlichtWrapper *g_irrlicht; @@ -1537,10 +1538,15 @@ int main(int argc, char *argv[]) // Test the text input system /*(new GUITextInputMenu(guienv, guiroot, -1, &g_active_menu_count, NULL))->drop();*/ - + /*GUIMessageMenu *menu = + new GUIMessageMenu(guienv, guiroot, -1, + &g_active_menu_count, + L"Asd"); + menu->drop();*/ + // Launch pause menu - (new GUIPauseMenu(guienv, guiroot, -1, g_device, - &g_active_menu_count))->drop(); + /*(new GUIPauseMenu(guienv, guiroot, -1, g_device, + &g_active_menu_count))->drop();*/ // First line of debug text gui::IGUIStaticText *guitext = guienv->addStaticText( @@ -1565,6 +1571,7 @@ int main(int argc, char *argv[]) L"Chat here\nOther line\nOther line\nOther line\nOther line", core::rect(70, 60, 795, 150), false, true); + chat_guitext->setBackgroundColor(video::SColor(96,0,0,0)); core::list chat_lines; /* @@ -1574,6 +1581,9 @@ int main(int argc, char *argv[]) u32 beginscenetime = 0; u32 scenetime = 0; u32 endscenetime = 0; + + // A test + //throw con::PeerNotFoundException("lol"); /* Main loop @@ -2353,7 +2363,7 @@ int main(int argc, char *argv[]) i != chat_lines.end(); i++) { (*i).age += dtime; - if((*i).age > 60.0) + if((*i).age > 300.0) { to_be_removed_count++; continue; @@ -2530,6 +2540,29 @@ int main(int argc, char *argv[]) catch(con::PeerNotFoundException &e) { dstream<getVideoDriver(); + + dstream<<"Created menu"<run() && menu->getStatus() == false) + { + driver->beginScene(true, true, video::SColor(255,0,0,0)); + guienv->drawAll(); + driver->endScene(); + } + + dstream<<"Dropping menu"<drop(); + }*/ } #if CATCH_UNHANDLED_EXCEPTIONS /* -- cgit v1.2.3