Skip to content

Commit

Permalink
Merge pull request #15 from Codenade/ksp2-1-4-0-update
Browse files Browse the repository at this point in the history
Update for game version 0.1.4.0
  • Loading branch information
Codenade authored Aug 30, 2023
2 parents 2a860e4 + 8e02385 commit 38fc1df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ksp2-inputbinder/Inputbinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private IEnumerator LoadCatalog()
if (operation.Status == AsyncOperationStatus.Failed)
GlobalLog.Error(LogFilter.UserMod, $"[{Constants.Name}] Failed to load addressables catalog!");
else
GameManager.Instance.Game.Assets.RegisterResourceLocator(operation.Result);
GameManager.Instance.Assets.RegisterResourceLocator(operation.Result);
yield break;
}

Expand Down Expand Up @@ -230,7 +230,7 @@ private void VehicleStateChanged(MessageCenterMessage msg)
{
_button = AppBarButton.CreateButton($"BTN-{Constants.ID}", Constants.Name, OnAppBarButtonClicked);
_button.Destroying += () => _button = null;
Game.Assets.LoadRaw<Sprite>(Constants.AppBarIconAssetKey).Completed += op =>
Assets.LoadRaw<Sprite>(Constants.AppBarIconAssetKey).Completed += op =>
{
if (_button is object)
_button.Icon = op.Result;
Expand Down
2 changes: 1 addition & 1 deletion ksp2-inputbinder/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Codenade.Inputbinder
{
[BepInPlugin("codenade-inputbinder", "codenade-inputbinder", "0.4.1")]//PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
[BepInPlugin("codenade-inputbinder", "codenade-inputbinder", "0.4.2")]//PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin
{
private void Awake()
Expand Down
4 changes: 2 additions & 2 deletions ksp2-inputbinder/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.1.0")]
[assembly: AssemblyFileVersion("0.4.1.0")]
[assembly: AssemblyVersion("0.4.2.0")]
[assembly: AssemblyFileVersion("0.4.2.0")]
4 changes: 2 additions & 2 deletions ksp2-inputbinder/ui/BindingUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Vector2 WindowPosition
public void Initialize(Transform parent)
{
IsInitializing = true;
GameManager.Instance.Game.Assets.CreateAsync<GameObject>(
GameManager.Instance.Assets.CreateAsync<GameObject>(
(Attribute.GetCustomAttribute(typeof(KSP2UIWindow), typeof(PrefabNameAttribute)) as PrefabNameAttribute).Prefab,
parent,
(result) =>
Expand All @@ -60,7 +60,7 @@ public void Initialize(Transform parent)
foreach (var key in PrefabKeys.AllKeys)
{
_operationsInProgress++;
GameManager.Instance.Game.Assets.LoadAssetAsync<GameObject>(key)
GameManager.Instance.Assets.LoadAssetAsync<GameObject>(key)
.Completed += operation => SinglePrefabLoadFinished(key, operation);
}
_allPrefabsQueued = true;
Expand Down

0 comments on commit 38fc1df

Please sign in to comment.