UI 系统

This commit is contained in:
2026-06-08 11:26:17 +08:00
parent 1897658a00
commit b582317692
94 changed files with 33540 additions and 3726 deletions

View File

@@ -165,28 +165,28 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""initialStateCheck"": false
},
{
""name"": ""SwitchSkyForm"",
""name"": ""SwitchTianHunForm"",
""type"": ""Button"",
""id"": ""288ba219-3999-4951-95a5-7f59de67e9c2"",
""expectedControlType"": ""Button"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SwitchEarthForm"",
""name"": ""SwitchDiHunForm"",
""type"": ""Button"",
""id"": ""1ebc4d85-1cd6-4730-abac-6020f74787e1"",
""expectedControlType"": ""Button"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SwitchDeathForm"",
""name"": ""SwitchMingHunForm"",
""type"": ""Button"",
""id"": ""1d80c36d-a347-44ac-9498-f3bb262f5643"",
""expectedControlType"": ""Button"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
@@ -253,6 +253,15 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""QuickMap"",
""type"": ""Button"",
""id"": ""b7f46b82-62e8-43ad-955f-0a91cd9b3f57"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@@ -472,7 +481,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SwitchSkyForm"",
""action"": ""SwitchTianHunForm"",
""isComposite"": false,
""isPartOfComposite"": false
},
@@ -483,7 +492,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SwitchEarthForm"",
""action"": ""SwitchDiHunForm"",
""isComposite"": false,
""isPartOfComposite"": false
},
@@ -494,7 +503,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SwitchDeathForm"",
""action"": ""SwitchMingHunForm"",
""isComposite"": false,
""isPartOfComposite"": false
},
@@ -607,6 +616,17 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""action"": ""Inventory"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""6e531471-28cc-47a5-9550-0e7a32471eb3"",
""path"": ""<Keyboard>/m"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""QuickMap"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
},
@@ -739,6 +759,15 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""QuickMap"",
""type"": ""Button"",
""id"": ""65742438-4d43-4c79-8499-5781ad34dcb0"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@@ -1258,6 +1287,17 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""action"": ""InventoryTabPrev"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""d1d954e4-fccd-49e9-ac07-b0c4a476fcf3"",
""path"": ""<Keyboard>/m"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""QuickMap"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
@@ -1302,9 +1342,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
m_Gameplay_Parry = m_Gameplay.FindAction("Parry", throwIfNotFound: true);
m_Gameplay_Dash = m_Gameplay.FindAction("Dash", throwIfNotFound: true);
m_Gameplay_UseSpring = m_Gameplay.FindAction("UseSpring", throwIfNotFound: true);
m_Gameplay_SwitchSkyForm = m_Gameplay.FindAction("SwitchSkyForm", throwIfNotFound: true);
m_Gameplay_SwitchEarthForm = m_Gameplay.FindAction("SwitchEarthForm", throwIfNotFound: true);
m_Gameplay_SwitchDeathForm = m_Gameplay.FindAction("SwitchDeathForm", throwIfNotFound: true);
m_Gameplay_SwitchTianHunForm = m_Gameplay.FindAction("SwitchTianHunForm", throwIfNotFound: true);
m_Gameplay_SwitchDiHunForm = m_Gameplay.FindAction("SwitchDiHunForm", throwIfNotFound: true);
m_Gameplay_SwitchMingHunForm = m_Gameplay.FindAction("SwitchMingHunForm", throwIfNotFound: true);
m_Gameplay_SoulSkill = m_Gameplay.FindAction("SoulSkill", throwIfNotFound: true);
m_Gameplay_SpiritSkill1 = m_Gameplay.FindAction("SpiritSkill1", throwIfNotFound: true);
m_Gameplay_SpiritSkill2 = m_Gameplay.FindAction("SpiritSkill2", throwIfNotFound: true);
@@ -1312,6 +1352,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
m_Gameplay_Pause = m_Gameplay.FindAction("Pause", throwIfNotFound: true);
m_Gameplay_Spell = m_Gameplay.FindAction("Spell", throwIfNotFound: true);
m_Gameplay_Inventory = m_Gameplay.FindAction("Inventory", throwIfNotFound: true);
m_Gameplay_QuickMap = m_Gameplay.FindAction("QuickMap", throwIfNotFound: true);
// UI
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
@@ -1328,6 +1369,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
m_UI_MapCenter = m_UI.FindAction("MapCenter", throwIfNotFound: true);
m_UI_InventoryTabNext = m_UI.FindAction("InventoryTabNext", throwIfNotFound: true);
m_UI_InventoryTabPrev = m_UI.FindAction("InventoryTabPrev", throwIfNotFound: true);
m_UI_QuickMap = m_UI.FindAction("QuickMap", throwIfNotFound: true);
}
~@PlayerInputActions()
@@ -1417,9 +1459,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
private readonly InputAction m_Gameplay_Parry;
private readonly InputAction m_Gameplay_Dash;
private readonly InputAction m_Gameplay_UseSpring;
private readonly InputAction m_Gameplay_SwitchSkyForm;
private readonly InputAction m_Gameplay_SwitchEarthForm;
private readonly InputAction m_Gameplay_SwitchDeathForm;
private readonly InputAction m_Gameplay_SwitchTianHunForm;
private readonly InputAction m_Gameplay_SwitchDiHunForm;
private readonly InputAction m_Gameplay_SwitchMingHunForm;
private readonly InputAction m_Gameplay_SoulSkill;
private readonly InputAction m_Gameplay_SpiritSkill1;
private readonly InputAction m_Gameplay_SpiritSkill2;
@@ -1427,6 +1469,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
private readonly InputAction m_Gameplay_Pause;
private readonly InputAction m_Gameplay_Spell;
private readonly InputAction m_Gameplay_Inventory;
private readonly InputAction m_Gameplay_QuickMap;
/// <summary>
/// Provides access to input actions defined in input action map "Gameplay".
/// </summary>
@@ -1471,17 +1514,17 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
/// </summary>
public InputAction @UseSpring => m_Wrapper.m_Gameplay_UseSpring;
/// <summary>
/// Provides access to the underlying input action "Gameplay/SwitchSkyForm".
/// Provides access to the underlying input action "Gameplay/SwitchTianHunForm".
/// </summary>
public InputAction @SwitchSkyForm => m_Wrapper.m_Gameplay_SwitchSkyForm;
public InputAction @SwitchTianHunForm => m_Wrapper.m_Gameplay_SwitchTianHunForm;
/// <summary>
/// Provides access to the underlying input action "Gameplay/SwitchEarthForm".
/// Provides access to the underlying input action "Gameplay/SwitchDiHunForm".
/// </summary>
public InputAction @SwitchEarthForm => m_Wrapper.m_Gameplay_SwitchEarthForm;
public InputAction @SwitchDiHunForm => m_Wrapper.m_Gameplay_SwitchDiHunForm;
/// <summary>
/// Provides access to the underlying input action "Gameplay/SwitchDeathForm".
/// Provides access to the underlying input action "Gameplay/SwitchMingHunForm".
/// </summary>
public InputAction @SwitchDeathForm => m_Wrapper.m_Gameplay_SwitchDeathForm;
public InputAction @SwitchMingHunForm => m_Wrapper.m_Gameplay_SwitchMingHunForm;
/// <summary>
/// Provides access to the underlying input action "Gameplay/SoulSkill".
/// </summary>
@@ -1511,6 +1554,10 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
/// </summary>
public InputAction @Inventory => m_Wrapper.m_Gameplay_Inventory;
/// <summary>
/// Provides access to the underlying input action "Gameplay/QuickMap".
/// </summary>
public InputAction @QuickMap => m_Wrapper.m_Gameplay_QuickMap;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get() { return m_Wrapper.m_Gameplay; }
@@ -1560,15 +1607,15 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@UseSpring.started += instance.OnUseSpring;
@UseSpring.performed += instance.OnUseSpring;
@UseSpring.canceled += instance.OnUseSpring;
@SwitchSkyForm.started += instance.OnSwitchSkyForm;
@SwitchSkyForm.performed += instance.OnSwitchSkyForm;
@SwitchSkyForm.canceled += instance.OnSwitchSkyForm;
@SwitchEarthForm.started += instance.OnSwitchEarthForm;
@SwitchEarthForm.performed += instance.OnSwitchEarthForm;
@SwitchEarthForm.canceled += instance.OnSwitchEarthForm;
@SwitchDeathForm.started += instance.OnSwitchDeathForm;
@SwitchDeathForm.performed += instance.OnSwitchDeathForm;
@SwitchDeathForm.canceled += instance.OnSwitchDeathForm;
@SwitchTianHunForm.started += instance.OnSwitchTianHunForm;
@SwitchTianHunForm.performed += instance.OnSwitchTianHunForm;
@SwitchTianHunForm.canceled += instance.OnSwitchTianHunForm;
@SwitchDiHunForm.started += instance.OnSwitchDiHunForm;
@SwitchDiHunForm.performed += instance.OnSwitchDiHunForm;
@SwitchDiHunForm.canceled += instance.OnSwitchDiHunForm;
@SwitchMingHunForm.started += instance.OnSwitchMingHunForm;
@SwitchMingHunForm.performed += instance.OnSwitchMingHunForm;
@SwitchMingHunForm.canceled += instance.OnSwitchMingHunForm;
@SoulSkill.started += instance.OnSoulSkill;
@SoulSkill.performed += instance.OnSoulSkill;
@SoulSkill.canceled += instance.OnSoulSkill;
@@ -1590,6 +1637,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@Inventory.started += instance.OnInventory;
@Inventory.performed += instance.OnInventory;
@Inventory.canceled += instance.OnInventory;
@QuickMap.started += instance.OnQuickMap;
@QuickMap.performed += instance.OnQuickMap;
@QuickMap.canceled += instance.OnQuickMap;
}
/// <summary>
@@ -1625,15 +1675,15 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@UseSpring.started -= instance.OnUseSpring;
@UseSpring.performed -= instance.OnUseSpring;
@UseSpring.canceled -= instance.OnUseSpring;
@SwitchSkyForm.started -= instance.OnSwitchSkyForm;
@SwitchSkyForm.performed -= instance.OnSwitchSkyForm;
@SwitchSkyForm.canceled -= instance.OnSwitchSkyForm;
@SwitchEarthForm.started -= instance.OnSwitchEarthForm;
@SwitchEarthForm.performed -= instance.OnSwitchEarthForm;
@SwitchEarthForm.canceled -= instance.OnSwitchEarthForm;
@SwitchDeathForm.started -= instance.OnSwitchDeathForm;
@SwitchDeathForm.performed -= instance.OnSwitchDeathForm;
@SwitchDeathForm.canceled -= instance.OnSwitchDeathForm;
@SwitchTianHunForm.started -= instance.OnSwitchTianHunForm;
@SwitchTianHunForm.performed -= instance.OnSwitchTianHunForm;
@SwitchTianHunForm.canceled -= instance.OnSwitchTianHunForm;
@SwitchDiHunForm.started -= instance.OnSwitchDiHunForm;
@SwitchDiHunForm.performed -= instance.OnSwitchDiHunForm;
@SwitchDiHunForm.canceled -= instance.OnSwitchDiHunForm;
@SwitchMingHunForm.started -= instance.OnSwitchMingHunForm;
@SwitchMingHunForm.performed -= instance.OnSwitchMingHunForm;
@SwitchMingHunForm.canceled -= instance.OnSwitchMingHunForm;
@SoulSkill.started -= instance.OnSoulSkill;
@SoulSkill.performed -= instance.OnSoulSkill;
@SoulSkill.canceled -= instance.OnSoulSkill;
@@ -1655,6 +1705,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@Inventory.started -= instance.OnInventory;
@Inventory.performed -= instance.OnInventory;
@Inventory.canceled -= instance.OnInventory;
@QuickMap.started -= instance.OnQuickMap;
@QuickMap.performed -= instance.OnQuickMap;
@QuickMap.canceled -= instance.OnQuickMap;
}
/// <summary>
@@ -1706,6 +1759,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
private readonly InputAction m_UI_MapCenter;
private readonly InputAction m_UI_InventoryTabNext;
private readonly InputAction m_UI_InventoryTabPrev;
private readonly InputAction m_UI_QuickMap;
/// <summary>
/// Provides access to input actions defined in input action map "UI".
/// </summary>
@@ -1774,6 +1828,10 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
/// </summary>
public InputAction @InventoryTabPrev => m_Wrapper.m_UI_InventoryTabPrev;
/// <summary>
/// Provides access to the underlying input action "UI/QuickMap".
/// </summary>
public InputAction @QuickMap => m_Wrapper.m_UI_QuickMap;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get() { return m_Wrapper.m_UI; }
@@ -1841,6 +1899,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@InventoryTabPrev.started += instance.OnInventoryTabPrev;
@InventoryTabPrev.performed += instance.OnInventoryTabPrev;
@InventoryTabPrev.canceled += instance.OnInventoryTabPrev;
@QuickMap.started += instance.OnQuickMap;
@QuickMap.performed += instance.OnQuickMap;
@QuickMap.canceled += instance.OnQuickMap;
}
/// <summary>
@@ -1894,6 +1955,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@InventoryTabPrev.started -= instance.OnInventoryTabPrev;
@InventoryTabPrev.performed -= instance.OnInventoryTabPrev;
@InventoryTabPrev.canceled -= instance.OnInventoryTabPrev;
@QuickMap.started -= instance.OnQuickMap;
@QuickMap.performed -= instance.OnQuickMap;
@QuickMap.canceled -= instance.OnQuickMap;
}
/// <summary>
@@ -2017,26 +2081,26 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnUseSpring(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "SwitchSkyForm" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// Method invoked when associated input action "SwitchTianHunForm" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSwitchSkyForm(InputAction.CallbackContext context);
void OnSwitchTianHunForm(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "SwitchEarthForm" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// Method invoked when associated input action "SwitchDiHunForm" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSwitchEarthForm(InputAction.CallbackContext context);
void OnSwitchDiHunForm(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "SwitchDeathForm" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// Method invoked when associated input action "SwitchMingHunForm" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSwitchDeathForm(InputAction.CallbackContext context);
void OnSwitchMingHunForm(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "SoulSkill" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
@@ -2086,6 +2150,13 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnInventory(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "QuickMap" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnQuickMap(InputAction.CallbackContext context);
}
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks.
@@ -2192,5 +2263,12 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnInventoryTabPrev(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "QuickMap" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnQuickMap(InputAction.CallbackContext context);
}
}