diff --git a/MonkeyLoader.Resonite.Core/MonkeyLoader.Resonite.Core.csproj b/MonkeyLoader.Resonite.Core/MonkeyLoader.Resonite.Core.csproj index b1da239..d69931c 100644 --- a/MonkeyLoader.Resonite.Core/MonkeyLoader.Resonite.Core.csproj +++ b/MonkeyLoader.Resonite.Core/MonkeyLoader.Resonite.Core.csproj @@ -24,7 +24,7 @@ For mods targetting ML, this library is part of the Resonite Game Pack. - + diff --git a/MonkeyLoader.Resonite.Integration/MonkeyLoader.Resonite.Integration.csproj b/MonkeyLoader.Resonite.Integration/MonkeyLoader.Resonite.Integration.csproj index 7e1aae8..7510c82 100644 --- a/MonkeyLoader.Resonite.Integration/MonkeyLoader.Resonite.Integration.csproj +++ b/MonkeyLoader.Resonite.Integration/MonkeyLoader.Resonite.Integration.csproj @@ -15,7 +15,7 @@ Additionally it contains many useful features for Users and Developers alike. - true + false @@ -23,7 +23,7 @@ Additionally it contains many useful features for Users and Developers alike. - + diff --git a/MonkeyLoader.Resonite.Integration/UI/Inspectors/DefaultInspectorHeaderHandler.cs b/MonkeyLoader.Resonite.Integration/UI/Inspectors/DefaultInspectorHeaderHandler.cs index 22fc7da..87f2a98 100644 --- a/MonkeyLoader.Resonite.Integration/UI/Inspectors/DefaultInspectorHeaderHandler.cs +++ b/MonkeyLoader.Resonite.Integration/UI/Inspectors/DefaultInspectorHeaderHandler.cs @@ -27,7 +27,7 @@ protected override void Handle(BuildInspectorHeaderEvent eventData) button.Slot.AttachComponent().Reference.Target = worker; button.Label.Color.Value = RadiantUI_Constants.LABEL_COLOR; - ConfigSection.WorkerNameOffset.DriveFromVariable(button.Slot._orderOffset); + ConfigSection.WorkerNameOffset.DriveFromVariable(button.Slot.OrderOffset_Field); eventData.WorkerNameButton = button; } @@ -40,7 +40,7 @@ protected override void Handle(BuildInspectorHeaderEvent eventData) if (eventData.CreateOpenContainerButton) { var button = ui.ButtonRef(OfficialAssets.Graphics.Icons.Inspector.RootUp, RadiantUI_Constants.Sub.PURPLE, eventData.Inspector.OnOpenContainerPressed, worker); - ConfigSection.OpenContainerOffset.DriveFromVariable(button.Slot._orderOffset); + ConfigSection.OpenContainerOffset.DriveFromVariable(button.Slot.OrderOffset_Field); eventData.OpenContainerButton = button; } @@ -48,7 +48,7 @@ protected override void Handle(BuildInspectorHeaderEvent eventData) if (eventData.CreateDuplicateButton) { var button = ui.ButtonRef(OfficialAssets.Graphics.Icons.Inspector.Duplicate, RadiantUI_Constants.Sub.GREEN, eventData.Inspector.OnDuplicateComponentPressed, worker); - ConfigSection.DuplicateOffset.DriveFromVariable(button.Slot._orderOffset); + ConfigSection.DuplicateOffset.DriveFromVariable(button.Slot.OrderOffset_Field); eventData.DuplicateButton = button; } @@ -56,7 +56,7 @@ protected override void Handle(BuildInspectorHeaderEvent eventData) if (eventData.CreateDestroyButton) { var button = ui.ButtonRef(OfficialAssets.Graphics.Icons.Inspector.Destroy, RadiantUI_Constants.Sub.RED, eventData.Inspector.OnRemoveComponentPressed, worker); - ConfigSection.DestroyOffset.DriveFromVariable(button.Slot._orderOffset); + ConfigSection.DestroyOffset.DriveFromVariable(button.Slot.OrderOffset_Field); eventData.DestroyButton = button; } diff --git a/global.json b/global.json index c052a8e..e5cbb6e 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "msbuild-sdks": { - "Remora.Resonite.Sdk": "2.0.3" + "Remora.Resonite.Sdk": "2.0.4" } } \ No newline at end of file