fix bugs
This commit is contained in:
parent
53f2a3e8a8
commit
8f394e1d92
2 changed files with 11 additions and 5 deletions
|
|
@ -964,9 +964,12 @@ namespace TD.UI
|
|||
|
||||
private VisualElement CreateBuffMenuButton(Key hotkey)
|
||||
{
|
||||
// Key.None so HandleHotkeys doesn't register B here — BuilderInputController
|
||||
// already fires ToggleBuffMenu on B globally. Registering it in both places
|
||||
// causes a double-toggle on the same frame when the builder is selected.
|
||||
return CreateActionButton(
|
||||
costText: "Buffs",
|
||||
hotkey: hotkey,
|
||||
costText: "Buffs [B]",
|
||||
hotkey: Key.None,
|
||||
onClick: () => ToggleBuffMenu());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue