Added a way to limit a GuiTextArea's maximum character count and used it in GuiUploadFile's Description Text Area

Set GuiUploadFile's Description Text Area's line and width limit to a high value for better results on the website | https://trello.com/c/YS9EyYPF/
This commit is contained in:
CrushedPixel
2015-07-04 21:16:27 +02:00
parent 0743b3e1ac
commit 3813673ef6
2 changed files with 19 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ public class GuiUploadFile extends GuiScreen implements ProgressUpdateListener {
tags.hint = I18n.format("replaymod.gui.upload.tagshint");
y+=20;
description = new GuiTextArea(fontRendererObj, 0, name.yPosition, 0, y - name.yPosition, 30, 15);
description = new GuiTextArea(fontRendererObj, 0, name.yPosition, 0, y - name.yPosition, 1000, 100, 1000);
}
columnWidth = Math.min(200, (width - 60) / 3);