Improve fluid rendering

This commit is contained in:
Nedelosk committed 2017-01-23 15:44:46 +01:00
1 parent f0d8d6b89d
commit 87cf7386c6
83 files changed
+351 -306

No files matched your search

@@ -24,7 +24,7 @@ class ControlSpeciexBoxOption extends ControlTextOption<IAlleleSpecies> {
}
CraftGUIUtil.moveWidget(this.textWidget, new IPoint(22.0f, 0.0f));
this.textWidget.setSize(this.textWidget.getSize().sub(new IPoint(24.0f, 0.0f)));
final int th = (int) CraftGUI.Render.textHeight(this.textWidget.getValue(), this.textWidget.getSize().x());
final int th = (int) CraftGUI.render.textHeight(this.textWidget.getValue(), this.textWidget.getSize().x());
final int height = Math.max(20, th + 6);
this.setSize(new IPoint(this.size().x(), height));
this.textWidget.setSize(new IPoint(this.textWidget.getSize().x(), height));