MCPcopy Create free account
hub / github.com/Card-Forge/forge / draw

Method draw

forge-gui-mobile/src/forge/toolbox/FOptionPane.java:113–121  ·  view source on GitHub ↗
(final Graphics g)

Source from the content-addressed store, hash-verified

111 return true;
112 }
113 @Override
114 public void draw(final Graphics g) {
115 final float h = getHeight();
116 final float w = h / FCardPanel.ASPECT_RATIO;
117 final float x = (getWidth() - w) / 2;
118 final float y = 0;
119
120 CardRenderer.drawCard(g, card, x, y, w, h, CardStackPosition.Top, true);
121 }
122 };
123 cardDisplay.setHeight(Forge.getScreenHeight() / 2);
124 }

Callers

nothing calls this directly

Calls 3

drawCardMethod · 0.95
getHeightMethod · 0.65
getWidthMethod · 0.65

Tested by

no test coverage detected