Browse Source

- remove unnecessary references
- refresh song list now selects index 0 to jump to top
- small code clean up

Stephen Damm 6 years ago
parent
commit
6e63739d38

+ 1 - 3
SongBrowserPlugin/Logger.cs

@@ -1,7 +1,5 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+
 
 namespace SongBrowserPlugin
 {

+ 4 - 0
SongBrowserPlugin/SongBrowser.cs

@@ -305,6 +305,10 @@ namespace SongBrowserPlugin
             ReflectionUtil.SetPrivateField(songTableView, "_levels", newSongList.ToArray());
             TableView tableView = ReflectionUtil.GetPrivateField<TableView>(songTableView, "_tableView");
             tableView.ReloadData();
+
+            songTableView.ClearSelection();
+            _songListViewController.SelectSong(0);
+            _songSelectionMasterView.HandleSongListDidSelectSong(_songListViewController);
             
             //Action showMethod = delegate () { };
             //_songSelectionMasterView.DismissModalViewController(showMethod);            

+ 1 - 16
SongBrowserPlugin/SongBrowserPlugin.csproj

@@ -56,18 +56,9 @@
     <Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
       <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.dll</HintPath>
     </Reference>
-    <Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
-      <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
-    </Reference>
     <Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
       <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
     </Reference>
-    <Reference Include="UnityEngine.ImageConversionModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
-      <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.ImageConversionModule.dll</HintPath>
-    </Reference>
-    <Reference Include="UnityEngine.IMGUIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
-      <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
-    </Reference>
     <Reference Include="UnityEngine.JSONSerializeModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
       <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.JSONSerializeModule.dll</HintPath>
     </Reference>
@@ -83,9 +74,6 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.UIModule.dll</HintPath>
     </Reference>
-    <Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
-      <HintPath>D:\Games\Steam\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
-    </Reference>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Logger.cs" />
@@ -98,10 +86,7 @@
     <Compile Include="UIBuilder.cs" />
   </ItemGroup>
   <ItemGroup>
-    <ProjectReference Include="..\IllusionPlugin\IllusionPlugin.csproj">
-      <Project>{e2848bfb-5432-42f4-8ae0-d2ec0cdf2f71}</Project>
-      <Name>IllusionPlugin</Name>
-    </ProjectReference>
+
   </ItemGroup>
   <ItemGroup>
     <None Include="packages.config" />

+ 0 - 1
SongBrowserPlugin/SongBrowserSettings.cs

@@ -4,7 +4,6 @@ using System.IO;
 using System.Xml.Serialization;
 
 
-
 namespace SongBrowserPlugin
 {
     [Serializable]