Skip to content

Commit 0ea80af

Browse files
committed
1.0.3.1.0 release commit
1 parent 853cacb commit 0ea80af

File tree

13 files changed

+46
-7
lines changed

13 files changed

+46
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.mercury.platform.core;
22

33
public class MercuryConstants {
4-
public static final String APP_VERSION = "1.0.3.0.0";
4+
public static final String APP_VERSION = "1.0.3.1.0";
55
public static final String SERVER_HOST = "exslims.ddns.net";
66
public static final int PORT = 5555;
77
}

app-core/src/main/java/com/mercury/platform/shared/config/configration/impl/HotKeyConfigurationService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public HotKeysSettingsDescriptor getDefault() {
2929
outNDataList.add(new HotKeyPair(HotKeyType.N_TRADE_PLAYER, new HotKeyDescriptor()));
3030
outNDataList.add(new HotKeyPair(HotKeyType.N_LEAVE, new HotKeyDescriptor()));
3131
outNDataList.add(new HotKeyPair(HotKeyType.N_OPEN_CHAT, new HotKeyDescriptor()));
32+
outNDataList.add(new HotKeyPair(HotKeyType.N_WHO_IS, new HotKeyDescriptor()));
3233
outNDataList.add(new HotKeyPair(HotKeyType.N_REPEAT_MESSAGE, new HotKeyDescriptor()));
3334
outNDataList.add(new HotKeyPair(HotKeyType.N_CLOSE_NOTIFICATION, new HotKeyDescriptor()));
3435

@@ -56,6 +57,13 @@ public void validate() {
5657
if (this.selectedProfile.getHotkeysSettingsDescriptor() == null) {
5758
this.selectedProfile.setHotkeysSettingsDescriptor(this.getDefault());
5859
}
60+
if (this.selectedProfile.getHotkeysSettingsDescriptor()
61+
.getOutNHotKeysList().stream()
62+
.filter(it -> it.getType().equals(HotKeyType.N_WHO_IS))
63+
.findAny().orElse(null) == null) {
64+
this.selectedProfile.getHotkeysSettingsDescriptor()
65+
.getOutNHotKeysList().add(new HotKeyPair(HotKeyType.N_WHO_IS, new HotKeyDescriptor()));
66+
}
5967
}
6068

6169
@Override

app-core/src/main/java/com/mercury/platform/shared/config/descriptor/HotKeyType.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,17 @@ public String getTooltip() {
129129
return null;
130130
}
131131
},
132+
N_WHO_IS {
133+
@Override
134+
public String getIconPath() {
135+
return "app/who-is.png";
136+
}
137+
138+
@Override
139+
public String getTooltip() {
140+
return "Who is?";
141+
}
142+
},
132143
//scanner
133144
N_QUICK_RESPONSE {
134145
@Override

app-ui/src/main/java/com/mercury/platform/ui/components/panel/notification/TradeOutNotificationPanel.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,23 @@ protected JPanel getHeader() {
4949
});
5050
JButton openChatButton = componentsFactory.getIconButton("app/openChat.png", 15, AppThemeColor.MSG_HEADER, TooltipConstants.OPEN_CHAT);
5151
openChatButton.addActionListener(e -> controller.performOpenChat());
52+
JButton whoIsButton = componentsFactory.getIconButton("app/who-is.png", 15, AppThemeColor.MSG_HEADER, TooltipConstants.WHO_IS);
53+
whoIsButton.addActionListener(e -> controller.performWhoIs());
5254
JButton hideButton = componentsFactory.getIconButton("app/close.png", 15, AppThemeColor.MSG_HEADER, TooltipConstants.HIDE_PANEL);
5355
hideButton.addActionListener(action -> {
5456
this.controller.performHide();
5557
});
5658
interactionPanel.add(visiteHideout);
5759
interactionPanel.add(tradeButton);
5860
interactionPanel.add(leaveButton);
61+
interactionPanel.add(whoIsButton);
5962
interactionPanel.add(openChatButton);
6063
interactionPanel.add(hideButton);
6164
this.interactButtonMap.clear();
6265
this.interactButtonMap.put(HotKeyType.N_VISITE_HIDEOUT, visiteHideout);
6366
this.interactButtonMap.put(HotKeyType.N_TRADE_PLAYER, tradeButton);
6467
this.interactButtonMap.put(HotKeyType.N_LEAVE, leaveButton);
68+
this.interactButtonMap.put(HotKeyType.N_WHO_IS, whoIsButton);
6569
this.interactButtonMap.put(HotKeyType.N_OPEN_CHAT, openChatButton);
6670
this.interactButtonMap.put(HotKeyType.N_CLOSE_NOTIFICATION, hideButton);
6771

app-ui/src/main/java/com/mercury/platform/ui/components/panel/notification/controller/NotificationOutgoingController.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public void visitHideout() {
1818
MercuryStoreCore.chatCommandSubject.onNext("/hideout " + notificationDescriptor.getWhisperNickname());
1919
}
2020

21+
@Override
22+
public void performWhoIs() {
23+
MercuryStoreCore.chatCommandSubject.onNext("/whois " + notificationDescriptor.getWhisperNickname());
24+
}
25+
2126
@Override
2227
public void performLeave(String nickName) {
2328
MercuryStoreCore.chatCommandSubject.onNext("/kick " + nickName);

app-ui/src/main/java/com/mercury/platform/ui/components/panel/notification/controller/OutgoingPanelController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
public interface OutgoingPanelController extends NotificationController {
55
void visitHideout();
66

7+
void performWhoIs();
8+
79
void performLeave(String nickName);
810
}

app-ui/src/main/java/com/mercury/platform/ui/components/panel/notification/controller/stub/OutStubController.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public void visitHideout() {
3131

3232
}
3333

34+
@Override
35+
public void performWhoIs() {
36+
37+
}
38+
3439
@Override
3540
public void performLeave(String nickName) {
3641

app-ui/src/main/java/com/mercury/platform/ui/components/panel/settings/page/SupportPagePanel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ public void mouseWheelMoved(MouseWheelEvent e) {
106106
private List<DonationPair> getDonations() {
107107
List<DonationPair> donations = new ArrayList<>();
108108
donations.add(new DonationPair("222Craft", AppThemeColor.TEXT_DEFAULT));
109+
donations.add(new DonationPair("Xagulz", AppThemeColor.TEXT_DEFAULT));
109110
donations.add(new DonationPair("Taw", AppThemeColor.TEXT_DEFAULT));
111+
donations.add(new DonationPair("AMusel", AppThemeColor.TEXT_DEFAULT));
110112
donations.add(new DonationPair("Blightsand", AppThemeColor.TEXT_DEFAULT));
113+
donations.add(new DonationPair("Mattc3303", AppThemeColor.TEXT_DEFAULT));
111114
donations.add(new DonationPair("StubenZocker", AppThemeColor.TEXT_DEFAULT));
112115
donations.add(new DonationPair("SirKultan", AppThemeColor.TEXT_DEFAULT));
113116
return donations;

app-ui/src/main/java/com/mercury/platform/ui/frame/titled/SettingsFrame.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ private JPanel getOperationsButtons() {
156156
JButton openTests = this.getOperationButton("Open tests", "app/open-tests.png");
157157
openTests.addActionListener(action -> {
158158
FramesManager.INSTANCE.hideFrame(SettingsFrame.class);
159-
FramesManager.INSTANCE.showFrame(TestCasesFrame.class);
160-
// FramesManager.INSTANCE.preShowFrame(TestCasesFrame.class);
159+
// FramesManager.INSTANCE.showFrame(TestCasesFrame.class);
160+
FramesManager.INSTANCE.preShowFrame(TestCasesFrame.class);
161161
});
162162
root.add(this.componentsFactory.wrapToSlide(openTutorial));
163163
root.add(this.componentsFactory.wrapToSlide(checkUpdates));
@@ -178,7 +178,6 @@ public void mouseClicked(MouseEvent e) {
178178
}
179179
}
180180
});
181-
// root.add(patchNotes);
182181
return root;
183182
}
184183

app-ui/src/main/java/com/mercury/platform/ui/misc/TooltipConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class TooltipConstants {
3131
public static final String TRADE = "Offer Trade";
3232
public static final String EXPAND_COLLAPSE = "Expand / collapse";
3333
public static final String OPEN_CHAT = "Message this player";
34+
public static final String WHO_IS = "Who is?";
3435
public static final String SWITCH_CHAT = "Show chat history";
3536
public static final String VISIT_HO = "Visit player's hideout";
3637
public static final String LEAVE = "Leave from party";

0 commit comments

Comments
 (0)