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

Method draw

forge-gui-mobile/src/forge/adventure/scene/DuelScene.java:259–265  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

257 return true;
258 }
259 @Override
260 public void draw(Graphics g) {
261 float h = getHeight();
262 float w = h / FCardPanel.ASPECT_RATIO;
263 float xPos = (getWidth() - w) / 2;
264 CardRenderer.drawCard(g, cardView, xPos, 0, w, h, CardStackPosition.Top, true);
265 }
266 };
267 cardDisplay.setHeight(Forge.getScreenHeight() / 3);
268

Callers

nothing calls this directly

Calls 6

drawCardMethod · 0.95
getAvatarsMethod · 0.95
getHeightMethod · 0.65
getWidthMethod · 0.65
getMethod · 0.65
drawImageMethod · 0.45

Tested by

no test coverage detected