Fixed Upload GUI, added Tag Input

This commit is contained in:
Marius Metzger
2015-02-01 20:42:28 +01:00
parent 101a0359d3
commit c6dba7d0c1
12 changed files with 291 additions and 153 deletions

View File

@@ -46,6 +46,8 @@ public class GuiReplaySettings extends GuiScreen {
int k = 0;
int i = 0;
for (Entry<String, Object> e : aoptions.entrySet()) {
/*
if(e.getKey().equals("Maximum File Size")) {
float minValue = -1;
float maxValue = 10000;
@@ -54,7 +56,9 @@ public class GuiReplaySettings extends GuiScreen {
int val = (Integer)e.getValue();
this.buttonList.add(new GuiSizeLimitOptionSlider(MAXSIZE_SLIDER_ID, this.width / 2 - 155 + i % 2 * 160, this.height / 6 + 24 * (i >> 1), 0, 39, 1, val, e.getKey()));
} else if(e.getKey().equals("Enable Notifications")) {
} else
*/
if(e.getKey().equals("Enable Notifications")) {
sendChatButton = new GuiButton(SEND_CHAT, this.width / 2 - 155 + i % 2 * 160, this.height / 6 + 24 * (i >> 1), 150, 20, "Enable Notifications: "+onOff((Boolean)e.getValue()));
this.buttonList.add(sendChatButton);
} else if(e.getKey().equals("Record Server")) {
@@ -84,14 +88,13 @@ public class GuiReplaySettings extends GuiScreen {
private String onOff(boolean on) {
return on ? "ON" : "OFF";
}
private String linearOnOff(boolean on) {
return on ? "Linear" : "Cubic";
}
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks)
{
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
this.drawDefaultBackground();
this.drawCenteredString(this.fontRendererObj, "Replay Mod Settings", this.width / 2, 20, 16777215);
if (FMLClientHandler.instance().getClient().thePlayer != null) {
@@ -102,10 +105,8 @@ public class GuiReplaySettings extends GuiScreen {
}
protected void actionPerformed(GuiButton button) throws IOException
{
if (button.enabled)
{
protected void actionPerformed(GuiButton button) throws IOException {
if (button.enabled) {
switch(button.id) {
case 200:
this.mc.displayGuiScreen(this.parentGuiScreen);