Skip to content

Commit 4b06939

Browse files
committed
update dependencies & bump version
1 parent d9d235d commit 4b06939

6 files changed

Lines changed: 11 additions & 27 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
namespace: CutiePatooties
5050
name: BetterMediaControls
5151
version: ${{ github.ref_name }}
52-
description: Better media controls with shuffle, playlists, and custom audio.
52+
description: "A simple plugin for On-Together: Virtual Co-Working that adds custom songs and shuffle functionality to the media controls."
5353
token: ${{ secrets.THUNDERSTORE_TOKEN }}
5454
website: https://github.com/${{ github.repository }}
5555
categories: |

BetterMediaControls.csproj

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<TargetFramework>netstandard2.1</TargetFramework>
54
<AssemblyName>BetterMediaControls</AssemblyName>
65
<Product>Better Media Controls</Product>
7-
<Version>1.0.0</Version>
6+
<Version>1.1.0</Version>
87
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
98
<LangVersion>latest</LangVersion>
109
<RestoreAdditionalProjectSources>
@@ -19,17 +18,9 @@
1918
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
2019
<PackageReference Include="BepInEx.Core" Version="5.*" />
2120
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" />
21+
<PackageReference Include="OnTogether.GameLibs" Version="1.0.0" />
2222
<PackageReference Include="UnityEngine.Modules" Version="6000.0.61" IncludeAssets="compile" />
2323
<PackageReference Include="Newtonsoft.Json" Version="13.*" />
24-
<Reference Include="Assembly-CSharp">
25-
<HintPath>lib\Assembly-CSharp.dll</HintPath>
26-
<Private>false</Private>
27-
</Reference>
28-
29-
<Reference Include="UnityEngine.UI">
30-
<HintPath>lib\UnityEngine.UI.dll</HintPath>
31-
<Private>false</Private>
32-
</Reference>
3324
</ItemGroup>
3425

3526
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">

Plugin.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ public class Plugin : BaseUnityPlugin
1616

1717
// ReSharper disable once InconsistentNaming
1818
private const string PluginGUID = "com.patty.bettermediacontrols";
19-
private const string PluginName = "Better Media Controls";
20-
private const string PluginVersion = "0.1.0";
19+
private const string PluginName = "BetterMediaControls";
20+
private const string PluginVersion = "1.1.0";
21+
private const string PluginAuthor = "CutiePatooties"; // as seen on thunderstore
2122

2223
private readonly Harmony _harmony = new Harmony(PluginGUID);
2324

@@ -61,6 +62,7 @@ private void Awake()
6162

6263
var iconsDir = Path.Combine(
6364
Paths.PluginPath,
65+
$"{PluginAuthor}-{PluginName}",
6466
"BetterMediaControls",
6567
"icons"
6668
);
@@ -87,7 +89,7 @@ public void ToggleShuffle()
8789
_configShuffleEnabled.Value = !_configShuffleEnabled.Value;
8890
if (_configShuffleEnabled.Value)
8991
{
90-
BetterMediaControls.patches.ShufflePatch.ResetShuffle();
92+
patches.ShufflePatch.ResetShuffle();
9193
}
9294
Log.LogInfo($"Shuffle {(IsShuffleEnabled ? "enabled" : "disabled")}");
9395
}
@@ -102,6 +104,7 @@ public string GetMusicDirectory()
102104

103105
return Path.Combine(
104106
Paths.PluginPath,
107+
$"{PluginAuthor}-{PluginName}",
105108
"BetterMediaControls",
106109
value
107110
);

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,4 @@ The available configuration options are:
4646
- `MusicDirectory`: The directory where custom music files are stored (default: `music` [starting from plugin directory]).
4747
- `EnableShuffle`: Enable or disable shuffle functionality (default: true).
4848

49-
- `EnableVanillaMusic`: Enable or disable the default music tracks (default: true).
50-
51-
52-
## Contributing
53-
Copy `Assembly-CSharp.dll` and `UnityEngine.UI.dll` from the game's installation directory and put them in `lib/`
54-
55-
Example Commands (change based on your steam library location):
56-
```bash
57-
cp "C:\Program Files (x86)\Steam\steamapps\common\On-Together Virtual Co-Working\OnTogether_Data\Managed\Assembly-CSharp.dll" lib/
58-
cp "C:\Program Files (x86)\Steam\steamapps\common\On-Together Virtual Co-Working\OnTogether_Data\Managed\UnityEngine.UI.dll" lib/
59-
```
49+
- `EnableVanillaMusic`: Enable or disable the default music tracks (default: true).

lib/.gitkeep

Whitespace-only changes.

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BetterMediaControls",
3-
"version_number": "1.0.0",
3+
"version_number": "1.1.0",
44
"website_url": "https://github.com/patttterson/BetterMediaControls",
55
"description": "A simple plugin for On-Together: Virtual Co-Working that adds custom songs and shuffle functionality to the media controls.",
66
"dependencies": []

0 commit comments

Comments
 (0)