()
| 425 | * ================== SCR_Init ================== |
| 426 | */ |
| 427 | static void Init() { |
| 428 | scr_viewsize = Cvar.getInstance().Get("viewsize", "100", CVAR_ARCHIVE); |
| 429 | scr_conspeed = Cvar.getInstance().Get("scr_conspeed", "3", 0); |
| 430 | scr_showturtle = Cvar.getInstance().Get("scr_showturtle", "0", 0); |
| 431 | scr_showpause = Cvar.getInstance().Get("scr_showpause", "1", 0); |
| 432 | scr_centertime = Cvar.getInstance().Get("scr_centertime", "2.5", 0); |
| 433 | scr_printspeed = Cvar.getInstance().Get("scr_printspeed", "8", 0); |
| 434 | scr_netgraph = Cvar.getInstance().Get("netgraph", "0", 0); |
| 435 | scr_timegraph = Cvar.getInstance().Get("timegraph", "0", 0); |
| 436 | scr_debuggraph = Cvar.getInstance().Get("debuggraph", "0", 0); |
| 437 | scr_graphheight = Cvar.getInstance().Get("graphheight", "32", 0); |
| 438 | scr_graphscale = Cvar.getInstance().Get("graphscale", "1", 0); |
| 439 | scr_graphshift = Cvar.getInstance().Get("graphshift", "0", 0); |
| 440 | scr_drawall = Cvar.getInstance().Get("scr_drawall", "1", 0); |
| 441 | fps = Cvar.getInstance().Get("fps", "0", 0); |
| 442 | |
| 443 | // |
| 444 | // register our commands |
| 445 | // |
| 446 | Cmd.AddCommand("timerefresh", SCR::TimeRefresh_f); |
| 447 | Cmd.AddCommand("loading", (List<String> args) -> Loading_f()); |
| 448 | Cmd.AddCommand("sizeup", (List<String> args) -> SizeUp_f()); |
| 449 | Cmd.AddCommand("sizedown", (List<String> args) -> SizeDown_f()); |
| 450 | Cmd.AddCommand("sky", SCR::Sky_f); |
| 451 | |
| 452 | scr_initialized = true; |
| 453 | } |
| 454 | |
| 455 | /* |
| 456 | * ============== SCR_DrawNet ============== |
no test coverage detected