Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit 2fc16d8

Browse files
committed
NoClassDefFoundError
1 parent a6823e8 commit 2fc16d8

3 files changed

Lines changed: 28 additions & 36 deletions

File tree

src/haven/CharWnd.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,31 @@ public void uimsg(String nm, Object... args) {
264264
super.uimsg(nm, args);
265265
}
266266
}
267+
268+
public static class LoadingTextBox extends RichTextBox {
269+
private Indir<String> text = null;
270+
271+
public LoadingTextBox(Coord sz, String text, RichText.Foundry fnd) {
272+
super(sz, text, fnd);
273+
}
274+
275+
public LoadingTextBox(Coord sz, String text, Object... attrs) {
276+
super(sz, text, attrs);
277+
}
278+
279+
public void settext(Indir<String> text) {
280+
this.text = text;
281+
}
282+
283+
public void draw(GOut g) {
284+
if (text != null) {
285+
try {
286+
settext(text.get());
287+
text = null;
288+
} catch (Loading l) {
289+
}
290+
}
291+
super.draw(g);
292+
}
293+
}
267294
}

src/haven/chrwnd/LoadingTextBox.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/haven/chrwnd/SkillWnd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public SkillWnd() {
466466
Widget prev;
467467

468468
prev = add(CharWnd.settip(new Img(catf.render(Resource.getLocString(Resource.BUNDLE_LABEL, "Lore & Skills")).tex()), "gfx/hud/chr/tips/skills"), Coord.z);
469-
LoadingTextBox info = add(new LoadingTextBox(new Coord(attrw, height), "", ifnd), prev.pos("bl").adds(5, 0).add(wbox.btloff()));
469+
CharWnd.LoadingTextBox info = add(new CharWnd.LoadingTextBox(new Coord(attrw, height), "", ifnd), prev.pos("bl").adds(5, 0).add(wbox.btloff()));
470470
info.bg = new Color(0, 0, 0, 128);
471471
Frame.around(this, Collections.singletonList(info));
472472

0 commit comments

Comments
 (0)