Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Jun 5, 2024
1 parent f397195 commit 9c21e13
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PHABMX/GUI/InterfaceData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
using System.Collections.Generic;
using KKAPI.Maker;
#pragma warning disable CS1591

namespace KKABMX.GUI
{
/// <summary>
/// Data needed for creating yellow sliders and custom maker categories
/// </summary>
public static class InterfaceData
{
public static List<BoneMeta> BoneControls { get; }
Expand Down
2 changes: 2 additions & 0 deletions Shared/GUI/KKABMX_AdvancedGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions Shared/GUI/KKABMX_GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 4 additions & 0 deletions Shared_AIHS2/GUI/InterfaceData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
using System.Collections.Generic;
using KKAPI.Maker;
#pragma warning disable CS1591

namespace KKABMX.GUI
{
/// <summary>
/// Data needed for creating yellow sliders and custom maker categories
/// </summary>
public static class InterfaceData
{
public static List<BoneMeta> BoneControls { get; }
Expand Down

0 comments on commit 9c21e13

Please sign in to comment.