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

Go to the source code of this file.
|
|
Definition at line 147 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 128 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 150 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 130 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 149 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 148 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 125 of file ui_controls2.c. Referenced by Controls_ActionEvent(), Controls_DrawPlayer(), and Controls_InitModel(). |
|
|
Definition at line 129 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 136 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 135 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 126 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 131 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 132 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 133 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 134 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 127 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 137 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 146 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 138 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 139 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 140 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 141 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 142 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 143 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 144 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 145 of file ui_controls2.c. Referenced by Controls_UpdateModel(). |
|
|
Definition at line 34 of file ui_controls2.c. |
|
|
Definition at line 35 of file ui_controls2.c. |
|
|
Definition at line 36 of file ui_controls2.c. |
|
|
Definition at line 37 of file ui_controls2.c. |
|
|
Definition at line 65 of file ui_controls2.c. Referenced by Controls_Update(). |
|
|
Definition at line 68 of file ui_controls2.c. |
|
|
Definition at line 67 of file ui_controls2.c. Referenced by Controls_Update(). |
|
|
Definition at line 64 of file ui_controls2.c. Referenced by Controls_Update(). |
|
|
Definition at line 66 of file ui_controls2.c. Referenced by Controls_Update(). |
|
|
Definition at line 118 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 106 of file ui_controls2.c. |
|
|
Definition at line 119 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 75 of file ui_controls2.c. |
|
|
Definition at line 84 of file ui_controls2.c. |
|
|
Definition at line 95 of file ui_controls2.c. |
|
|
Definition at line 110 of file ui_controls2.c. |
|
|
Definition at line 111 of file ui_controls2.c. |
|
|
Definition at line 112 of file ui_controls2.c. |
|
|
Definition at line 113 of file ui_controls2.c. |
|
|
Definition at line 74 of file ui_controls2.c. Referenced by Controls_MenuEvent(), and UI_SetupMenu_Event(). |
|
|
Definition at line 77 of file ui_controls2.c. Referenced by Controls_MenuEvent(), and Main_MenuEvent(). |
|
|
Definition at line 83 of file ui_controls2.c. |
|
|
Definition at line 116 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 109 of file ui_controls2.c. |
|
|
Definition at line 117 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 121 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 122 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 89 of file ui_controls2.c. Referenced by Demos_MenuEvent(), and LoadConfig_MenuEvent(). |
|
|
Definition at line 93 of file ui_controls2.c. |
|
|
Definition at line 71 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 92 of file ui_controls2.c. |
|
|
Definition at line 73 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 94 of file ui_controls2.c. |
|
|
Definition at line 120 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 88 of file ui_controls2.c. |
|
|
Definition at line 85 of file ui_controls2.c. |
|
|
Definition at line 70 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 86 of file ui_controls2.c. |
|
|
Definition at line 87 of file ui_controls2.c. |
|
|
Definition at line 90 of file ui_controls2.c. Referenced by Demos_MenuEvent(), and LoadConfig_MenuEvent(). |
|
|
Definition at line 76 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 80 of file ui_controls2.c. |
|
|
Definition at line 123 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 82 of file ui_controls2.c. |
|
|
Definition at line 91 of file ui_controls2.c. |
|
|
Definition at line 81 of file ui_controls2.c. |
|
|
Definition at line 108 of file ui_controls2.c. |
|
|
Definition at line 97 of file ui_controls2.c. |
|
|
Definition at line 98 of file ui_controls2.c. |
|
|
Definition at line 99 of file ui_controls2.c. |
|
|
Definition at line 100 of file ui_controls2.c. |
|
|
Definition at line 101 of file ui_controls2.c. |
|
|
Definition at line 102 of file ui_controls2.c. |
|
|
Definition at line 103 of file ui_controls2.c. |
|
|
Definition at line 104 of file ui_controls2.c. |
|
|
Definition at line 105 of file ui_controls2.c. |
|
|
Definition at line 72 of file ui_controls2.c. Referenced by Controls_MenuEvent(). |
|
|
Definition at line 107 of file ui_controls2.c. |
|
|
Definition at line 96 of file ui_controls2.c. |
|
|
Definition at line 61 of file ui_controls2.c. |
|
|
Definition at line 60 of file ui_controls2.c. |
|
|
Definition at line 58 of file ui_controls2.c. |
|
|
Definition at line 59 of file ui_controls2.c. |
|
||||||||||||
|
Definition at line 1136 of file ui_controls2.c. References ANIM_IDLE, Controls_Update(), Controls_UpdateModel(), g_bindings, ptr(), s_controls, and controls_t::waitingforkey. 01137 {
01138 if (event == QM_LOSTFOCUS)
01139 {
01140 Controls_UpdateModel( ANIM_IDLE );
01141 }
01142 else if (event == QM_GOTFOCUS)
01143 {
01144 Controls_UpdateModel( g_bindings[((menucommon_s*)ptr)->id].anim );
01145 }
01146 else if ((event == QM_ACTIVATED) && !s_controls.waitingforkey)
01147 {
01148 s_controls.waitingforkey = 1;
01149 Controls_Update();
01150 }
01151 }
|
Here is the call graph for this function:

|
|
Definition at line 1651 of file ui_controls2.c. References ART_BACK0, ART_BACK1, ART_FRAMEL, ART_FRAMER, and trap_R_RegisterShaderNoMip(). Referenced by Controls_MenuInit(), and UI_Cache_f(). 01651 {
01652 trap_R_RegisterShaderNoMip( ART_BACK0 );
01653 trap_R_RegisterShaderNoMip( ART_BACK1 );
01654 trap_R_RegisterShaderNoMip( ART_FRAMEL );
01655 trap_R_RegisterShaderNoMip( ART_FRAMER );
01656 }
|
Here is the call graph for this function:

|
|
Definition at line 651 of file ui_controls2.c. References a, bind_t::bind1, bind_t::bind2, menucommon_s::bottom, c, colorWhite, controls_binding_color, menucommon_s::flags, g_bindings, menuaction_s::generic, menucommon_s::id, menucommon_s::left, listbar_color, Menu_ItemAtCursor(), name, menucommon_s::parent, Q_strupr(), qboolean, menucommon_s::right, s_controls, SCREEN_HEIGHT, SCREEN_WIDTH, SMALLCHAR_WIDTH, strcat(), strcpy(), text_color_disabled, text_color_highlight, menucommon_s::top, trap_Key_KeynumToStringBuf(), UI_BLINK, UI_CENTER, UI_DrawChar(), UI_DrawString(), UI_FillRect(), UI_LEFT, UI_PULSE, UI_RIGHT, UI_SMALLFONT, controls_t::waitingforkey, menucommon_s::x, x, menucommon_s::y, and y. 00652 {
00653 menuaction_s* a;
00654 int x;
00655 int y;
00656 int b1;
00657 int b2;
00658 qboolean c;
00659 char name[32];
00660 char name2[32];
00661
00662 a = (menuaction_s*) self;
00663
00664 x = a->generic.x;
00665 y = a->generic.y;
00666
00667 c = (Menu_ItemAtCursor( a->generic.parent ) == a);
00668
00669 b1 = g_bindings[a->generic.id].bind1;
00670 if (b1 == -1)
00671 strcpy(name,"???");
00672 else
00673 {
00674 trap_Key_KeynumToStringBuf( b1, name, 32 );
00675 Q_strupr(name);
00676
00677 b2 = g_bindings[a->generic.id].bind2;
00678 if (b2 != -1)
00679 {
00680 trap_Key_KeynumToStringBuf( b2, name2, 32 );
00681 Q_strupr(name2);
00682
00683 strcat( name, " or " );
00684 strcat( name, name2 );
00685 }
00686 }
00687
00688 if (c)
00689 {
00690 UI_FillRect( a->generic.left, a->generic.top, a->generic.right-a->generic.left+1, a->generic.bottom-a->generic.top+1, listbar_color );
00691
00692 UI_DrawString( x - SMALLCHAR_WIDTH, y, g_bindings[a->generic.id].label, UI_RIGHT|UI_SMALLFONT, text_color_highlight );
00693 UI_DrawString( x + SMALLCHAR_WIDTH, y, name, UI_LEFT|UI_SMALLFONT|UI_PULSE, text_color_highlight );
00694
00695 if (s_controls.waitingforkey)
00696 {
00697 UI_DrawChar( x, y, '=', UI_CENTER|UI_BLINK|UI_SMALLFONT, text_color_highlight);
00698 UI_DrawString(SCREEN_WIDTH * 0.50, SCREEN_HEIGHT * 0.80, "Waiting for new key ... ESCAPE to cancel", UI_SMALLFONT|UI_CENTER|UI_PULSE, colorWhite );
00699 }
00700 else
00701 {
00702 UI_DrawChar( x, y, 13, UI_CENTER|UI_BLINK|UI_SMALLFONT, text_color_highlight);
00703 UI_DrawString(SCREEN_WIDTH * 0.50, SCREEN_HEIGHT * 0.78, "Press ENTER or CLICK to change", UI_SMALLFONT|UI_CENTER, colorWhite );
00704 UI_DrawString(SCREEN_WIDTH * 0.50, SCREEN_HEIGHT * 0.82, "Press BACKSPACE to clear", UI_SMALLFONT|UI_CENTER, colorWhite );
00705 }
00706 }
00707 else
00708 {
00709 if (a->generic.flags & QMF_GRAYED)
00710 {
00711 UI_DrawString( x - SMALLCHAR_WIDTH, y, g_bindings[a->generic.id].label, UI_RIGHT|UI_SMALLFONT, text_color_disabled );
00712 UI_DrawString( x + SMALLCHAR_WIDTH, y, name, UI_LEFT|UI_SMALLFONT, text_color_disabled );
00713 }
00714 else
00715 {
00716 UI_DrawString( x - SMALLCHAR_WIDTH, y, g_bindings[a->generic.id].label, UI_RIGHT|UI_SMALLFONT, controls_binding_color );
00717 UI_DrawString( x + SMALLCHAR_WIDTH, y, name, UI_LEFT|UI_SMALLFONT, controls_binding_color );
00718 }
00719 }
00720 }
|
Here is the call graph for this function:

|
|
Definition at line 738 of file ui_controls2.c. References ANIM_IDLE, b, Controls_UpdateModel(), menubitmap_s::generic, menubitmap_s::height, controls_t::playerinfo, controls_t::playerModel, uiStatic_t::realtime, s_controls, strcmp(), strcpy(), trap_Cvar_VariableStringBuffer(), UI_DrawPlayer(), UI_PlayerInfo_SetModel(), uis, menubitmap_s::width, menucommon_s::x, and menucommon_s::y. 00738 {
00739 menubitmap_s *b;
00740 char buf[MAX_QPATH];
00741
00742 trap_Cvar_VariableStringBuffer( "model", buf, sizeof( buf ) );
00743 if ( strcmp( buf, s_controls.playerModel ) != 0 ) {
00744 UI_PlayerInfo_SetModel( &s_controls.playerinfo, buf );
00745 strcpy( s_controls.playerModel, buf );
00746 Controls_UpdateModel( ANIM_IDLE );
00747 }
00748
00749 b = (menubitmap_s*) self;
00750 UI_DrawPlayer( b->generic.x, b->generic.y, b->width, b->height, &s_controls.playerinfo, uis.realtime/2 );
00751 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|