diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-05-21 07:55:11 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 07:55:11 +1000 |
commit | 0f6f4495eb881292f135063c38113c7d5c67216f (patch) | |
tree | 5278440b54cee29275ccec074bf453808b81cbd5 | |
parent | bb7ae05a917cd47a0e78a28caa79cbe967b474bc (diff) | |
parent | af0a79d66ac4df015b4927b47176e7dc60e5089c (diff) |
Merge pull request #243 from emmyposs/invbar-more-select-binds
handle binds for action bar slots 7-10
-rw-r--r-- | source/frontend/StarActionBar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/frontend/StarActionBar.cpp b/source/frontend/StarActionBar.cpp index 9f78626..7a850b7 100644 --- a/source/frontend/StarActionBar.cpp +++ b/source/frontend/StarActionBar.cpp @@ -172,7 +172,8 @@ bool ActionBar::sendEvent(InputEvent const& event) { } for (auto action : context()->actions(event)) { - if (action >= InterfaceAction::InterfaceBar1 && action <= InterfaceAction::InterfaceBar6) + if (action >= InterfaceAction::InterfaceBar1 && action <= InterfaceAction::InterfaceBar10 + && ((int)action - (int)InterfaceAction::InterfaceBar1) < inventory->customBarIndexes()) inventory->selectActionBarLocation((CustomBarIndex)((int)action - (int)InterfaceAction::InterfaceBar1)); if (action >= InterfaceAction::EssentialBar1 && action <= InterfaceAction::EssentialBar4) |