Moved "Main Menu" Button in Replay Center to the right side because it annoyed Hudeler | https://trello.com/c/wUiKfybu/
This commit is contained in:
@@ -243,8 +243,6 @@ public class GuiRenderSettings extends GuiScreen {
|
|||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
||||||
drawGradientRect(LEFT_BORDER, virtualY, width - LEFT_BORDER, virtualY + virtualHeight, -1072689136, -804253680);
|
drawGradientRect(LEFT_BORDER, virtualY, width - LEFT_BORDER, virtualY + virtualHeight, -1072689136, -804253680);
|
||||||
|
|||||||
@@ -90,14 +90,14 @@ public class GuiReplayCenter extends GuiScreen implements GuiYesNoCallback {
|
|||||||
//Bottom Button Bar (dat alliteration)
|
//Bottom Button Bar (dat alliteration)
|
||||||
bottomBar = new ArrayList<GuiButton>();
|
bottomBar = new ArrayList<GuiButton>();
|
||||||
|
|
||||||
GuiButton exitButton = new GuiButton(GuiConstants.CENTER_BACK_BUTTON, 20, 20, I18n.format("replaymod.gui.mainmenu"));
|
GuiButton logoutButton = new GuiButton(GuiConstants.CENTER_LOGOUT_BUTTON, 20, 20, I18n.format("replaymod.gui.logout"));
|
||||||
bottomBar.add(exitButton);
|
bottomBar.add(logoutButton);
|
||||||
|
|
||||||
GuiButton managerButton = new GuiButton(GuiConstants.CENTER_MANAGER_BUTTON, 20, 20, I18n.format("replaymod.gui.replayviewer"));
|
GuiButton managerButton = new GuiButton(GuiConstants.CENTER_MANAGER_BUTTON, 20, 20, I18n.format("replaymod.gui.replayviewer"));
|
||||||
bottomBar.add(managerButton);
|
bottomBar.add(managerButton);
|
||||||
|
|
||||||
GuiButton logoutButton = new GuiButton(GuiConstants.CENTER_LOGOUT_BUTTON, 20, 20, I18n.format("replaymod.gui.logout"));
|
GuiButton exitButton = new GuiButton(GuiConstants.CENTER_BACK_BUTTON, 20, 20, I18n.format("replaymod.gui.mainmenu"));
|
||||||
bottomBar.add(logoutButton);
|
bottomBar.add(exitButton);
|
||||||
|
|
||||||
showOnlineRecent();
|
showOnlineRecent();
|
||||||
disableTopBarButton(GuiConstants.CENTER_RECENT_BUTTON);
|
disableTopBarButton(GuiConstants.CENTER_RECENT_BUTTON);
|
||||||
|
|||||||
@@ -119,11 +119,10 @@ public class GuiReplayViewer extends GuiScreen implements GuiYesNoCallback {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initGui() {
|
public void initGui() {
|
||||||
replayGuiList = new ReplayList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
|
|
||||||
Keyboard.enableRepeatEvents(true);
|
Keyboard.enableRepeatEvents(true);
|
||||||
this.buttonList.clear();
|
|
||||||
|
|
||||||
if(!this.initialized) {
|
if(!this.initialized) {
|
||||||
|
replayGuiList = new ReplayList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
} else {
|
} else {
|
||||||
this.replayGuiList.setDimensions(this.width, this.height, 32, this.height - 64);
|
this.replayGuiList.setDimensions(this.width, this.height, 32, this.height - 64);
|
||||||
|
|||||||
Reference in New Issue
Block a user