From 1df63b6250d88b82ff7756f8c1a4b11f8d686897 Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 2 Dec 2005 16:21:59 +0000 Subject: Added cascade stuff for buttons, and cleaned source a bit. --- Dalos/Dalos.cc | 10 +++++++--- MSVC/mogltk/mogltk.vcproj | 8 ++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc index c08052d..4936caf 100644 --- a/Dalos/Dalos.cc +++ b/Dalos/Dalos.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Dalos.cc,v 1.20 2005-12-02 11:22:51 pixel Exp $ */ +/* $Id: Dalos.cc,v 1.21 2005-12-02 16:21:59 pixel Exp $ */ #include #include @@ -266,7 +266,9 @@ class timer : public mogltk::widget { Application->MainMenu->SetCaption(0, "I"); break; } - Application->MainMenu->SetCaption(3, String("FPS: ") + mogltk::engine::FPS()); + String fps; + fps.set("FPS: %6.2f", mogltk::engine::FPS()); + Application->MainMenu->SetCaption(3, fps); return true; } return false; @@ -330,7 +332,7 @@ virtual int startup() throw (GeneralException) { console::create_console_thread(); CurrentConsole->move(0, Root->GetH() - CurrentConsole->GetH()); CurrentConsole->add_line("Dalos v0.1 - LUA console - Press ESC to show/hide it."); - CurrentConsole->SetVisible(true); +// CurrentConsole->SetVisible(true); printer = new myprinter(); locker = new threaded_locker(); @@ -354,6 +356,8 @@ virtual int startup() throw (GeneralException) { new hexview::hexview_keyevent; new console::console_keyevent; // Should be one of the last + new mogltk::widgets::InputDialog(0, sh, MainPanel, "Test", "blah blah blah"); + // And launching the main loop Root->mainloop(); diff --git a/MSVC/mogltk/mogltk.vcproj b/MSVC/mogltk/mogltk.vcproj index f150858..29dab9a 100644 --- a/MSVC/mogltk/mogltk.vcproj +++ b/MSVC/mogltk/mogltk.vcproj @@ -238,6 +238,10 @@ + + @@ -246,6 +250,10 @@ RelativePath="..\..\mogltk\include\glwidgets.h" > + + -- cgit v1.2.3