MCPcopy Create free account
hub / github.com/demoth/jake2 / RulesChangeFunc

Method RulesChangeFunc

client/src/main/java/jake2/client/Menu.java:2484–2514  ·  view source on GitHub ↗
(Object self)

Source from the content-addressed store, hash-verified

2482 }
2483
2484 private static void RulesChangeFunc(Object self) {
2485 // DM
2486 if (s_rules_box.curvalue == 0) {
2487 s_maxclients_field.statusbar = null;
2488 s_startserver_dmoptions_action.statusbar = null;
2489 } else if (s_rules_box.curvalue == 1)
2490 // coop // PGM
2491 {
2492 s_maxclients_field.statusbar = "4 maximum for cooperative";
2493 if (Lib.atoi(s_maxclients_field.buffer.toString()) > 4)
2494 s_maxclients_field.buffer = new StringBuffer("4");
2495 s_startserver_dmoptions_action.statusbar = "N/A for cooperative";
2496 }
2497 // =====
2498 // PGM
2499 // ROGUE GAMES
2500 else if (FS.Developer_searchpath() == 2) {
2501 if (s_rules_box.curvalue == 2) // tag
2502 {
2503 s_maxclients_field.statusbar = null;
2504 s_startserver_dmoptions_action.statusbar = null;
2505 }
2506 /*
2507 * else if(s_rules_box.curvalue == 3) // deathball {
2508 * s_maxclients_field.statusbar = null;
2509 * s_startserver_dmoptions_action.statusbar = null; }
2510 */
2511 }
2512 // PGM
2513 // =====
2514 }
2515
2516 private static void StartServerActionFunc(Object self) {
2517 //char startmap[1024];

Callers 2

executeMethod · 0.95
StartServer_MenuInitMethod · 0.95

Calls 3

atoiMethod · 0.95
Developer_searchpathMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected