start working on screens
[clop-s-games:clop-s-games.git] / wicket2 / src / tests / testScreens.c
1
2 #include "../wicket.h"
3
4 void testScreens()
5 {
6     // Load ressources
7     int fontRegular = loadFont("data/DroidSerif-Regular.ttf");
8     int fontItalic = loadFont("data/DroidSerif-Italic.ttf");
9     int fontBold = loadFont("data/DroidSerif-Bold.ttf");
10     int fontBio = loadFont("data/LinBiolinum_aSI.ttf");
11     int fontBioK = loadFont("data/LinBiolinum_K.ttf");
12
13     State* pMenu = createState("Menu", 0);
14     State* pMenu1 = createState("Menu1", 1);
15
16     char* menuItems[] = {
17         "First item",
18         "Second item",
19         "Third item"
20     };
21     pMenu1->pScreen = createMenu((char**)menuItems, 3, fontRegular, 24.0);
22     setupMenu(pMenu1, pMenu1->pScreen->realScreen->menu);
23
24     addState(pMenu, pMenu1);
25
26     g_GameState.pMain = pMenu;
27 }
28