Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-miasik committed Apr 22, 2022
2 parents 9bf4638 + 63ec5d4 commit c099e23
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 21 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
</p>
<p align="center">Quickly position the in-game camera to the bottom rune.</p>

# Downloads
- [Elgato Plugin Store (Recommended)](https://apps.elgato.com/plugins/com.adrian-miasik.sdpdota2)
- [Direct Download](StreamDeckPluginsDota2/distribute/com.adrian-miasik.sdpdota2.streamDeckPlugin)

# Installation
1. Install `com.adrian-miasik.sdpdota2.streamDeckPlugin` to your Stream Deck.
- Make sure to have the Elgato Stream Deck software installed.
Expand Down Expand Up @@ -119,11 +123,6 @@
- Fourth Death
- Roshan is going to drop: `Aegis of the Immortal` + `Cheese` + `Aghanims Blessing` + `Refresher Shard`

# Downloads
**IMPORTANT NOTE: Links coming soon!**
- Elgato Plugin Store (Recommended)
- [Direct Download](StreamDeckPluginsDota2/distribute/com.adrian-miasik.sdpdota2.streamDeckPlugin)

# Author Notes
- If you're looking to build this yourself, make sure to download [.NET Framework 4.7.2 Developer Pack](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net472) and make sure to restore/update your NuGet packages as necessary.
- Distribution Pipeline:
Expand Down
14 changes: 7 additions & 7 deletions StreamDeckPluginsDota2/RoshanTimerAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void ApplicationTimerTick()
m_roshanTimer = null;

// Reset action image to Roshan
Connection.SetImageAsync(Image.FromFile("Images\\roshan-timer\\[email protected]"));
Connection.SetImageAsync(Image.FromFile("images\\roshan-timer\\[email protected]"));
Connection.SetTitleAsync(String.Empty);

m_isInitialized = false;
Expand All @@ -192,7 +192,7 @@ private void CreateRoshanTimer()

m_isRoshanTimerPaused = false;
Connection.SetTitleAsync(GetFormattedString(m_settings.TotalSeconds));
Connection.SetImageAsync(Image.FromFile("Images\\roshan-timer\\states\\dead0.png"));
Connection.SetImageAsync(Image.FromFile("images\\roshan-timer\\states\\dead0.png"));
}

private void ResumeRoshanTimer()
Expand Down Expand Up @@ -237,22 +237,22 @@ private void CalculateRoshanContext(int deathCount = 0, int totalSeconds = 0)
{
int totalMinutes = totalSeconds / 60;

Image defaultContext = Image.FromFile("Images\\roshan-timer\\states\\dead3.png");
Image defaultContext = Image.FromFile("images\\roshan-timer\\states\\dead3.png");

if (totalMinutes < 8)
{
Connection.SetImageAsync(deathCount <= 3
? Image.FromFile("Images\\roshan-timer\\states\\dead" + deathCount + ".png") : defaultContext);
? Image.FromFile("images\\roshan-timer\\states\\dead" + deathCount + ".png") : defaultContext);
}
else if (totalMinutes < 11)
{
Connection.SetImageAsync(deathCount <= 3
? Image.FromFile("Images\\roshan-timer\\states\\maybe" + deathCount + ".png") : defaultContext);
? Image.FromFile("images\\roshan-timer\\states\\maybe" + deathCount + ".png") : defaultContext);
}
else
{
Connection.SetImageAsync(deathCount <= 3
? Image.FromFile("Images\\roshan-timer\\states\\alive" + deathCount + ".png") : defaultContext);
? Image.FromFile("images\\roshan-timer\\states\\alive" + deathCount + ".png") : defaultContext);
}

Connection.SetTitleAsync(GetFormattedString(m_settings.TotalSeconds));
Expand Down Expand Up @@ -280,7 +280,7 @@ public override void ReceivedGlobalSettings(ReceivedGlobalSettingsPayload payloa
if (!m_isInitialized)
{
// Reset action image to Roshan
Connection.SetImageAsync(Image.FromFile("Images\\roshan-timer\\[email protected]"));
Connection.SetImageAsync(Image.FromFile("images\\roshan-timer\\[email protected]"));
Connection.SetTitleAsync(String.Empty);
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified StreamDeckPluginsDota2/images/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 modified StreamDeckPluginsDota2/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions StreamDeckPluginsDota2/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"Actions": [
{
"Icon": "images/icon",
"Name": "Dota 2 - Roshan Timer",
"Name": "Roshan Timer",
"States": [
{
"Image": "Images\\roshan-timer\\pluginAction",
"Image": "images\\roshan-timer\\pluginAction",
"TitleAlignment": "bottom",
"FontSize": "12"
}
Expand All @@ -17,10 +17,10 @@
},
{
"Icon": "images/icon",
"Name": "Dota 2 - Show Top Rune",
"Name": "Show Top Rune",
"States": [
{
"Image": "Images\\show-top-rune\\pluginAction",
"Image": "images\\show-top-rune\\pluginAction",
"TitleAlignment": "bottom",
"FontSize": "12"
}
Expand All @@ -31,10 +31,10 @@
},
{
"Icon": "images/icon",
"Name": "Dota 2 - Show Bot Rune",
"Name": "Show Bot Rune",
"States": [
{
"Image": "Images\\show-bot-rune\\pluginAction",
"Image": "images\\show-bot-rune\\pluginAction",
"TitleAlignment": "bottom",
"FontSize": "12"
}
Expand All @@ -47,13 +47,13 @@
"Name": "Stream Deck Plugins - Dota 2",
"Description": "A suite of open source Stream Deck plugins created for Valve's MOBA: Dota 2",
"Author": "Adrian Miasik",
"Icon": "Images/pluginIcon",
"Icon": "images/pluginIcon",
"URL": "https://www.adrian-miasik.com",
"CodePath": "com.adrian-miasik.sdpdota2",
"Category": "Adrian Miasik",
"Category": "Dota 2",
"CategoryIcon": "images/categoryIcon",
"Disabled": false,
"Version": "1.0.0",
"Version": "1.0.1",
"SDKVersion": 2,
"Software": {
"MinimumVersion": "4.1"
Expand Down

0 comments on commit c099e23

Please sign in to comment.