This commit is contained in:
TheBrokenRail 2020-06-27 14:24:42 -04:00
parent c0303bf44f
commit ff407b1c74
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**1.1.3**
* Swap Buttons In GUI
**1.1.2**
* Cache Reader Objects
* Improve Logging

View File

@ -9,7 +9,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.8.8+build.202
# Mod Properties
mod_version = 1.1.2
mod_version = 1.1.3
maven_group = com.thebrokenrail
# Dependencies

View File

@ -35,11 +35,11 @@ public class ModUpdateScreen extends Screen {
int paddingX = 5;
int downloadX = width / 2 - buttonWidth - paddingX;
int doneX = width / 2 + paddingX;
addButton(new ButtonWidget(downloadX, height - 30, buttonWidth, 20, ScreenTexts.DONE, buttonWidget -> {
addButton(new ButtonWidget(doneX, height - 30, buttonWidth, 20, ScreenTexts.DONE, buttonWidget -> {
assert client != null;
client.openScreen(parent);
}));
download = addButton(new ButtonWidget(doneX, height - 30, buttonWidth, 20, new TranslatableText("gui." + ModUpdater.NAMESPACE + ".download"), buttonWidget -> {
download = addButton(new ButtonWidget(downloadX, height - 30, buttonWidth, 20, new TranslatableText("gui." + ModUpdater.NAMESPACE + ".download"), buttonWidget -> {
if (list.getSelected() != null) {
Util.getOperatingSystem().open(list.getSelected().update.downloadURL);
}