summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpixel <pixel>2004-07-12 15:08:14 +0000
committerpixel <pixel>2004-07-12 15:08:14 +0000
commitbaac659433417ee555e3e04a28ea6c06fa23d588 (patch)
tree0bff5e30087de61b6dddbb3de30174e3222bcde2 /src
parent5cc874802b0b8c4462e7e873654e6daa54be00de (diff)
Widget slowly working...
Diffstat (limited to 'src')
-rw-r--r--src/test.cc12
1 files changed, 10 insertions, 2 deletions
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