#include "uMenu.h"
Go to the source code of this file.
Functions | |
void | sg_PlayerMenu () |
void | sg_ConsoleInput () |
Variables | |
uMenu | sg_screenMenu |
void sg_ConsoleInput | ( | ) |
Definition at line 666 of file gMenus.cpp.
References do_con(), and st_ToDo().
Referenced by con_func().
void sg_PlayerMenu | ( | ) |
Definition at line 1055 of file gMenus.cpp.
References uMenu::Enter(), MAX_PLAYERS, MAX_VIEWPORTS, tOutput::SetTemplateParameter(), and sg_PlayerMenu().
01055 { 01056 uMenu Player_men("$player_mainmenu_text"); 01057 01058 01059 uMenuItemFunction vp_selec(&Player_men, 01060 "$viewport_assign_text", 01061 "$viewport_assign_help", 01062 &viewport_menu_x); 01063 01064 ArmageTron_viewport_menuitem vp(&Player_men); 01065 uMenuItemFunctionInt *names[MAX_PLAYERS]; 01066 01067 int i; 01068 01069 for(i=MAX_PLAYERS-1;i>=0;i--){ 01070 tOutput title; 01071 title.SetTemplateParameter(1, i+1); 01072 title << "$player_menu_text"; 01073 01074 tOutput help; 01075 help.SetTemplateParameter(1, i+1); 01076 help << "$player_menu_help"; 01077 01078 names[i]=new uMenuItemFunctionInt(&Player_men, 01079 title, 01080 help, 01081 sg_PlayerMenu,i); 01082 } 01083 01084 01085 Player_men.Enter(); 01086 01087 // ePlayerNetID::Update(); 01088 for(i=MAX_VIEWPORTS-1;i>=0;i--){ 01089 delete names[i]; 01090 } 01091 }