本文整理汇总了C++中Menu_Draw函数的典型用法代码示例。如果您正苦于以下问题:C++ Menu_Draw函数的具体用法?C++ Menu_Draw怎么用?C++ Menu_Draw使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Menu_Draw函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: MediaView_MenuDraw
static void MediaView_MenuDraw( void ) {
Menu_Draw( &s_mediaview_menu.menu );
switch(s_mediaview_menu.mediatype) {
case MT_PICTURE:
break;
case MT_VIDEO:
{
e_status cinStatus;
cinStatus = trap_CIN_RunCinematic(s_mediaview_menu.CINhandle);
DrawLine(0,0,20,20,1,colorBlack); //note: DrawCinematic is no render-cmd, because of that it will probably be drawn before the previously done 2D-drawings are really drawn (using my Advanced2D, leads to a scene-randering, which seems to make sure that all 2D things are drawn)
trap_CIN_DrawCinematic(s_mediaview_menu.CINhandle);
if(cinStatus!=FMV_PLAY) {
//TODO? auto pop menu?
// UI_DrawStringNS(320,240,"THE END",UI_CENTER,20,colorWhite);
MediaView_OnClose();
UI_PopMenu();
}
}
break;
default:
UI_DrawStringNS(320,240,"error while loading media menu (check console output)",UI_CENTER,20,colorWhite);
break;
}
}
开发者ID:PadWorld-Entertainment,项目名称:wop-gamesource,代码行数:27,代码来源:ui_mediaview.c
示例2: VID_MenuDraw
/*
================
VID_MenuDraw
================
*/
void VID_MenuDraw (void)
{
int w, h;
s_current_menu = &s_opengl_menu;
/*
** draw the banner
*/
re.DrawGetPicSize( &w, &h, "m_banner_video" );
// jkrige - scale2d
re.DrawPic( viddef.width / 2 - (w*VID_SCALEFACTOR) / 2, viddef.height /2 - (110*VID_SCALEFACTOR), "m_banner_video" );
//re.DrawPic( viddef.width / 2 - w / 2, viddef.height /2 - 110, "m_banner_video" );
// jkrige - scale2d
/*
** move cursor to a reasonable starting position
*/
Menu_AdjustCursor( s_current_menu, 1 );
/*
** draw the menu
*/
Menu_Draw( s_current_menu );
}
开发者ID:jacqueskrige,项目名称:uqe-quake2,代码行数:31,代码来源:vid_menu.c
示例3: M_Main_Draw
void M_Main_Draw (menuframework_s *self)
{
int i;
int w, h;
int ystart;
int xoffset;
int widest = -1;
for ( i = 0; names[i] != 0; i++ )
{
Draw_GetPicSize( &w, &h, names[i] );
if ( w > widest )
widest = w;
}
ystart = ( viddef.height / 2 - 110 );
xoffset = ( viddef.width - widest + 70 ) / 2;
Draw_GetPicSize( &w, &h, "m_main_plaque" );
Draw_Pic( xoffset - 30 - w, ystart, "m_main_plaque", 1 );
Draw_Pic( xoffset - 30 - w, ystart + h + 5, "m_main_logo", 1 );
Menu_Draw( self );
}
开发者ID:chrisnew,项目名称:quake2,代码行数:27,代码来源:ui_main.c
示例4: ServerInfo_MenuDraw
/*
=================
ServerInfo_MenuDraw
=================
*/
static void ServerInfo_MenuDraw( void )
{
const char *s;
char key[MAX_INFO_KEY];
char value[MAX_INFO_VALUE];
int y, i=0;
int keylen, vallen, infonum=-1;
UI_DrawIngameBG();
UI_DrawProportionalString( 320, 110, "SERVER INFO",UI_CENTER|UI_SMALLFONT,color_black);
y = 140;//95;
s = s_serverinfo.info;
s_serverinfo.numdrawn = 0;
while ( s && i < s_serverinfo.numlines ) {
i++;
Info_NextPair( &s, key, value );
if ( !key[0] ) {
break;
}
infonum++;
if(s_serverinfo.firstline>infonum)
continue;
if(y>260) break;
Com_sprintf(key,MAX_INFO_KEY,"%s: ",key);
keylen=Q_PrintStrlen(key);
vallen=Q_PrintStrlen(value);
if(keylen+vallen<20)
{
UI_DrawString(230,y,key,UI_LEFT|UI_SMALLFONT,color_black);
UI_DrawString(230+keylen*8,y,value,UI_LEFT|UI_SMALLFONT,color_blue);
s_serverinfo.numdrawn++;
}
else
{
int i;
// TODO: Also add linebreaks for long keys?
UI_DrawString(230,y,key,UI_LEFT|UI_SMALLFONT,color_black);
for(i=0;i<vallen;i+=20)
{
y += SMALLCHAR_HEIGHT;
if(y>260) break;
UI_DrawString(230,y,va("%20.20s",&value[i]),UI_LEFT|UI_SMALLFONT,color_blue);
s_serverinfo.numdrawn++;
}
}
y += SMALLCHAR_HEIGHT;
}
Menu_Draw( &s_serverinfo.menu );
}
开发者ID:PadWorld-Entertainment,项目名称:wop-gamesource,代码行数:65,代码来源:ui_serverinfo.c
示例5: UI_VoteMenu_Fraglimit_Draw
/*
=================
UI_VoteMenu_Fraglimit_Draw
=================
*/
static void UI_VoteMenu_Fraglimit_Draw( void ) {
UI_DrawBannerString( 320, 16, "CALL VOTE - FRAGLIMIT", UI_CENTER, color_white );
UI_DrawNamedPic( 320-233, 240-166, 466, 332, ART_BACKGROUND );
// standard menu drawing
Menu_Draw( &s_votemenu_fraglmit.menu );
}
开发者ID:sago007,项目名称:oax,代码行数:12,代码来源:ui_votemenu_fraglimit.c
示例6: SoundOptions_MenuDraw
/*
================
SoundOptions_MenuDraw
================
*/
void SoundOptions_MenuDraw (void)
{
//APSFIX - rework this
SoundOptions_UpdateMenuItems();
Menu_Draw( &soundOptionsInfo.menu );
}
开发者ID:brugal,项目名称:wolfcamql,代码行数:12,代码来源:ui_sound.c
示例7: GraphicsOptions_MenuDraw
/*
================
GraphicsOptions_MenuDraw
================
*/
void GraphicsOptions_MenuDraw (void)
{
UI_BackGroundRender( 0, 0, 640, 480, 0.9f );
GraphicsOptions_UpdateMenuItems();
Menu_Draw( &s_graphicsoptions.menu );
}
开发者ID:entdark,项目名称:q3mme,代码行数:12,代码来源:ui_video.c
示例8: Multiplayer_MenuDraw
static void Multiplayer_MenuDraw (void)
{
Menu_DrawBanner( "m_banner_multiplayer" );
Menu_AdjustCursor( &s_multiplayer_menu, 1 );
Menu_Draw( &s_multiplayer_menu );
}
开发者ID:Kiln707,项目名称:KMQuake2,代码行数:7,代码来源:ui_multiplayer.c
示例9: Options_Interface_MenuDraw
void Options_Interface_MenuDraw (void)
{
Menu_DrawBanner( "m_banner_options" );
Menu_AdjustCursor( &s_options_interface_menu, 1 );
Menu_Draw( &s_options_interface_menu );
}
开发者ID:Nephatrine,项目名称:nephq2,代码行数:7,代码来源:ui_options_interface.c
示例10: Draw
static void Draw( menuFrameWork_t *self ) {
Menu_Draw( self );
if( uis.width >= 640 ) {
UI_DrawString( uis.width, uis.height - CHAR_HEIGHT,
UI_RIGHT, m_demos.status );
}
}
开发者ID:Bad-ptr,项目名称:q2pro,代码行数:7,代码来源:ui_demos.c
示例11: draw_WifiScan
// ---------------------------------------------------------------------------
void draw_WifiScan() {
Screen_DrawBorder(_lng(WIFI_SCAN_TITLE));
if(WifiScan_First == 1) {
// first draw screen, on second draw scan for wifi networks
WifiScan_First = 2;
}
else if(WifiScan_First == 2) {
WifiScan_First = 0;
doScan();
return;
}
if(WifiScan_First == 0) {
// draw menu
Menu_Draw(menu_wifi_scan, 1, 8);
} else {
// draw 'scanning...'
GLCDD_Rect r;
r.x = SCREEN_W / 2 - GLCDD_StringWidth(fnt_dejavu_9b, _lng(SCANNING)) / 2;
r.y = SCREEN_H / 2 - GLCDD_FontHeight(fnt_dejavu_9b) / 2;
r.w = SCREEN_W - 4;
r.h = -1;
GLCDD_Print(fnt_dejavu_9b, &r, _lng(SCANNING));
}
}
开发者ID:BackupGGCode,项目名称:raspberry-webradio,代码行数:29,代码来源:screen_wifi_scan.c
示例12: TurboliftMenu_Draw
/*
===============
TurboliftMenu_Draw
===============
*/
static void TurboliftMenu_Draw(void)
{
// Draw graphics particular to Main Menu
M_TurboliftMenu_Graphics();
Menu_Draw( &s_turbolift.menu );
}
开发者ID:gitter-badger,项目名称:rpgxEF,代码行数:12,代码来源:ui_turbolift.c
示例13: DriverInfo_MenuDraw
/*
=================
DriverInfo_MenuDraw
=================
*/
static void DriverInfo_MenuDraw(void)
{
int i;
int y;
Menu_Draw(&s_driverinfo.menu);
UI_DrawString(320, 80, "VENDOR", UI_CENTER|UI_SMALLFONT, color_red);
UI_DrawString(320, 152, "PIXELFORMAT", UI_CENTER|UI_SMALLFONT, color_red);
UI_DrawString(320, 192, "EXTENSIONS", UI_CENTER|UI_SMALLFONT, color_red);
UI_DrawString(320, 80+16, uis.glconfig.vendor_string, UI_CENTER|UI_SMALLFONT, text_color_normal);
UI_DrawString(320, 96+16, uis.glconfig.version_string, UI_CENTER|UI_SMALLFONT, text_color_normal);
UI_DrawString(320, 112+16, uis.glconfig.renderer_string, UI_CENTER|UI_SMALLFONT, text_color_normal);
UI_DrawString(320, 152+16, va ("color(%d-bits) Z(%d-bits) stencil(%d-bits)", uis.glconfig.colorBits, uis.glconfig.depthBits, uis.glconfig.stencilBits), UI_CENTER|UI_SMALLFONT, text_color_normal);
// double column
y = 192+16;
for (i=0; i<s_driverinfo.numstrings/2; i++)
{
UI_DrawString(320-4, y, s_driverinfo.strings[i*2], UI_RIGHT|UI_SMALLFONT, text_color_normal);
UI_DrawString(320+4, y, s_driverinfo.strings[i*2+1], UI_LEFT|UI_SMALLFONT, text_color_normal);
y += SMALLCHAR_HEIGHT;
}
if (s_driverinfo.numstrings & 1)
UI_DrawString(320, y, s_driverinfo.strings[s_driverinfo.numstrings-1], UI_CENTER|UI_SMALLFONT, text_color_normal);
}
开发者ID:ElderPlayerX,项目名称:Invasion,代码行数:33,代码来源:ui_video.c
示例14: Network_MenuDraw
/*
=================
Network_MenuDraw
=================
*/
static void Network_MenuDraw (void)
{
M_NetworkMenu_Graphics();
Menu_Draw( &networkOptionsInfo.menu );
}
开发者ID:gitter-badger,项目名称:rpgxEF,代码行数:12,代码来源:ui_network.c
示例15: GraphicsOptions_MenuDraw
/*
================
GraphicsOptions_MenuDraw
================
*/
void GraphicsOptions_MenuDraw (void)
{
//APSFIX - rework this
GraphicsOptions_UpdateMenuItems();
Menu_Draw(&s_graphicsoptions.menu);
}
开发者ID:ElderPlayerX,项目名称:Invasion,代码行数:12,代码来源:ui_video.c
示例16: ArenaServers_MenuDraw
/*
=================
ArenaServers_MenuDraw
=================
*/
static void ArenaServers_MenuDraw( void )
{
if (g_arenaservers.refreshservers)
ArenaServers_DoRefresh();
Menu_Draw( &g_arenaservers.menu );
}
开发者ID:ensiform,项目名称:q3pp,代码行数:12,代码来源:ui_servers2.cpp
示例17: VID_MenuDraw
/*
================
VID_MenuDraw
================
*/
void VID_MenuDraw (void)
{
int w, h;
if ( s_current_menu_index == 0 )
s_current_menu = &s_software_menu;
else
s_current_menu = &s_opengl_menu;
/*
** draw the banner
*/
re.DrawGetPicSize( &w, &h, "m_banner_video" );
re.DrawPic( viddef.width / 2 - w / 2, viddef.height /2 - 110, "m_banner_video" );
/*
** move cursor to a reasonable starting position
*/
Menu_AdjustCursor( s_current_menu, 1 );
/*
** draw the menu
*/
Menu_Draw( s_current_menu );
}
开发者ID:qbism,项目名称:qbq2,代码行数:30,代码来源:vid_menu.c
示例18: Controls_MenuDraw
static void Controls_MenuDraw (menuframework_s *self)
{
M_Banner ("m_banner_options");
Menu_AdjustCursor (self, 1);
Menu_Draw (self);
}
开发者ID:raynorpat,项目名称:cake,代码行数:7,代码来源:menu_options_controls.c
示例19: StartServer_ItemPage_Old_MenuDraw
/*
=================
StartServer_ItemPage_Old_MenuDraw
=================
*/
static void StartServer_ItemPage_Old_MenuDraw(void)
{
int i;
int style;
if (uis.firstdraw) {
// put all the data in place
if (s_itemcontrols_old.ingame_menu) {
StartServer_InGame_Old_Init();
}
else {
StartServer_ItemPage_Old_Load();
}
StartServer_ItemPage_Old_UpdateInterface();
}
StartServer_BackgroundDraw(qfalse);
style = UI_SMALLFONT|UI_DROPSHADOW|UI_INVERSE;
for (i = 0; i < groupInfo_Size; i++)
{
if (!groupInfo[i].title)
continue;
UI_DrawProportionalString( groupInfo[i].x, groupInfo[i].y, groupInfo[i].title, style, color_red );
}
// draw the controls
Menu_Draw(&s_itemcontrols_old.menu);
}
开发者ID:themuffinator,项目名称:fnq3,代码行数:37,代码来源:ui_startserver_items_old.c
示例20: UI_VoteMenu_Custom_Draw
/*
=================
UI_VoteMenu_Custom_Draw
=================
*/
static void UI_VoteMenu_Custom_Draw( void ) {
UI_DrawBannerString( 320, 16, "CALL VOTE CUSTOM", UI_CENTER, color_white );
UI_DrawNamedPic( 320-233, 240-166, 466, 332, ART_BACKGROUND );
// standard menu drawing
Menu_Draw( &s_votemenu_custom.menu );
}
开发者ID:Developer626,项目名称:gamecode,代码行数:12,代码来源:ui_votemenu_custom.c
注:本文中的Menu_Draw函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论