From 9c21e135ea09b3d6e48f416bb52fecb8ef99232a Mon Sep 17 00:00:00 2001 From: ManlyMarco <39247311+ManlyMarco@users.noreply.github.com> Date: Wed, 5 Jun 2024 22:51:08 +0200 Subject: [PATCH] Fix compiler warnings --- PHABMX/GUI/InterfaceData.cs | 4 ++++ Shared/GUI/KKABMX_AdvancedGUI.cs | 2 ++ Shared/GUI/KKABMX_GUI.cs | 2 ++ Shared_AIHS2/GUI/InterfaceData.cs | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/PHABMX/GUI/InterfaceData.cs b/PHABMX/GUI/InterfaceData.cs index 81a8271..2adcec3 100644 --- a/PHABMX/GUI/InterfaceData.cs +++ b/PHABMX/GUI/InterfaceData.cs @@ -1,8 +1,12 @@ using System.Collections.Generic; using KKAPI.Maker; +#pragma warning disable CS1591 namespace KKABMX.GUI { + /// + /// Data needed for creating yellow sliders and custom maker categories + /// public static class InterfaceData { public static List BoneControls { get; } diff --git a/Shared/GUI/KKABMX_AdvancedGUI.cs b/Shared/GUI/KKABMX_AdvancedGUI.cs index bd343a9..55ea9b3 100644 --- a/Shared/GUI/KKABMX_AdvancedGUI.cs +++ b/Shared/GUI/KKABMX_AdvancedGUI.cs @@ -77,7 +77,9 @@ public WorldValueHoldInfo(string boneName, BoneLocation boneLocation) //private BoneModifierData[] _copiedModifier; private static bool _editSymmetry = true; +#pragma warning disable CS0649 // Field is never assigned to outside of KK and KKS but is still needed private bool _onlyShowCoords; +#pragma warning restore CS0649 private bool _onlyShowModified; private bool _onlyShowNewChanges; private bool _onlyShowFavorites; diff --git a/Shared/GUI/KKABMX_GUI.cs b/Shared/GUI/KKABMX_GUI.cs index 25336d7..2cc004c 100644 --- a/Shared/GUI/KKABMX_GUI.cs +++ b/Shared/GUI/KKABMX_GUI.cs @@ -111,8 +111,10 @@ private void RegisterCustomControls(RegisterCustomControlsEvent callback) _faceLoadToggle = callback.AddLoadToggle(new MakerLoadToggle("Face Bonemod")); _bodyLoadToggle = callback.AddLoadToggle(new MakerLoadToggle("Body Bonemod")); +#pragma warning disable CS0618 // Ignore the obsolete warning in AI/HS2, the toggle might get implemented in the future callback.AddCoordinateLoadToggle(new MakerCoordinateLoadToggle("Bonemod")) .ValueChanged.Subscribe(b => GetRegistration().MaintainCoordinateState = !b); +#pragma warning restore CS0618 if (ShowSliders) { diff --git a/Shared_AIHS2/GUI/InterfaceData.cs b/Shared_AIHS2/GUI/InterfaceData.cs index 5e84755..322c149 100644 --- a/Shared_AIHS2/GUI/InterfaceData.cs +++ b/Shared_AIHS2/GUI/InterfaceData.cs @@ -1,8 +1,12 @@ using System.Collections.Generic; using KKAPI.Maker; +#pragma warning disable CS1591 namespace KKABMX.GUI { + /// + /// Data needed for creating yellow sliders and custom maker categories + /// public static class InterfaceData { public static List BoneControls { get; }