forked from FritzAndFriends/StreamDeckToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/FritzAndFriends/StreamDeckTo…
…olkit into dev * 'dev' of https://github.com/FritzAndFriends/StreamDeckToolkit: Adding today's cheers Fixed the reference to the CMD file Fixed symbols in the template Fixed SamplePlugin namespace Fixed broken build Merged b41: Updates to support SDK v4.1 (FritzAndFriends#141) Final Beta 4.1 implementation (FritzAndFriends#140) Updated Template Files for 4.1 Beta 2 (FritzAndFriends#115) Updated to Beta 2 and other fixes (FritzAndFriends#113) Initial Beta 4.1 Code (FritzAndFriends#106)
- Loading branch information
Showing
47 changed files
with
1,080 additions
and
526 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Resources | ||
|
||
This a list of attributions and giving credit to the sources and inspiration for various elements of this project | ||
|
||
## Images | ||
|
||
### Icons | ||
|
||
<img style="background: white;" src="./Templates/StreamDeck.PluginTemplate.Csharp/content/images/[email protected]" /><br /> | ||
[plugin by Galaktionoff from the Noun Project](https://thenounproject.com/search/?q=plugin&i=1692300#) | ||
|
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
79 changes: 0 additions & 79 deletions
79
Templates/StreamDeck.PluginTemplate.Csharp/content/DefaultPluginAction.cs
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
Templates/StreamDeck.PluginTemplate.Csharp/content/_PluginName_Action.cs
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,67 @@ | ||
using StreamDeckLib; | ||
using StreamDeckLib.Messages; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace _StreamDeckPlugin_ | ||
{ | ||
[ActionUuid(Uuid="$(UUID)")] | ||
public class $(PluginName)Action : BaseStreamDeckActionWithSettingsModel<Models.CounterSettingsModel> | ||
{ | ||
// Cheer 342 cpayette 15/2/19 | ||
// Cheer 100 devlead 15/2/19 | ||
// Cheer 200 kevin_downs Jan 11, 2019 | ||
// Cheer 401 cpayette Jan 15, 2019 | ||
// Cheer 2501 themikejolley Jan 15, 2019 | ||
// Cheer 100 wolfgang_blitz Jan 15, 2019 | ||
// Cheer 157 jongalloway Jan 15, 2019 | ||
// Cheer 100 johanb Jan 15, 2019 | ||
// Cheer 400 faniereynders Jan 15, 2019 | ||
// Cheer 100 TomMcQ Jan 15, 2019 | ||
// Cheer 361 Crazy240sx Jan 15, 2019 | ||
// Cheer 600 yarrgh Jan 15, 2019 | ||
// Cheer 1030 kulu83 Jan 15, 2019 | ||
// Cheer 2500 Auth0Bobby Jan 15, 2019 | ||
|
||
public override async Task OnKeyUp(StreamDeckEventPayload args) | ||
{ | ||
SettingsModel.Counter++; | ||
await Manager.SetTitleAsync(args.context, SettingsModel.Counter.ToString()); | ||
|
||
if (SettingsModel.Counter % 10 == 0) | ||
{ | ||
await Manager.ShowAlertAsync(args.context); | ||
} | ||
else if (SettingsModel.Counter % 15 == 0) | ||
{ | ||
await Manager.OpenUrlAsync(args.context, "https://www.bing.com"); | ||
} | ||
else if (SettingsModel.Counter % 3 == 0) | ||
{ | ||
await Manager.ShowOkAsync(args.context); | ||
} | ||
else if (SettingsModel.Counter % 7 == 0) | ||
{ | ||
await Manager.SetImageAsync(args.context, "images/Fritz.png"); | ||
} | ||
|
||
//update settings | ||
await Manager.SetSettingsAsync(args.context, SettingsModel); | ||
} | ||
|
||
public override async Task OnDidReceiveSettings(StreamDeckEventPayload args) | ||
{ | ||
await base.OnDidReceiveSettings(args); | ||
await Manager.SetTitleAsync(args.context, SettingsModel.Counter.ToString()); | ||
} | ||
|
||
public override async Task OnWillAppear(StreamDeckEventPayload args) | ||
{ | ||
await base.OnWillAppear(args); | ||
await Manager.SetTitleAsync(args.context, SettingsModel.Counter.ToString()); | ||
} | ||
|
||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
Templates/StreamDeck.PluginTemplate.Csharp/content/_StreamDeckPlugin_.cmd
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,2 @@ | ||
cd %appdata%\Elgato\StreamDeck\Plugins\$(UUID) | ||
_StreamDeckPlugin_.exe -break %* |
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 |
---|---|---|
|
@@ -65,6 +65,33 @@ | |
<Content Include="images/[email protected]"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="images/Fritz.png"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<!-- Property Inspector Files --> | ||
<ItemGroup> | ||
<Content Include="property_inspector\css\property-inspector.css"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="property_inspector\css\sdpi.css"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="property_inspector\js\property-inspector.js"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="property_inspector\property_inspector.html"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
|
||
</ItemGroup> | ||
|
||
<!-- Build Helper --> | ||
<ItemGroup> | ||
<Content Include="_StreamDeckPlugin_.cmd"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<!-- Include the README.md as part of the project for easy reference --> | ||
|
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
BIN
+675 Bytes
...lates/StreamDeck.PluginTemplate.Csharp/content/images/category/categoryIcon.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
BIN
+1.19 KB
...es/StreamDeck.PluginTemplate.Csharp/content/images/category/[email protected]
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
7 changes: 7 additions & 0 deletions
7
Templates/StreamDeck.PluginTemplate.Csharp/content/models/CounterSettingsModel.cs
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,7 @@ | ||
namespace _StreamDeckPlugin_.Models | ||
{ | ||
public class CounterSettingsModel | ||
{ | ||
public int Counter { get; set; } = 0; | ||
} | ||
} |
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
Oops, something went wrong.