#include "ui_local.h"
Include dependency graph for ui_demo2.c:

Go to the source code of this file.
Data Structures | |
| struct | demos_t |
Defines | |
| #define | ARROWS_HEIGHT 48 |
| #define | ARROWS_WIDTH 128 |
| #define | ART_ARROWLEFT "menu/art/arrows_horz_left" |
| #define | ART_ARROWRIGHT "menu/art/arrows_horz_right" |
| #define | ART_ARROWS "menu/art/arrows_horz_0" |
| #define | ART_BACK0 "menu/art/back_0" |
| #define | ART_BACK1 "menu/art/back_1" |
| #define | ART_FRAMEL "menu/art/frame2_l" |
| #define | ART_FRAMER "menu/art/frame1_r" |
| #define | ART_GO0 "menu/art/play_0" |
| #define | ART_GO1 "menu/art/play_1" |
| #define | ID_BACK 10 |
| #define | ID_GO 11 |
| #define | ID_LEFT 14 |
| #define | ID_LIST 12 |
| #define | ID_RIGHT 13 |
| #define | MAX_DEMOS 128 |
| #define | NAMEBUFSIZE ( MAX_DEMOS * 16 ) |
Functions | |
| void | Demos_Cache (void) |
| void | Demos_MenuEvent (void *ptr, int event) |
| void | Demos_MenuInit (void) |
| void | UI_DemosMenu (void) |
| sfxHandle_t | UI_DemosMenu_Key (int key) |
Variables | |
| demos_t | s_demos |
|
|
Definition at line 55 of file ui_demo2.c. |
|
|
Definition at line 54 of file ui_demo2.c. Referenced by Demos_MenuInit(), and LoadConfig_MenuInit(). |
|
|
Definition at line 42 of file ui_demo2.c. Referenced by Demos_Cache(), and UI_LoadConfig_Cache(). |
|
|
Definition at line 43 of file ui_demo2.c. Referenced by Demos_Cache(), and UI_LoadConfig_Cache(). |
|
|
Definition at line 41 of file ui_demo2.c. |
|
|
Definition at line 35 of file ui_demo2.c. |
|
|
Definition at line 36 of file ui_demo2.c. |
|
|
Definition at line 39 of file ui_demo2.c. |
|
|
Definition at line 40 of file ui_demo2.c. |
|
|
Definition at line 37 of file ui_demo2.c. Referenced by Demos_Cache(). |
|
|
Definition at line 38 of file ui_demo2.c. Referenced by Demos_Cache(). |
|
|
Definition at line 48 of file ui_demo2.c. |
|
|
Definition at line 49 of file ui_demo2.c. |
|
|
Definition at line 52 of file ui_demo2.c. |
|
|
Definition at line 50 of file ui_demo2.c. |
|
|
Definition at line 51 of file ui_demo2.c. |
|
|
Definition at line 45 of file ui_demo2.c. |
|
|
Definition at line 46 of file ui_demo2.c. Referenced by Demos_MenuInit(), and LoadConfig_MenuInit(). |
|
|
Definition at line 271 of file ui_demo2.c. References ART_ARROWLEFT, ART_ARROWRIGHT, ART_ARROWS, ART_BACK0, ART_BACK1, ART_FRAMEL, ART_FRAMER, ART_GO0, ART_GO1, and trap_R_RegisterShaderNoMip(). Referenced by Demos_MenuInit(), and UI_Cache_f(). 00271 {
00272 trap_R_RegisterShaderNoMip( ART_BACK0 );
00273 trap_R_RegisterShaderNoMip( ART_BACK1 );
00274 trap_R_RegisterShaderNoMip( ART_GO0 );
00275 trap_R_RegisterShaderNoMip( ART_GO1 );
00276 trap_R_RegisterShaderNoMip( ART_FRAMEL );
00277 trap_R_RegisterShaderNoMip( ART_FRAMER );
00278 trap_R_RegisterShaderNoMip( ART_ARROWS );
00279 trap_R_RegisterShaderNoMip( ART_ARROWLEFT );
00280 trap_R_RegisterShaderNoMip( ART_ARROWRIGHT );
00281 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 86 of file ui_demo2.c. References menulist_s::curvalue, EXEC_APPEND, ID_BACK, ID_GO, ID_LEFT, ID_RIGHT, menulist_s::itemnames, K_LEFTARROW, K_RIGHTARROW, demos_t::list, s_demos, ScrollList_Key(), trap_Cmd_ExecuteText(), UI_ForceMenuOff(), UI_PopMenu(), and va(). 00086 {
00087 if( event != QM_ACTIVATED ) {
00088 return;
00089 }
00090
00091 switch( ((menucommon_s*)ptr)->id ) {
00092 case ID_GO:
00093 UI_ForceMenuOff ();
00094 trap_Cmd_ExecuteText( EXEC_APPEND, va( "demo %s\n",
00095 s_demos.list.itemnames[s_demos.list.curvalue]) );
00096 break;
00097
00098 case ID_BACK:
00099 UI_PopMenu();
00100 break;
00101
00102 case ID_LEFT:
00103 ScrollList_Key( &s_demos.list, K_LEFTARROW );
00104 break;
00105
00106 case ID_RIGHT:
00107 ScrollList_Key( &s_demos.list, K_RIGHTARROW );
00108 break;
00109 }
00110 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 288 of file ui_demo2.c. References Demos_MenuInit(), demos_t::menu, s_demos, and UI_PushMenu(). Referenced by Main_MenuEvent(). 00288 {
00289 Demos_MenuInit();
00290 UI_PushMenu( &s_demos.menu );
00291 }
|
Here is the call graph for this function:

|
|
Definition at line 118 of file ui_demo2.c. References demos_t::menu, Menu_DefaultKey(), Menu_ItemAtCursor(), s_demos, and sfxHandle_t. 00118 {
00119 menucommon_s *item;
00120
00121 item = Menu_ItemAtCursor( &s_demos.menu );
00122
00123 return Menu_DefaultKey( &s_demos.menu, key );
00124 }
|
Here is the call graph for this function:

|
|
Definition at line 78 of file ui_demo2.c. Referenced by Demos_MenuEvent(), Demos_MenuInit(), UI_DemosMenu(), and UI_DemosMenu_Key(). |
1.3.9.1