mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
[IKAdjustments] Fixed for 2024r175
This commit is contained in:
parent
9cfe74276d
commit
b294a1601f
3 changed files with 11 additions and 22 deletions
|
@ -24,20 +24,8 @@ public static class BTKUIAddon
|
|||
miscCategory.AddButton("Reset Offsets", "", "Reset all tracked point offsets.")
|
||||
.OnPress += () => { IKAdjuster.Instance.ResetAllOffsets(); };
|
||||
|
||||
// Cyle GrabMode Button
|
||||
// Cycle GrabMode Button
|
||||
miscCategory.AddButton("Cycle Mode", "", "Cycle grab mode. Position, Rotation, or Both.")
|
||||
.OnPress += () => { IKAdjuster.Instance.CycleAdjustMode(); };
|
||||
}
|
||||
|
||||
private static void AddMelonToggle(ref Category category, MelonPreferences_Entry<bool> entry)
|
||||
{
|
||||
category.AddToggle(entry.DisplayName, entry.Description, entry.Value).OnValueUpdated += b => entry.Value = b;
|
||||
}
|
||||
|
||||
private static void AddMelonSlider(ref Page page, MelonPreferences_Entry<float> entry, float min, float max,
|
||||
int decimalPlaces = 2)
|
||||
{
|
||||
page.AddSlider(entry.DisplayName, entry.Description, entry.Value, min, max, decimalPlaces).OnValueUpdated +=
|
||||
f => entry.Value = f;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue