added download button for relay

This commit is contained in:
lax1dude 2023-10-14 23:48:48 -07:00
parent 5fac75829e
commit e21aceff9f
11 changed files with 25789 additions and 25785 deletions

Binary file not shown.

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

View File

@ -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

Binary file not shown.

View File

@ -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"));
} }
} }

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