MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / render

Method render

plugins/uiSystem.js:1225–1233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1223 this.interactive = true;
1224 }
1225 render()
1226 {
1227 super.render();
1228
1229 // draw the text scaled to fit
1230 const textSize = this.getTextSize();
1231 uiSystem.drawText(this.text, this.pos.add(this.textOffset), textSize,
1232 this.textColor, this.textLineWidth, this.textLineColor, this.align, this.font, this.fontStyle, true, this.textShadow);
1233 }
1234}
1235
1236///////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 4

getTextSizeMethod · 0.80
renderMethod · 0.45
drawTextMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected