Skip to content

Commit 7d7293a

Browse files
committed
TextWidget helper ctor
1 parent 4fe6536 commit 7d7293a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/cleanroommc/modularui/widgets/TextWidget.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public TextWidget(IKey key) {
3030
this.key = key;
3131
}
3232

33+
public TextWidget(String key) {
34+
this(IKey.str(key));
35+
}
36+
3337
@Override
3438
public void draw(ModularGuiContext context, WidgetTheme widgetTheme) {
3539
TextRenderer renderer = TextRenderer.SHARED;

0 commit comments

Comments
 (0)