1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-11 11:34:07 +02:00

Add a WIP sound notification hook

This commit is contained in:
chylex 2016-04-26 00:43:44 +02:00
parent 1c3a7b6ce7
commit 1f6fc491ef
3 changed files with 14 additions and 1 deletions

View File

@ -201,6 +201,10 @@ public void OnTweetPopup(TweetNotification tweet){
notification.ShowNotification(tweet);
}
public void OnTweetSound(){
}
public void BeginUpdateProcess(string versionTag, string downloadUrl){
Hide();

View File

@ -65,7 +65,9 @@ public void OnTweetPopup(string tweetHtml, int tweetCharacters){
}
public void OnTweetSound(){
Log("sound"); // TODO
form.InvokeSafe(() => {
form.OnTweetSound();
});
}
public void OnUpdateAccepted(string versionTag, string downloadUrl){

View File

@ -235,6 +235,13 @@
$TD.setLastRightClickedLink($(this).attr("data-full-url") || "");
});
//
// Block: Hook into the notification sound effect.
//
document.getElementById("update-sound").play = function(){
$TD.onTweetSound();
};
//
// Block: Hook into mp4 video element clicking
//