diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-11 05:35:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 05:35:06 +1100 |
commit | 4b917e8c2fb79ef435267c2e4abd19b416451eff (patch) | |
tree | 2b2b93a95e68b3a717edefafef939b2ca762fc32 /source/frontend | |
parent | 8eea7862aa9d1122c127786f53b9a6d4d15bade2 (diff) | |
parent | 9e2f39bc01ef733d8b6358db2e199a25c4795193 (diff) |
Merge pull request #122 from JenyaRostov/takeallhotkey
Hotkey to Take All action in containers
Diffstat (limited to 'source/frontend')
-rw-r--r-- | source/frontend/StarContainerInterface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/frontend/StarContainerInterface.cpp b/source/frontend/StarContainerInterface.cpp index 5a06d04..afd2084 100644 --- a/source/frontend/StarContainerInterface.cpp +++ b/source/frontend/StarContainerInterface.cpp @@ -18,6 +18,7 @@ #include "StarStatusControllerLuaBindings.hpp" #include "StarWidgetLuaBindings.hpp" #include "StarAugmentItem.hpp" +#include "StarInput.hpp" namespace Star { @@ -265,6 +266,7 @@ void ContainerPane::update(float dt) { m_script->update(m_script->updateDt(dt)); m_itemBag->clearItems(); + Input& input = Input::singleton(); if (!m_containerInteractor->containerOpen()) { dismiss(); @@ -296,6 +298,10 @@ void ContainerPane::update(float dt) { fuelGauge->setPotentialFuelAmount(totalFuelAmount); fuelGauge->setRequestedFuelAmount(0); } + + if (input.bindDown("opensb", "takeAll")) { + m_containerInteractor->clearContainer(); + } } } } |