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

Method Init

client/src/main/java/jake2/client/SCR.java:427–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 ==============

Callers 1

InitMethod · 0.95

Calls 6

getInstanceMethod · 0.95
AddCommandMethod · 0.95
Loading_fMethod · 0.95
SizeUp_fMethod · 0.95
SizeDown_fMethod · 0.95
GetMethod · 0.80

Tested by

no test coverage detected