452
452
static tConfItem<bool> wsp("WHITE_SPARKS",white_sparks);
454
454
extern bool sg_crashExplosion; // from gExplosion.cpp
455
static tConfItem<bool> crexp("EXPLOSION",sg_crashExplosion);
458
// both from ePlayer.cpp
459
static tConfItem<bool> se_highlightMyNameConf("HIGHLIGHT_NAME", se_highlightMyName);
461
static tConfItem<bool> se_tabCompletionConf("TAB_COMPLETION", se_tabCompletion);
462
static tConfItem<bool> se_tabCompletionColors("TAB_COMPLETION_WITH_COLORS", se_tabCompletionWithColors);
464
void sg_SpecialMenu()
466
uMenu menu("$special_setup_menu_text");
468
uMenuItemToggle hlm(&menu, "$highlight_name_menu_text", "$highlight_name_menu_help", se_highlightMyName);
469
uMenuItemToggle tcwc(&menu, "$tab_completion_with_colors_menu_text", "$tab_completion_with_colors_menu_help", se_tabCompletionWithColors);
470
uMenuItemToggle tc(&menu, "$tab_completion_menu_text", "$tab_completion_menu_help", se_tabCompletion);
472
uMenuItemToggle hcw(&menu, "$hide_cycles_walls_menu_text", "$hide_cycles_walls_menu_help", sg_HideCyclesWalls);
473
uMenuItemToggle hc(&menu, "$hide_cycles_menu_text", "$hide_cycles_menu_help", sg_HideCycles);
480
uMenu menu("$config_setup_menu_text");
482
uMenuItemFunction sac(&menu, "$config_save_all_text", "$config_save_all_help", &tConfItemBase::WriteAllToFile);
483
uMenuItemFunction lac(&menu, "$config_load_all_text", "$config_load_all_help", &st_LoadConfig);
485
uMenuItemFunction scc(&menu, "$config_save_changed_text", "$config_save_changed_help", &tConfItemBase::WriteChangedToFile);
488
uMenuItemFunction suc(&menu, "$config_user_save_text", "$config_user_save_help", &st_SaveConfig);
489
uMenuItemFunction luc(&menu, "$config_user_load_text", "$config_user_load_help", &st_LoadUserConfig);
455
static tConfItem<bool> crexp("EXPLOSION",sg_crashExplosion);
458
// both from ePlayer.cpp
459
static tConfItem<bool> se_highlightMyNameConf("HIGHLIGHT_NAME", se_highlightMyName);
461
static tConfItem<bool> se_tabCompletionConf("TAB_COMPLETION", se_tabCompletion);
462
static tConfItem<bool> se_tabCompletionColors("TAB_COMPLETION_WITH_COLORS", se_tabCompletionWithColors);
464
void sg_SpecialMenu()
466
uMenu menu("$special_setup_menu_text");
468
uMenuItemToggle hlm(&menu, "$highlight_name_menu_text", "$highlight_name_menu_help", se_highlightMyName);
469
uMenuItemToggle tcwc(&menu, "$tab_completion_with_colors_menu_text", "$tab_completion_with_colors_menu_help", se_tabCompletionWithColors);
470
uMenuItemToggle tc(&menu, "$tab_completion_menu_text", "$tab_completion_menu_help", se_tabCompletion);
472
uMenuItemToggle hcw(&menu, "$hide_cycles_walls_menu_text", "$hide_cycles_walls_menu_help", sg_HideCyclesWalls);
473
uMenuItemToggle hc(&menu, "$hide_cycles_menu_text", "$hide_cycles_menu_help", sg_HideCycles);
480
uMenu menu("$config_setup_menu_text");
482
uMenuItemFunction sac(&menu, "$config_save_all_text", "$config_save_all_help", &tConfItemBase::WriteAllToFile);
483
uMenuItemFunction lac(&menu, "$config_load_all_text", "$config_load_all_help", &st_LoadConfig);
485
uMenuItemFunction scc(&menu, "$config_save_changed_text", "$config_save_changed_help", &tConfItemBase::WriteChangedToFile);
488
uMenuItemFunction suc(&menu, "$config_user_save_text", "$config_user_save_help", &st_SaveConfig);
489
uMenuItemFunction luc(&menu, "$config_user_load_text", "$config_user_load_help", &st_LoadUserConfig);
495
495
//extern bool png_screenshot; // from rSysdep.cpp
496
496
//static tConfItem<bool> pns("PNG_SCREENSHOT",png_screenshot);
635
635
static tConfItem<REAL> px("PING_LOCX",subby_PingLocX);
636
636
static tConfItem<REAL> py("PING_LOCY",subby_PingLocY);
637
static tConfItem<REAL> ps("PING_SIZE",subby_PingSize);
639
static tConfItem<REAL> positionx("POSITION_LOCX",subby_CoordLocX);
640
static tConfItem<REAL> positiony("POSITION_LOCY",subby_CoordLoxY);
637
static tConfItem<REAL> ps("PING_SIZE",subby_PingSize);
639
static tConfItem<REAL> positionx("POSITION_LOCX",subby_CoordLocX);
640
static tConfItem<REAL> positiony("POSITION_LOCY",subby_CoordLoxY);
641
641
static tConfItem<REAL> positions("POSITION_SIZE",subby_CoordSize);
643
643
uMenuItemToggle hud3
680
680
(&hud_prefs,"$pref_showhud_text",
681
681
"$pref_showhud_help",subby_ShowHUD);
683
static tConfItem<bool> WRAP("WRAP_MENU",uMenu::wrap);
685
static void ConTabCompletition(tString &strString, int &curserPos)
687
tArray<tString> msgsExt = strString.Split(" ");
691
for(int i = 0; i < msgsExt.Len(); i++)
693
tString word = msgsExt[i];
695
cusPos += word.Len() - 1;
697
if (cusPos == curserPos)
699
tString found_command = tConfItemBase::FindConfigItem(word.Filter());
700
if (found_command != "")
701
word = found_command + " ";
706
if ((i + 1) == msgsExt.Len())
709
newString << word << " ";
712
strString = newString;
713
curserPos = newString.Len();
683
static tConfItem<bool> WRAP("WRAP_MENU",uMenu::wrap);
685
static void ConTabCompletition(tString &strString, int &curserPos)
687
tArray<tString> msgsExt = strString.Split(" ");
691
for(int i = 0; i < msgsExt.Len(); i++)
693
tString word = msgsExt[i];
695
cusPos += word.Len() - 1;
697
if (cusPos == curserPos)
699
tString found_command = tConfItemBase::FindConfigItem(word.Filter());
700
if (found_command != "")
701
word = found_command + " ";
706
if ((i + 1) == msgsExt.Len())
709
newString << word << " ";
712
strString = newString;
713
curserPos = newString.Len();
716
716
class gMemuItemConsole: uMenuItemStringWithHistory{
1005
1005
"$player_num_per_team_help",
1006
1006
p->favoriteNumberOfPlayersPerTeam, 1, 16, 1);
1008
//Color Randomization in the player menu
1009
uMenuItemSelection<int> se_cr(&playerMenu,"$player_color_randomization_text","$player_color_randomization_help",p->colorRandomization);
1010
se_cr.NewChoice("$player_color_randomization_none_text", "$player_color_randomization_none_help", COLORRANDOMIZATIONOFF);
1011
se_cr.NewChoice("$player_color_randomization_random_text", "$player_color_randomization_random_help", COLORRANDOMIZATIONRANDOM);
1012
se_cr.NewChoice("$player_color_randomization_unique_text", "$player_color_randomization_unique_help", COLORRANDOMIZATIONUNIQUE);
1008
1014
ArmageTron_color_menuitem B(&playerMenu,"$player_blue_text",
1009
1015
"$player_blue_help",