forked from Exslims/MercuryTrade
-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from Morph21/issue-29-_FEATURE_REQUEST_Notific…
…ation_custom_sound FIX #29 Issue 29 feature request notification custom sound
- Loading branch information
Showing
16 changed files
with
116 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 24 additions & 41 deletions
65
app-core/src/main/java/com/mercury/platform/shared/hotkey/ClipboardListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 8 additions & 12 deletions
20
app-core/src/main/java/com/mercury/platform/shared/wh/WhisperHelperHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
package com.mercury.platform.shared.wh; | ||
|
||
import com.mercury.platform.shared.config.Configuration; | ||
import com.mercury.platform.shared.config.descriptor.NotificationSettingsDescriptor; | ||
import com.mercury.platform.shared.store.MercuryStoreCore; | ||
|
||
import javax.swing.*; | ||
|
||
public class WhisperHelperHandler { | ||
public WhisperHelperHandler() { | ||
MercuryStoreCore.hotKeyReleaseSubject.subscribe(hotKeyDescriptor -> { | ||
NotificationSettingsDescriptor config = Configuration.get().notificationConfiguration().get(); | ||
if (config.isWhisperHelperEnable() && config.getWhisperHelperHotKey().equals(hotKeyDescriptor)) { | ||
Timer timer = new Timer(500, action -> { | ||
MercuryStoreCore.tradeWhisperSubject.onNext(true); | ||
}); | ||
timer.setRepeats(false); | ||
timer.start(); | ||
} | ||
// NotificationSettingsDescriptor config = Configuration.get().notificationConfiguration().get(); | ||
// if (config.isWhisperHelperEnable() && config.getWhisperHelperHotKey().equals(hotKeyDescriptor)) { | ||
// Timer timer = new Timer(500, action -> { | ||
// MercuryStoreCore.tradeWhisperSubject.onNext(true); | ||
// }); | ||
// timer.setRepeats(false); | ||
// timer.start(); | ||
// } | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Here you can put your own sound files to change existing ones. | ||
|
||
Simply put a sound file inside sounds folder and name it like the one which is used in MT. | ||
|
||
|
||
The list of files which MT uses has names: | ||
button-pressed.wav | ||
chat-filter.wav | ||
icq-message.wav | ||
notification.wav | ||
patch_tone.wav |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.