2 * Acess GUI (AxWin) Version 2
3 * By John Hodge (thePowersGang)
8 int giInterface_Width = 0;
9 tElement *gpInterface_Sidebar;
10 tElement *gpInterface_MainArea;
11 tElement *gpInterface_HeaderBar;
12 tElement *gpInterface_TabBar;
13 tElement *gpInterface_TabContent;
16 void Interface_Init(void)
21 giInterface_Width = giScreenWidth/16;
25 // -- Create Sidebar --
26 gpInterface_Sidebar = WM_CreateElement(NULL, ELETYPE_TOOLBAR, ELEFLAG_VERTICAL);
27 WM_SetSize( gpInterface_Sidebar, giInterface_Width );
29 // --- Top segment ---
30 area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL);
31 // ---- Menu Button ----
32 btn = WM_CreateElement(area, ELETYPE_BUTTON, ELEFLAG_NOSTRETCH);
33 WM_SetSize(btn, giInterface_Width);
34 //text = WM_CreateElement(btn, ELETYPE_IMAGE, ELEFLAG_SCALE);
35 //WM_SetText(text, "asset://LogoSmall.sif");
36 text = WM_CreateElement(btn, ELETYPE_TEXT, 0);
37 WM_SetText(text, "Acess");
39 // ---- Plain <hr/> style spacer ----
40 WM_CreateElement(area, ELETYPE_SPACER, 0);
42 // Open Windows Go Here
44 // --- Bottom Segment ---
45 area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL|ELEFLAG_ALIGN_END);
47 // ---- Plain <hr/> style spacer ----
48 WM_CreateElement(area, ELETYPE_SPACER, 0);
50 // ---- Version String ----
51 text = WM_CreateElement(area, ELETYPE_TEXT, ELEFLAG_WRAP);
52 WM_SetText(text, "AxWin 1.0");
54 // -- Create Main Area and regions within --
55 gpInterface_MainArea = WM_CreateElement(NULL, ELETYPE_BOX, ELEFLAG_VERTICAL);
56 gpInterface_HeaderBar = WM_CreateElement(gpInterface_MainArea, ELETYPE_BOX, 0);
57 gpInterface_TabBar = WM_CreateElement(gpInterface_MainArea, ELETYPE_TABBAR, 0);
58 gpInterface_TabContent = WM_CreateElement(gpInterface_MainArea, ELETYPE_BOX, 0);
61 void Interface_Update(void)
63 giInterface_Width = giScreenWidth/16;
64 WM_SetSize( gpInterface_Sidebar, giInterface_Width );
67 void Interface_Render(void)
72 giInterface_Width, giScreenHeight,