From 3a19b08078d42837126cc585d2a9b6f5f61b2c2b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Jan 2016 21:40:24 +0300 Subject: Add quick shortcuts for add selected item to each craft inventory slot. Add craft tab with shortcuts in input tab. --- src/actions/actions.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index df4f23779..eb6404d37 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1674,4 +1674,18 @@ impHandler0(testInfo) return false; } +impHandler(craftKey) +{ +#ifdef EATHENA_SUPPORT + const int slot = (event.action - InputAction::CRAFT_1); + if (slot >= 0 && slot < 9) + { + if (inventoryWindow) + inventoryWindow->moveItemToCraft(slot); + return true; + } +#endif + return false; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50