From: Jesus M. <fo...@gm...> - 2010-10-28 04:38:32
|
2010/10/27 Brendan Luchen <che...@gm...>: > Jesus, > >> >> But what about tuxhistory? We need a nice GUI in SDL, some thing like >> a menu, selecting options, maps, etc... It is may be also a GFX/litle >> code task. (I strongly prefer more work on tuxhistory to make some >> progress. :p ) >> > > > For a new project like TH, finding tasks small enough for the code-in > might be tricky, but if you can think of a few, I'll be sure to > include them! > > -Brendan > List of possible tasks: * Draw a animated roman priest (with all movements walk north, northeast, northwest..., die, and convert). * Write simple menu in C+SDL, that uses mouse and colored surfaces, with the following dynamic elements: * Button element * Container vector * Window element It should be some thing like this: Some thing like: ---------------------------------------------- #include "thgui.h" ... th_win *win; th_grid *grid; th_button *button; th_button *button2; //to init win = th_new_win("title", &SDL_Rect); grid = th_new_grid(rows); button = th_create("name", linked_func); button2 = th_create("name", linked_func2); th_grid_add(button); th_grid_add(button2); th_win_add(grid); ... // to draw th_draw(win); // to eval th_eval(win); ---------------------------------------------- If you think it is to complex we can reduce this last task, maybe create only a part of this. -- Jesus Mager [www.h1n1-al.blogspot.com] |