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

Method render

plugins/uiSystem.js:1140–1151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1138 }
1139
1140 render()
1141 {
1142 super.render();
1143
1144 // draw the text scaled to fit
1145 const textSize = this.getTextSize();
1146 let text = this.text;
1147 if (this.isKeyInputObject()) // add a cursor to end of text
1148 text += timeReal%1 < .5 ? '█' : '░';
1149 uiSystem.drawText(text, this.pos, textSize,
1150 this.textColor, this.textLineWidth, this.textLineColor, this.align, this.font, this.fontStyle, true, this.textShadow);
1151 }
1152}
1153
1154///////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 4

getTextSizeMethod · 0.80
isKeyInputObjectMethod · 0.80
renderMethod · 0.45
drawTextMethod · 0.45

Tested by

no test coverage detected