mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 07:11:34 +00:00
Fix for FS#26 - Turbolift UI not showing
Fix for FS#26 - Turbolift UI not showing
This commit is contained in:
parent
e03714e3a1
commit
a57b6979d6
2 changed files with 75 additions and 2 deletions
|
@ -1540,7 +1540,7 @@ static void target_turbolift_use( gentity_t *self, gentity_t *other, gentity_t *
|
|||
return;
|
||||
}
|
||||
|
||||
trap_SendServerCommand( activator-g_entities, "lift" );
|
||||
trap_SendServerCommand( activator-g_entities, va("lift %d", self->health) );
|
||||
}
|
||||
|
||||
extern void BG_LanguageFilename(char *baseName,char *baseExtension,char *finalName);
|
||||
|
|
|
@ -43,5 +43,78 @@ static void M_sql_Event(void *ptr, int notification) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
=================
|
||||
sqlMenu_Key
|
||||
=================
|
||||
*/
|
||||
sfxHandle_t sqlMenu_Key (int key)
|
||||
{
|
||||
return ( Menu_DefaultKey( &s_sql.menu, key ) );
|
||||
}
|
||||
|
||||
extern qhandle_t leftRound;
|
||||
extern qhandle_t corner_ul_24_60;
|
||||
extern qhandle_t corner_ll_12_60;
|
||||
|
||||
|
||||
/*
|
||||
=================
|
||||
M_sqlMenu_Graphics
|
||||
=================
|
||||
*/
|
||||
static void M_sqlMenu_Graphics (void)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
UI_sqlMenu_Cache
|
||||
===============
|
||||
*/
|
||||
void UI_sqlMenu_Cache (void)
|
||||
{
|
||||
leftRound = trap_R_RegisterShaderNoMip("menu/common/halfroundl_24.tga");
|
||||
corner_ul_24_60 = trap_R_RegisterShaderNoMip("menu/common/corner_ul_24_60.tga");
|
||||
corner_ll_12_60 = trap_R_RegisterShaderNoMip("menu/common/corner_ll_12_60.tga");
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
msdMenu_Init
|
||||
===============
|
||||
*/
|
||||
void sqlMenu_Init(void)
|
||||
{
|
||||
/*s_sql.menu.nitems = 0;
|
||||
s_sql.menu.draw = sqlMenu_Draw;
|
||||
s_sql.menu.key = sqlMenu_Key;
|
||||
s_sql.menu.wrapAround = qtrue;
|
||||
s_sql.menu.descX = MENU_DESC_X;
|
||||
s_sql.menu.descY = MENU_DESC_Y;
|
||||
s_sql.menu.titleX = MENU_TITLE_X;
|
||||
s_sql.menu.titleY = MENU_TITLE_Y;
|
||||
|
||||
s_sql.quitmenu.generic.type = MTYPE_BITMAP;
|
||||
s_sql.quitmenu.generic.flags = QMF_HIGHLIGHT_IF_FOCUS;
|
||||
s_sql.quitmenu.generic.x = 490;
|
||||
s_sql.quitmenu.generic.y = 380;
|
||||
s_sql.quitmenu.generic.name = GRAPHIC_BUTTONLEFT;
|
||||
s_sql.quitmenu.generic.id = ID_QUIT;
|
||||
s_sql.quitmenu.generic.callback = M_sql_Event;
|
||||
s_sql.quitmenu.width = MENU_BUTTON_MED_WIDTH-20;
|
||||
s_sql.quitmenu.height = PROP_BIG_HEIGHT;
|
||||
s_sql.quitmenu.color = CT_DKPURPLE1;
|
||||
s_sql.quitmenu.color2 = CT_LTPURPLE1;
|
||||
s_sql.quitmenu.textX = MENU_BUTTON_TEXT_X;
|
||||
s_sql.quitmenu.textY = 12;
|
||||
s_sql.quitmenu.textEnum = MBT_RETURNMENU;
|
||||
s_sql.quitmenu.textcolor = CT_BLACK;
|
||||
s_sql.quitmenu.textcolor2 = CT_WHITE;
|
||||
s_sql.quitmenu.textStyle = UI_TINYFONT;
|
||||
|
||||
Menu_AddItem( &s_sql.menu, &s_sql.quitmenu );*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue