Cycle pose directly instead of radial menu with 2 or fewer poses
With a small pose set (hunter) the pose button and C hotkey advance to the next pose immediately instead of opening the radial overlay. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
21cb0ac8ad
commit
7e9f255de5
2 files changed
+29
-2
No files matched your search
@@ -54,6 +54,24 @@ public class PoseMenu : MonoBehaviour
|
||||
/// button otherwise (no player bound, or an empty pose list).</summary>
|
||||
public bool CanOpen => LocalPoseController() && LocalPoseController().Poses.Count > 0;
|
||||
|
||||
/// <summary>With 2 or fewer poses (the hunter's set) a radial menu is pointless - the pose button
|
||||
/// and the C hotkey cycle directly via <see cref="CyclePose"/> instead of opening the overlay.</summary>
|
||||
public bool CyclesDirectly
|
||||
{
|
||||
get
|
||||
{
|
||||
PlayerPoseController pose = LocalPoseController();
|
||||
return pose && pose.Poses.Count > 0 && pose.Poses.Count <= 2;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Advances to the next pose (wrapping) without opening the overlay.</summary>
|
||||
public void CyclePose()
|
||||
{
|
||||
PlayerPoseController pose = LocalPoseController();
|
||||
if (pose && pose.Poses.Count > 0) pose.SetPoseIndex(pose.CurrentIndex + 1);
|
||||
}
|
||||
|
||||
/// <summary>Opens the modal overlay and (re)builds the radial items; false when there is nothing
|
||||
/// to show, so the caller can drop the pause instead of stranding it.</summary>
|
||||
public bool Open()
|
||||
|
||||
Reference in new issue
Block a user