MCPcopy Create free account
hub / github.com/Var3D/var3dframe / VLabel

Method VLabel

core/src/core/java/var3d/net/center/VLabel.java:28–34  ·  view source on GitHub ↗
(CharSequence newText, LabelStyle style)

Source from the content-addressed store, hash-verified

26 }
27
28 public VLabel(CharSequence newText, LabelStyle style) {
29 super(append(newText, style), style);
30 fontCache = getBitmapFontCache();
31 addText(newText);
32 setSize(getPrefWidth(), getPrefHeight());
33 setColor(style.fontColor);
34 }
35
36 private void addText(CharSequence newText) {
37 if (newText == null) newText = "";

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
addTextMethod · 0.95
setColorMethod · 0.95
setSizeMethod · 0.45

Tested by

no test coverage detected