Skip to content

Commit

Permalink
Fixed an issue with "Restart" panel appearing beyond the screen, 1.0.…
Browse files Browse the repository at this point in the history
…0.6 release
  • Loading branch information
Exslims committed Mar 13, 2017
1 parent 17f60d2 commit 5eb7717
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created by Константин on 29.01.2017.
*/
public class MercuryConstants {
public static final String APP_VERSION = "1.0.0.5";
public static final String APP_VERSION = "1.0.0.6";
public static final String SERVER_HOST = "exslims.ddns.net";
public static final int PORT = 5555;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.mercury.platform.ui.components.panel.settings;

import com.mercury.platform.shared.ConfigManager;
import com.mercury.platform.shared.events.EventRouter;
import com.mercury.platform.shared.events.custom.UpdateInfoEvent;
import com.mercury.platform.ui.components.ComponentsFactory;
import com.mercury.platform.ui.components.panel.misc.HasUI;
import com.mercury.platform.ui.frame.impl.NotesFrame;
Expand Down Expand Up @@ -67,8 +69,19 @@ public void mouseClicked(MouseEvent e) {
}
}
});
JButton updateEvent = componentsFactory.getBorderedButton("Update event");
updateEvent.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if(SwingUtilities.isLeftMouseButton(e)){
EventRouter.INSTANCE.fireEvent(new UpdateInfoEvent(123));
FramesManager.INSTANCE.hideFrame(SettingsFrame.class);
}
}
});
this.add(openTutorial);
this.add(openTests);
this.add(patchNotes);
this.add(updateEvent);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ public void initHandlers() {
if(tbLocation.y + 30 + this.getHeight() > dim.height){
this.setLocation(tbLocation.x,tbLocation.y - 44);
}else {
this.setLocation(tbLocation.x, tbLocation.y + 40);
this.setLocation(tbLocation.x, tbLocation.y + 44);
}
int deltaWidth = dim.width - (this.getLocation().x + this.getWidth());
if(deltaWidth < 0){
this.setLocation(tbLocation.x - Math.abs(deltaWidth), this.getLocation().y);
}
if (!this.isVisible() && AppStarter.APP_STATUS == FrameStates.SHOW) {
this.setVisible(true);
Expand Down
4 changes: 2 additions & 2 deletions app-ui/src/main/resources/notes/patch/patch-notes.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"version":"1.0.0.5",
"version":"1.0.0.6",
"notes":[
{
"title" : "New update",
"text" : "- New feature: Stash Highlight - now Mercury highlights where the item is located via a small overlay box on your screen. Check it out!\n\n- IMPORTANT: We are opening the code on github. This should completely clear MercuryTrade from any possible controversy from now on.\n\nWe are making a thread on Reddit with the announcement. Thanks for your support!",
"text" : "FOR THE USERS WHO HAVE ISSUES WITH BUTTONS NOT WORKING:\na) Do not run Path of Exile as administrator. This will most likely fix the problem.\nb) If that doesn't help either, we made another launcher as an alternative way to run the application - please check out our github page.\n\n- Item Name section in the notification panel is now a button. Click to copy item name to clipboard.\n- Better Item Grid clarity.\n- Fixed an issue with \"Restart\" panel appearing beyond the screen.",
"image" : "",
"layout" : "VERTICAL"
}
Expand Down

0 comments on commit 5eb7717

Please sign in to comment.