Gui rendering cleanup

This commit is contained in:
mezz committed 2017-01-24 20:53:27 -08:00
1 parent 17f036522e
commit 31a305ffc2
173 files changed
+1317 -1349

No files matched your search

@@ -17,9 +17,9 @@ public class ControlSequencerProgress extends ControlProgressBase {
ControlText textControl;
public ControlSequencerProgress(final IWidget parent, final int x, final int y) {
super(parent, x, y, 100.0f, 52.0f);
final Panel panel = new Panel(this, 0.0f, 0.0f, 100.0f, 52.0f, MinecraftGUI.PanelType.Gray);
this.textControl = new ControlText(panel, new IArea(4.0f, 4.0f, 92.0f, 44.0f), "", TextJustification.MiddleCenter);
super(parent, x, y, 100, 52);
final Panel panel = new Panel(this, 0, 0, 100, 52, MinecraftGUI.PanelType.Gray);
this.textControl = new ControlText(panel, new IArea(4, 4, 92, 44), "", TextJustification.MiddleCenter);
}
@Override
@@ -37,10 +37,10 @@ public class ControlSequencerProgress extends ControlProgressBase {
final int k = rand.nextInt(4);
final String code = codes[k];
if (rand.nextFloat() < this.progress) {
final String col = "§" + colors[k];
text = text + "§r" + col + "§l" + code;
final String col = "�" + colors[k];
text = text + "�r" + col + "�l" + code;
} else {
text = text + "§r§7§k§l" + code;
text = text + "�r�7�k�l" + code;
}
}
this.textControl.setValue(text);