From baac659433417ee555e3e04a28ea6c06fa23d588 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 12 Jul 2004 15:08:14 +0000 Subject: Widget slowly working... --- src/test.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/test.cc b/src/test.cc index d19b5d8..66a2af4 100644 --- a/src/test.cc +++ b/src/test.cc @@ -569,7 +569,7 @@ virtual int startup() throw (GeneralException) { mogltk::texture * sshot = 0, * plastex = new mogltk::texture(1024, 512); int x, y, sx1, sx2, sy1, sy2, lastframe, curframe, px, py, lasttick = 0, curtick = 0, oldblend, seconds = 0, newseconds = 0; double t = 0; - verbosity = M_ERROR; + verbosity = M_INFO; String str; bool got_transit = false; Uint8 * plasma = (Uint8 *) malloc(640 * 480), * pplasma; @@ -642,8 +642,8 @@ virtual int startup() throw (GeneralException) { mogltk::glSprite * eG1 = new mogltk::glSprite(&Input("elkyaG1.raw"), 53, 100); mogltk::glSprite * eM1 = new mogltk::glSprite(&Input("elkyaM1.raw"), 53, 100); // mogltk::glSprite * spr = new mogltk::glSprite(&Input("test.raw"), 200, 200); - mogltk::widget * w = new mogltk::Root(sh); #endif + mogltk::widget * w = new mogltk::widgets::Root(sh); #else mogltk::base * gl = new mogltk::base(); mogltk::shape * sh = new mogltk::shape(); @@ -686,6 +686,14 @@ virtual int startup() throw (GeneralException) { px = 200; py = 350; #endif +#if 0 + new mogltk::widgets::Button(0, sh, + new mogltk::widgets::SmartBox(sh, w, 120, 50, 100, 100, "Test"), + 12, 30, 50, 20, "Toto"); +#endif + new mogltk::widgets::MsgBox(sh, w, "Test", "Blablabla\nCeci est un test de la\nclasse MsgBox."); + + w->mainloop(); while (!mogltk::engine::quitrequested()) { #if 0 -- cgit v1.2.3