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

Method drawBackground

forge-gui-mobile/src/forge/toolbox/FDialog.java:198–210  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

196 }
197
198 @Override
199 protected void drawBackground(Graphics g) {
200 super.drawBackground(g);
201
202 if (revealPercent == 0) { return; }
203
204 float x = 0;
205 float y = getHeight() - (totalHeight + getBottomMargin()) * revealPercent;
206 float w = getWidth();
207 float h = totalHeight - VPrompt.HEIGHT;
208 g.drawImage(Forge.isMobileAdventureMode ? FSkinTexture.ADV_BG_TEXTURE : FSkinTexture.BG_TEXTURE, x, y, w, h);
209 g.fillRect(FScreen.getTextureOverlayColor(), x, y, w, h);
210 }
211
212 @Override
213 public void drawOverlay(Graphics g) {

Callers

nothing calls this directly

Calls 6

getBottomMarginMethod · 0.95
fillRectMethod · 0.80
getHeightMethod · 0.65
getWidthMethod · 0.65
drawImageMethod · 0.45

Tested by

no test coverage detected