From 932ec4019a592ab0f87cf2c7790bfe66828dfccb Mon Sep 17 00:00:00 2001 From: Jenya Date: Wed, 2 Oct 2024 22:35:54 +0300 Subject: Actual code --- source/frontend/StarContainerInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/frontend/StarContainerInterface.cpp') diff --git a/source/frontend/StarContainerInterface.cpp b/source/frontend/StarContainerInterface.cpp index 5a06d04..5d7ae89 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 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(); + } } } } -- cgit v1.2.3 From 9e2f39bc01ef733d8b6358db2e199a25c4795193 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 11 Oct 2024 05:34:45 +1100 Subject: Update StarContainerInterface.cpp --- source/frontend/StarContainerInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarContainerInterface.cpp') diff --git a/source/frontend/StarContainerInterface.cpp b/source/frontend/StarContainerInterface.cpp index 5d7ae89..afd2084 100644 --- a/source/frontend/StarContainerInterface.cpp +++ b/source/frontend/StarContainerInterface.cpp @@ -18,7 +18,7 @@ #include "StarStatusControllerLuaBindings.hpp" #include "StarWidgetLuaBindings.hpp" #include "StarAugmentItem.hpp" -#include +#include "StarInput.hpp" namespace Star { -- cgit v1.2.3