This commit is contained in:
MuHua-123
2025-11-12 10:19:42 +08:00
parent 28c121f6d9
commit 64938f1137
70 changed files with 469 additions and 228 deletions
@@ -9,7 +9,7 @@ using MuHua;
/// </summary>
public class InputMenu : InputControl {
private UIMenuPanel menu;
// private UIMenuPanel menu;
protected override void ModuleInput_OnInputMode(InputMode mode) {
// throw new System.NotImplementedException();
@@ -19,16 +19,16 @@ public class InputMenu : InputControl {
/// <summary> 鼠标左键 </summary>
public void OnMouseLeft(InputValue inputValue) {
if (inputValue.isPressed) return;
UIShortcutMenu.I.Close();
// UIShortcutMenu.I.Close();
}
/// <summary> 鼠标右键 </summary>
public void OnMouseRight(InputValue inputValue) {
UIShortcutMenu.I.Add("测试1/测试11", () => { Debug.Log("测试1/测试11"); });
UIShortcutMenu.I.Add("测试1/测试12", () => { Debug.Log("测试1/测试12"); });
// UIShortcutMenu.I.Add("测试1/测试11", () => { Debug.Log("测试1/测试11"); });
// UIShortcutMenu.I.Add("测试1/测试12", () => { Debug.Log("测试1/测试12"); });
UIShortcutMenu.I.Add("测试2", () => { Debug.Log("测试2"); });
// UIShortcutMenu.I.Add("测试2", () => { Debug.Log("测试2"); });
UIShortcutMenu.I.Open();
// UIShortcutMenu.I.Open();
}
#endregion
}