Skip to content

Commit

Permalink
1.0.3.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Exslims committed Jun 12, 2018
1 parent 6bf29e5 commit 8295d5c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 9 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.2.0";
public static final String APP_VERSION = "1.0.3.3.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 @@ -24,7 +24,7 @@ public TradeIncMessagesInterceptor() {
this.clients.add(new ArabicInLocalizationMatcher());
this.clients.add(new BZIncLocalizationMatcher());
this.clients.add(new FrenchIncLocalizationMatcher());
this.clients.add(new GermanIncLocalizationMatcher();
this.clients.add(new GermanIncLocalizationMatcher());
}

@Override
Expand Down Expand Up @@ -127,7 +127,8 @@ public String trimString(String src) {
return StringUtils.substringAfter(src, "@De");
}
}
private class GermanIncLocalizationMatcher extends LocalizationMatcher {

private class GermanIncLocalizationMatcher extends LocalizationMatcher {
@Override
public boolean isSuitableFor(String message) {
return message.contains("@Von") && super.isSuitableFor(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class HotKeyConfigurationService extends BaseConfigurationService<HotKeysSettingsDescriptor> implements PlainConfigurationService<HotKeysSettingsDescriptor> {
public HotKeyConfigurationService(ProfileDescriptor selectedProfile) {
Expand Down Expand Up @@ -57,17 +58,30 @@ public void validate() {
if (this.selectedProfile.getHotkeysSettingsDescriptor() == null) {
this.selectedProfile.setHotkeysSettingsDescriptor(this.getDefault());
}

this.selectedProfile.getHotkeysSettingsDescriptor()
.setOutNHotKeysList(this.removeNullTypesFrom(
this.selectedProfile.getHotkeysSettingsDescriptor().getOutNHotKeysList()));

this.selectedProfile.getHotkeysSettingsDescriptor()
.setIncNHotKeysList(this.removeNullTypesFrom(
this.selectedProfile.getHotkeysSettingsDescriptor().getIncNHotKeysList()));

this.selectedProfile.getHotkeysSettingsDescriptor()
.setScannerNHotKeysList(this.removeNullTypesFrom(
this.selectedProfile.getHotkeysSettingsDescriptor().getScannerNHotKeysList()));

if (this.selectedProfile.getHotkeysSettingsDescriptor()
.getOutNHotKeysList().stream()
.filter(it -> it.getType().equals(HotKeyType.N_WHO_IS))
.filter(it -> HotKeyType.N_WHO_IS.equals(it.getType()))
.findAny().orElse(null) == null) {
this.selectedProfile.getHotkeysSettingsDescriptor()
.getOutNHotKeysList().add(new HotKeyPair(HotKeyType.N_WHO_IS, new HotKeyDescriptor()));
}

if (this.selectedProfile.getHotkeysSettingsDescriptor()
.getScannerNHotKeysList().stream()
.filter(it -> it.getType().equals(HotKeyType.N_WHO_IS))
.filter(it -> HotKeyType.N_WHO_IS.equals(it.getType()))
.findAny().orElse(null) == null) {
this.selectedProfile.getHotkeysSettingsDescriptor()
.getScannerNHotKeysList().add(new HotKeyPair(HotKeyType.N_WHO_IS, new HotKeyDescriptor()));
Expand All @@ -83,4 +97,8 @@ public HotKeysSettingsDescriptor get() {
public void set(HotKeysSettingsDescriptor descriptor) {
this.selectedProfile.setHotkeysSettingsDescriptor(descriptor);
}

private List<HotKeyPair> removeNullTypesFrom(List<HotKeyPair> list) {
return list.stream().filter(it -> it.getType() != null).collect(Collectors.toList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public void mouseWheelMoved(MouseWheelEvent e) {

private List<DonationPair> getDonations() {
List<DonationPair> donations = new ArrayList<>();
donations.add(new DonationPair("LiftingNerdBro", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("Sklifan", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("222Craft", AppThemeColor.TEXT_DEFAULT));
donations.add(new DonationPair("Xagulz", AppThemeColor.TEXT_DEFAULT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private JPanel getBottomPanel() {
donateDescriptor.setSize(new Dimension(100, 20));
donateDescriptor.setType(AdrComponentType.PROGRESS_BAR);
donateDescriptor.setCustomTextEnable(true);
donateDescriptor.setCustomText("21$");
donateDescriptor.setCustomText("31$");
donateDescriptor.setFontSize(21);
donateDescriptor.setLowValueTextColor(AppThemeColor.TEXT_DEFAULT);
donateDescriptor.setMediumValueTextColor(AppThemeColor.TEXT_DEFAULT);
Expand All @@ -93,7 +93,7 @@ private JPanel getBottomPanel() {
donateDescriptor.setBackgroundColor(AppThemeColor.FRAME);
donateDescriptor.setForegroundColor(AppThemeColor.BUTTON);
MercuryTracker tracker = new MercuryTracker(donateDescriptor);
tracker.setValue(22 * 1000);
tracker.setValue(32 * 1000);
tracker.setPreferredSize(donateDescriptor.getSize());
root.add(this.componentsFactory.getTextLabel("Monthly donations:", FontStyle.BOLD, 16), BorderLayout.LINE_START);
root.add(this.componentsFactory.wrapToSlide(tracker, AppThemeColor.ADR_FOOTER_BG, 2, 2, 2, 1), BorderLayout.CENTER);
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.3.2.0",
"version": "1.0.3.3.0",
"notes":[
{
"title": "Update",
"text": "- Added /whois button to scanner notification panel. \n- Fixed a bug when chat scanner is not ignore nickname from chat.\n- Now notification panel works with french POE client.\n- Support tab updated.\n\nDon't forget to [support ](https://www.paypal.me/mercurytrade) the app, we really appreciate it! Thanks!",
"text": "Hi, sorry for the long absence.\n\n- Fix critical bug when sometimes MT hangs on boot.\n- Fixed a bug when notification panel doesn't show up after altabing.\n- Now notification panel works with german POE client.\n- Support tab updated.\n\nDon't forget to support the app, we really appreciate it! Thanks!",
"image" : "",
"layout" : "VERTICAL"
}
Expand Down

0 comments on commit 8295d5c

Please sign in to comment.