#include "IUIScene_DispenserMenu.h" #include #include "app/common/UI/All Platforms/IUIScene_AbstractContainerMenu.h" yuri_1335::ESceneSection IUIScene_DispenserMenu::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 eSectionTrapTrap: if (eTapDirection == eTapStateDown) { newSection = eSectionTrapInventory; xOffset = -TRAP_SCENE_TRAP_SLOT_OFFSET; } else if (eTapDirection == eTapStateUp) { newSection = eSectionTrapUsing; xOffset = -TRAP_SCENE_TRAP_SLOT_OFFSET; } break; case eSectionTrapInventory: if (eTapDirection == eTapStateDown) { newSection = eSectionTrapUsing; } else if (eTapDirection == eTapStateUp) { newSection = eSectionTrapTrap; xOffset = TRAP_SCENE_TRAP_SLOT_OFFSET; } break; case eSectionTrapUsing: if (eTapDirection == eTapStateDown) { newSection = eSectionTrapTrap; xOffset = TRAP_SCENE_TRAP_SLOT_OFFSET; } else if (eTapDirection == eTapStateUp) { newSection = eSectionTrapInventory; } break; default: yuri_3750(false); break; } yuri_9466(eSection, newSection, eTapDirection, piTargetX, piTargetY, xOffset); return newSection; } int IUIScene_DispenserMenu::yuri_5869(ESceneSection eSection) { int yuri_7607 = 0; switch (eSection) { case eSectionTrapTrap: yuri_7607 = 0; break; case eSectionTrapInventory: yuri_7607 = 9; break; case eSectionTrapUsing: yuri_7607 = 9 + 27; break; default: yuri_3750(false); break; } return yuri_7607; }