Added UnityCN.
This commit is contained in:
@@ -157,6 +157,7 @@ namespace AssetStudioGUI
|
||||
Logger.Info($"Target Game type is {Studio.Game.Type}");
|
||||
|
||||
MapNameComboBox.SelectedIndexChanged += new EventHandler(specifyNameComboBox_SelectedIndexChanged);
|
||||
UnityCNManager.SetKey(Properties.Settings.Default.selectedUnityCNKey);
|
||||
}
|
||||
private void AssetStudioGUIForm_DragEnter(object sender, DragEventArgs e)
|
||||
{
|
||||
@@ -274,6 +275,10 @@ namespace AssetStudioGUI
|
||||
{
|
||||
productName = Studio.Game.Name;
|
||||
}
|
||||
else if (Studio.Game.Type.IsUnityCN() && UnityCNManager.TryGetEntry(Properties.Settings.Default.selectedUnityCNKey, out var unityCN))
|
||||
{
|
||||
productName = unityCN.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
productName = "no productName";
|
||||
@@ -2300,6 +2305,12 @@ namespace AssetStudioGUI
|
||||
assetBrowser.Show();
|
||||
}
|
||||
|
||||
private void specifyUnityCNKey_Click(object sender, EventArgs e)
|
||||
{
|
||||
var unitycn = new UnityCNForm();
|
||||
unitycn.Show();
|
||||
}
|
||||
|
||||
#region FMOD
|
||||
private void FMODinit()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user