added download button for relay
This commit is contained in:
parent
5fac75829e
commit
e21aceff9f
Binary file not shown.
Binary file not shown.
17188
javascript/classes.js
17188
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -291,6 +291,7 @@ networkSettings.loadDefaults=Load Defaults
|
||||||
networkSettings.relayTimeout=Connection Timeout:
|
networkSettings.relayTimeout=Connection Timeout:
|
||||||
networkSettings.relayTimeoutChange=change
|
networkSettings.relayTimeoutChange=change
|
||||||
networkSettings.relayTimeoutTitle=Change Connection Timeout
|
networkSettings.relayTimeoutTitle=Change Connection Timeout
|
||||||
|
networkSettings.downloadRelay=Download JAR
|
||||||
|
|
||||||
addRelay.title=Add New Relay
|
addRelay.title=Add New Relay
|
||||||
addRelay.name=Relay Comment
|
addRelay.name=Relay Comment
|
||||||
|
|
BIN
lwjgl-rundir/resources/relay_download.zip
Normal file
BIN
lwjgl-rundir/resources/relay_download.zip
Normal file
Binary file not shown.
|
@ -38,6 +38,7 @@ public class GuiScreenRelay extends GuiScreen {
|
||||||
buttonList.add(setPrimary = new GuiButton(3, this.width / 2 + 54, this.height - 52, 100, 20, var1.translateKey("networkSettings.default")));
|
buttonList.add(setPrimary = new GuiButton(3, this.width / 2 + 54, this.height - 52, 100, 20, var1.translateKey("networkSettings.default")));
|
||||||
buttonList.add(new GuiButton(4, this.width / 2 - 50, this.height - 28, 100, 20, var1.translateKey("networkSettings.refresh")));
|
buttonList.add(new GuiButton(4, this.width / 2 - 50, this.height - 28, 100, 20, var1.translateKey("networkSettings.refresh")));
|
||||||
buttonList.add(new GuiButton(5, this.width / 2 - 154, this.height - 28, 100, 20, var1.translateKey("networkSettings.loadDefaults")));
|
buttonList.add(new GuiButton(5, this.width / 2 - 154, this.height - 28, 100, 20, var1.translateKey("networkSettings.loadDefaults")));
|
||||||
|
buttonList.add(new GuiButton(6, this.width - 100, 0, 100, 20, var1.translateKey("networkSettings.downloadRelay")));
|
||||||
updateButtons();
|
updateButtons();
|
||||||
this.slots = new GuiSlotRelay(this);
|
this.slots = new GuiSlotRelay(this);
|
||||||
if(!hasPinged) {
|
if(!hasPinged) {
|
||||||
|
@ -91,6 +92,8 @@ public class GuiScreenRelay extends GuiScreen {
|
||||||
slots.relayManager.ping();
|
slots.relayManager.ping();
|
||||||
}
|
}
|
||||||
lastRefresh += 60l;
|
lastRefresh += 60l;
|
||||||
|
} else if(btn.id == 6) {
|
||||||
|
EaglerAdapter.downloadBytes("EaglerSPRelay.zip", AssetRepository.getResource("relay_download.zip"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
17190
stable-download/Offline_Download_Version.html
vendored
17190
stable-download/Offline_Download_Version.html
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user