1.1.3
All checks were successful
ModUpdater/pipeline/head This commit looks good

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 # Changelog
**1.1.3**
* Swap Buttons In GUI
**1.1.2** **1.1.2**
* Cache Reader Objects * Cache Reader Objects
* Improve Logging * Improve Logging

View File

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

View File

@ -35,11 +35,11 @@ public class ModUpdateScreen extends Screen {
int paddingX = 5; int paddingX = 5;
int downloadX = width / 2 - buttonWidth - paddingX; int downloadX = width / 2 - buttonWidth - paddingX;
int doneX = width / 2 + 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; assert client != null;
client.openScreen(parent); 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) { if (list.getSelected() != null) {
Util.getOperatingSystem().open(list.getSelected().update.downloadURL); Util.getOperatingSystem().open(list.getSelected().update.downloadURL);
} }