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

Go to the source code of this file.
Data Structures | |
| struct | preferences_t |
Defines | |
| #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 | ID_ALLOWDOWNLOAD 137 |
| #define | ID_BACK 138 |
| #define | ID_CROSSHAIR 127 |
| #define | ID_DRAWTEAMOVERLAY 136 |
| #define | ID_DYNAMICLIGHTS 132 |
| #define | ID_EJECTINGBRASS 130 |
| #define | ID_FORCEMODEL 135 |
| #define | ID_HIGHQUALITYSKY 129 |
| #define | ID_IDENTIFYTARGET 133 |
| #define | ID_SIMPLEITEMS 128 |
| #define | ID_SYNCEVERYFRAME 134 |
| #define | ID_WALLMARKS 131 |
| #define | NUM_CROSSHAIRS 10 |
| #define | PREFERENCES_X_POS 360 |
Functions | |
| void | Crosshair_Draw (void *self) |
| void | Preferences_Cache (void) |
| void | Preferences_Event (void *ptr, int notification) |
| void | Preferences_MenuInit (void) |
| void | Preferences_SetMenuItems (void) |
| void | UI_PreferencesMenu (void) |
Variables | |
| preferences_t | s_preferences |
| const char * | teamoverlay_names [] |
|
|
Definition at line 37 of file ui_preferences.c. |
|
|
Definition at line 38 of file ui_preferences.c. |
|
|
Definition at line 35 of file ui_preferences.c. |
|
|
Definition at line 36 of file ui_preferences.c. |
|
|
Definition at line 52 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 53 of file ui_preferences.c. |
|
|
Definition at line 42 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 51 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 47 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 45 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 50 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 44 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 48 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 43 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 49 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 46 of file ui_preferences.c. Referenced by Preferences_Event(). |
|
|
Definition at line 55 of file ui_preferences.c. |
|
|
Definition at line 40 of file ui_preferences.c. Referenced by Preferences_MenuInit(). |
|
|
Definition at line 177 of file ui_preferences.c. References menucommon_s::bottom, preferences_t::crosshairShader, _tag_menuframework::cursor, menulist_s::curvalue, menucommon_s::flags, menulist_s::generic, menucommon_s::left, listbar_color, menucommon_s::menuPosition, menucommon_s::name, menucommon_s::parent, qboolean, menucommon_s::right, s, s_preferences, SMALLCHAR_WIDTH, menucommon_s::top, UI_BLINK, UI_CENTER, UI_DrawChar(), UI_DrawHandlePic(), UI_DrawString(), UI_FillRect(), UI_RIGHT, UI_SMALLFONT, menucommon_s::x, x, menucommon_s::y, and y. 00177 {
00178 menulist_s *s;
00179 float *color;
00180 int x, y;
00181 int style;
00182 qboolean focus;
00183
00184 s = (menulist_s *)self;
00185 x = s->generic.x;
00186 y = s->generic.y;
00187
00188 style = UI_SMALLFONT;
00189 focus = (s->generic.parent->cursor == s->generic.menuPosition);
00190
00191 if ( s->generic.flags & QMF_GRAYED )
00192 color = text_color_disabled;
00193 else if ( focus )
00194 {
00195 color = text_color_highlight;
00196 style |= UI_PULSE;
00197 }
00198 else if ( s->generic.flags & QMF_BLINK )
00199 {
00200 color = text_color_highlight;
00201 style |= UI_BLINK;
00202 }
00203 else
00204 color = text_color_normal;
00205
00206 if ( focus )
00207 {
00208 // draw cursor
00209 UI_FillRect( s->generic.left, s->generic.top, s->generic.right-s->generic.left+1, s->generic.bottom-s->generic.top+1, listbar_color );
00210 UI_DrawChar( x, y, 13, UI_CENTER|UI_BLINK|UI_SMALLFONT, color);
00211 }
00212
00213 UI_DrawString( x - SMALLCHAR_WIDTH, y, s->generic.name, style|UI_RIGHT, color );
00214 if( !s->curvalue ) {
00215 return;
00216 }
00217 UI_DrawHandlePic( x + SMALLCHAR_WIDTH, y - 4, 24, 24, s_preferences.crosshairShader[s->curvalue] );
00218 }
|
Here is the call graph for this function:

|
|
Definition at line 398 of file ui_preferences.c. References ART_BACK0, ART_BACK1, ART_FRAMEL, ART_FRAMER, preferences_t::crosshairShader, n, s_preferences, trap_R_RegisterShaderNoMip(), and va(). 00398 {
00399 int n;
00400
00401 trap_R_RegisterShaderNoMip( ART_FRAMEL );
00402 trap_R_RegisterShaderNoMip( ART_FRAMER );
00403 trap_R_RegisterShaderNoMip( ART_BACK0 );
00404 trap_R_RegisterShaderNoMip( ART_BACK1 );
00405 for( n = 0; n < NUM_CROSSHAIRS; n++ ) {
00406 s_preferences.crosshairShader[n] = trap_R_RegisterShaderNoMip( va("gfx/2d/crosshair%c", 'a' + n ) );
00407 }
00408 }
|
Here is the call graph for this function:

|
||||||||||||
Here is the call graph for this function:

|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 416 of file ui_preferences.c. References preferences_t::menu, Preferences_MenuInit(), s_preferences, and UI_PushMenu(). 00416 {
00417 Preferences_MenuInit();
00418 UI_PushMenu( &s_preferences.menu );
00419 }
|
Here is the call graph for this function:

|
|
Definition at line 81 of file ui_preferences.c. Referenced by Crosshair_Draw(), Preferences_Cache(), Preferences_Event(), Preferences_MenuInit(), Preferences_SetMenuItems(), and UI_PreferencesMenu(). |
|
|
Initial value:
{
"off",
"upper right",
"lower right",
"lower left",
0
}
Definition at line 83 of file ui_preferences.c. |
1.3.9.1