#include "IUIScene_HopperMenu.h" #include #include "app/common/UI/All Platforms/IUIScene_AbstractContainerMenu.h" #include "minecraft/world/inventory/HopperMenu.h" yuri_1335::ESceneSection IUIScene_HopperMenu::yuri_1154(ESceneSection eSection, ETapState eTapDirection, int* piTargetX, int* piTargetY) { ESceneSection newSection = eSection; int xOffset = 0; // Find the new section if there is one switch (eSection) { case eSectionHopperContents: if (eTapDirection == eTapStateDown) { newSection = eSectionHopperInventory; xOffset = -2; } else if (eTapDirection == eTapStateUp) { xOffset = -2; newSection = eSectionHopperUsing; } break; case eSectionHopperInventory: if (eTapDirection == eTapStateDown) { newSection = eSectionHopperUsing; } else if (eTapDirection == eTapStateUp) { xOffset = 2; newSection = eSectionHopperContents; } break; case eSectionHopperUsing: if (eTapDirection == eTapStateDown) { xOffset = 2; newSection = eSectionHopperContents; } else if (eTapDirection == eTapStateUp) { newSection = eSectionHopperInventory; } break; default: yuri_3750(false); break; } yuri_9466(eSection, newSection, eTapDirection, piTargetX, piTargetY, xOffset); return newSection; } int IUIScene_HopperMenu::yuri_5869(ESceneSection eSection) { int yuri_7607 = 0; switch (eSection) { case eSectionHopperContents: yuri_7607 = yuri_1281::CONTENTS_SLOT_START; break; case eSectionHopperInventory: yuri_7607 = yuri_1281::INV_SLOT_START; break; case eSectionHopperUsing: yuri_7607 = yuri_1281::USE_ROW_SLOT_START; break; default: yuri_3750(false); break; } return yuri_7607; }