|
@@ -10,15 +10,17 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
{
|
|
{
|
|
public partial class MultipleMaids
|
|
public partial class MultipleMaids
|
|
{
|
|
{
|
|
- private static readonly byte[] pngEnd = Encoding.ASCII.GetBytes("IEND");
|
|
|
|
|
|
+ internal static readonly byte[] pngEnd = Encoding.ASCII.GetBytes("IEND");
|
|
internal static readonly int[] border = { -1, 0, 0, 0, 0 };
|
|
internal static readonly int[] border = { -1, 0, 0, 0, 0 };
|
|
|
|
+ internal static readonly string baseDirectoryName = "< Base Directory >";
|
|
|
|
+ internal readonly string saveScenePath = Path.Combine(Path.GetFullPath(".\\"), "Mod\\MultipleMaidsSave");
|
|
private static string sceneData;
|
|
private static string sceneData;
|
|
- private const string baseDirectoryName = "< Base Directory >";
|
|
|
|
- private string saveScenePath = Path.Combine(Path.GetFullPath(".\\"), "Mod\\MultipleMaidsSave");
|
|
|
|
- private List<SavePng> saveScenes = new List<SavePng>(50);
|
|
|
|
|
|
+ private static List<SavePng> saveScenes = new List<SavePng>(50);
|
|
private GUIStyle selectedButtonStyle;
|
|
private GUIStyle selectedButtonStyle;
|
|
|
|
+ private GUIContent infoString;
|
|
private string[] directoryList;
|
|
private string[] directoryList;
|
|
private Texture2D frame;
|
|
private Texture2D frame;
|
|
|
|
+ private Texture2D infoHighlight;
|
|
private Rect saveManagerRect;
|
|
private Rect saveManagerRect;
|
|
private Rect saveModalRect;
|
|
private Rect saveModalRect;
|
|
private Rect resizeManagerRect;
|
|
private Rect resizeManagerRect;
|
|
@@ -41,6 +43,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
public void InitializeSaveManager()
|
|
public void InitializeSaveManager()
|
|
{
|
|
{
|
|
frame = MakeTex(2, 2, Color.white);
|
|
frame = MakeTex(2, 2, Color.white);
|
|
|
|
+ infoHighlight = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.8f));
|
|
|
|
|
|
if (!Directory.Exists(saveScenePath))
|
|
if (!Directory.Exists(saveScenePath))
|
|
{
|
|
{
|
|
@@ -52,17 +55,17 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
selectedButtonStyle.normal.textColor = Color.white;
|
|
selectedButtonStyle.normal.textColor = Color.white;
|
|
|
|
|
|
GetSaveDirectories();
|
|
GetSaveDirectories();
|
|
- InitializeSaveList();
|
|
|
|
|
|
+ GetSaveScenes();
|
|
saveManagerInitialize = true;
|
|
saveManagerInitialize = true;
|
|
}
|
|
}
|
|
private void RefreshSaveManager()
|
|
private void RefreshSaveManager()
|
|
{
|
|
{
|
|
SwitchDirectory(currentDirectory);
|
|
SwitchDirectory(currentDirectory);
|
|
GetSaveDirectories();
|
|
GetSaveDirectories();
|
|
- InitializeSaveList();
|
|
|
|
|
|
+ GetSaveScenes();
|
|
}
|
|
}
|
|
|
|
|
|
- private void InitializeSaveList()
|
|
|
|
|
|
+ private void GetSaveScenes()
|
|
{
|
|
{
|
|
saveScenes.Clear();
|
|
saveScenes.Clear();
|
|
|
|
|
|
@@ -117,7 +120,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
|
|
|
currentDirectory = target;
|
|
currentDirectory = target;
|
|
}
|
|
}
|
|
- InitializeSaveList();
|
|
|
|
|
|
+ GetSaveScenes();
|
|
}
|
|
}
|
|
|
|
|
|
private void LoadScene()
|
|
private void LoadScene()
|
|
@@ -285,7 +288,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- class SavePng
|
|
|
|
|
|
+ private class SavePng
|
|
{
|
|
{
|
|
public FileInfo info { get; }
|
|
public FileInfo info { get; }
|
|
public Texture2D screenshot { get; }
|
|
public Texture2D screenshot { get; }
|