Skip to content

Commit

Permalink
1.0.3.1.0 release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Exslims committed Dec 30, 2017
1 parent 853cacb commit 0ea80af
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.mercury.platform.core;

public class MercuryConstants {
public static final String APP_VERSION = "1.0.3.0.0";
public static final String APP_VERSION = "1.0.3.1.0";
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
Expand Up @@ -29,6 +29,7 @@ public HotKeysSettingsDescriptor getDefault() {
outNDataList.add(new HotKeyPair(HotKeyType.N_TRADE_PLAYER, new HotKeyDescriptor()));
outNDataList.add(new HotKeyPair(HotKeyType.N_LEAVE, new HotKeyDescriptor()));
outNDataList.add(new HotKeyPair(HotKeyType.N_OPEN_CHAT, new HotKeyDescriptor()));
outNDataList.add(new HotKeyPair(HotKeyType.N_WHO_IS, new HotKeyDescriptor()));
outNDataList.add(new HotKeyPair(HotKeyType.N_REPEAT_MESSAGE, new HotKeyDescriptor()));
outNDataList.add(new HotKeyPair(HotKeyType.N_CLOSE_NOTIFICATION, new HotKeyDescriptor()));

Expand Down Expand Up @@ -56,6 +57,13 @@ public void validate() {
if (this.selectedProfile.getHotkeysSettingsDescriptor() == null) {
this.selectedProfile.setHotkeysSettingsDescriptor(this.getDefault());
}
if (this.selectedProfile.getHotkeysSettingsDescriptor()
.getOutNHotKeysList().stream()
.filter(it -> it.getType().equals(HotKeyType.N_WHO_IS))
.findAny().orElse(null) == null) {
this.selectedProfile.getHotkeysSettingsDescriptor()
.getOutNHotKeysList().add(new HotKeyPair(HotKeyType.N_WHO_IS, new HotKeyDescriptor()));
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ public String getTooltip() {
return null;
}
},
N_WHO_IS {
@Override
public String getIconPath() {
return "app/who-is.png";
}

@Override
public String getTooltip() {
return "Who is?";
}
},
//scanner
N_QUICK_RESPONSE {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,23 @@ protected JPanel getHeader() {
});
JButton openChatButton = componentsFactory.getIconButton("app/openChat.png", 15, AppThemeColor.MSG_HEADER, TooltipConstants.OPEN_CHAT);
openChatButton.addActionListener(e -> controller.performOpenChat());
JButton whoIsButton = componentsFactory.getIconButton("app/who-is.png", 15, AppThemeColor.MSG_HEADER, TooltipConstants.WHO_IS);
whoIsButton.addActionListener(e -> controller.performWhoIs());
JButton hideButton = componentsFactory.getIconButton("app/close.png", 15, AppThemeColor.MSG_HEADER, TooltipConstants.HIDE_PANEL);
hideButton.addActionListener(action -> {
this.controller.performHide();
});
interactionPanel.add(visiteHideout);
interactionPanel.add(tradeButton);
interactionPanel.add(leaveButton);
interactionPanel.add(whoIsButton);
interactionPanel.add(openChatButton);
interactionPanel.add(hideButton);
this.interactButtonMap.clear();
this.interactButtonMap.put(HotKeyType.N_VISITE_HIDEOUT, visiteHideout);
this.interactButtonMap.put(HotKeyType.N_TRADE_PLAYER, tradeButton);
this.interactButtonMap.put(HotKeyType.N_LEAVE, leaveButton);
this.interactButtonMap.put(HotKeyType.N_WHO_IS, whoIsButton);
this.interactButtonMap.put(HotKeyType.N_OPEN_CHAT, openChatButton);
this.interactButtonMap.put(HotKeyType.N_CLOSE_NOTIFICATION, hideButton);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public void visitHideout() {
MercuryStoreCore.chatCommandSubject.onNext("/hideout " + notificationDescriptor.getWhisperNickname());
}

@Override
public void performWhoIs() {
MercuryStoreCore.chatCommandSubject.onNext("/whois " + notificationDescriptor.getWhisperNickname());
}

@Override
public void performLeave(String nickName) {
MercuryStoreCore.chatCommandSubject.onNext("/kick " + nickName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
public interface OutgoingPanelController extends NotificationController {
void visitHideout();

void performWhoIs();

void performLeave(String nickName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public void visitHideout() {

}

@Override
public void performWhoIs() {

}

@Override
public void performLeave(String nickName) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ public void mouseWheelMoved(MouseWheelEvent e) {
private List<DonationPair> getDonations() {
List<DonationPair> donations = new ArrayList<>();
donations.add(new DonationPair("222Craft", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("Xagulz", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("Taw", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("AMusel", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("Blightsand", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("Mattc3303", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("StubenZocker", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("SirKultan", AppThemeColor.TEXT_DEFAULT));
return donations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ private JPanel getOperationsButtons() {
JButton openTests = this.getOperationButton("Open tests", "app/open-tests.png");
openTests.addActionListener(action -> {
FramesManager.INSTANCE.hideFrame(SettingsFrame.class);
FramesManager.INSTANCE.showFrame(TestCasesFrame.class);
// FramesManager.INSTANCE.preShowFrame(TestCasesFrame.class);
// FramesManager.INSTANCE.showFrame(TestCasesFrame.class);
FramesManager.INSTANCE.preShowFrame(TestCasesFrame.class);
});
root.add(this.componentsFactory.wrapToSlide(openTutorial));
root.add(this.componentsFactory.wrapToSlide(checkUpdates));
Expand All @@ -178,7 +178,6 @@ public void mouseClicked(MouseEvent e) {
}
}
});
// root.add(patchNotes);
return root;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class TooltipConstants {
public static final String TRADE = "Offer Trade";
public static final String EXPAND_COLLAPSE = "Expand / collapse";
public static final String OPEN_CHAT = "Message this player";
public static final String WHO_IS = "Who is?";
public static final String SWITCH_CHAT = "Show chat history";
public static final String VISIT_HO = "Visit player's hideout";
public static final String LEAVE = "Leave from party";
Expand Down
Binary file added app-ui/src/main/resources/app/sandwich.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app-ui/src/main/resources/app/who-is.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions app-ui/src/main/resources/notes/patch/patch-notes.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"version": "1.0.3.0.0",
"version": "1.0.3.1.0",
"notes":[
{
"title": "Update",
"text": "- Fixed a bug when the amount of currency is not displayed correctly in the notification panel.\n- Fixed a bug when notification panel sometimes did not work.\n- Whisper helper now have own hotkey button.\n- And minor backend improvements.\n\nThank you for staying with us.",
"text": "- Added /whois button to outgoing notification panel.\n- Fixed a bug when sometimes notification panel won't show orb icons.\n- Many backend improvements for rework \"History\" feature in next version.\n- Support tab updated.\n\nHappy new year! If you love MercuryTrade so much it has become your favourite application to play the game - show your appreciation by supporting it! Thanks!",
"image" : "",
"layout" : "VERTICAL"
}
]}
]
}

0 comments on commit 0ea80af

Please sign in to comment.