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

Method Menu_DrawStatusBar

client/src/main/java/jake2/client/Menu.java:4493–4505  ·  view source on GitHub ↗
(String string)

Source from the content-addressed store, hash-verified

4491 }
4492
4493 private static void Menu_DrawStatusBar(String string) {
4494 if (string != null) {
4495 int l = string.length();
4496 int maxrow = ClientGlobals.viddef.getHeight() / 8;
4497 int maxcol = ClientGlobals.viddef.getWidth() / 8;
4498 int col = maxcol / 2 - l / 2;
4499
4500 ClientGlobals.re.DrawFill(0, ClientGlobals.viddef.getHeight() - 8, ClientGlobals.viddef.getWidth(), 8, 4);
4501 Menu_DrawString(col * 8, ClientGlobals.viddef.getHeight() - 8, string);
4502 } else {
4503 ClientGlobals.re.DrawFill(0, ClientGlobals.viddef.getHeight() - 8, ClientGlobals.viddef.getWidth(), 8, 0);
4504 }
4505 }
4506
4507 private static void Menu_DrawString(int x, int y, String string) {
4508 int i;

Callers 1

Menu_DrawMethod · 0.95

Calls 4

Menu_DrawStringMethod · 0.95
getHeightMethod · 0.80
getWidthMethod · 0.80
DrawFillMethod · 0.65

Tested by

no test coverage detected