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

Method Draw

client/src/main/java/jake2/client/Menu.java:4122–4144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4120 * ================= Draw =================
4121 */
4122 static void Draw() {
4123 if (ClientGlobals.cls.key_dest != key_menu)
4124 return;
4125
4126 // repaint everything next frame
4127 SCR.DirtyScreen();
4128
4129 // dim everything behind it down
4130 if (ClientGlobals.cl.cinematictime > 0)
4131 ClientGlobals.re.DrawFill(0, 0, ClientGlobals.viddef.getWidth(), ClientGlobals.viddef.getHeight(), 0);
4132 else
4133 ClientGlobals.re.DrawFadeScreen();
4134
4135 m_drawfunc.execute(Collections.emptyList());
4136
4137 // delay playing the enter sound until after the
4138 // menu has been drawn, to avoid delay while
4139 // caching images
4140 if (m_entersound) {
4141 S.StartLocalSound(menu_in_sound);
4142 m_entersound = false;
4143 }
4144 }
4145
4146 /*
4147 * ================= Keydown =================

Callers 1

UpdateScreen2Method · 0.95

Calls 7

DirtyScreenMethod · 0.95
StartLocalSoundMethod · 0.95
getWidthMethod · 0.80
getHeightMethod · 0.80
DrawFillMethod · 0.65
DrawFadeScreenMethod · 0.65
executeMethod · 0.65

Tested by

no test coverage detected