| 32545 | } |
| 32546 | |
| 32547 | bool GenericGUIMenu::AssistShrineGUI_t::warpMouseToSelectedAssistShrineItem(Item* snapToItem, Uint32 flags) |
| 32548 | { |
| 32549 | if ( assistShrineGUIHasBeenCreated() ) |
| 32550 | { |
| 32551 | int x = getSelectedAssistShrineX(); |
| 32552 | int y = getSelectedAssistShrineY(); |
| 32553 | if ( snapToItem ) |
| 32554 | { |
| 32555 | x = snapToItem->x; |
| 32556 | y = snapToItem->y; |
| 32557 | } |
| 32558 | |
| 32559 | if ( auto slot = getAssistShrineSlotFrame(x, y) ) |
| 32560 | { |
| 32561 | int playernum = parentGUI.getPlayer(); |
| 32562 | auto player = players[playernum]; |
| 32563 | if ( !isInteractable ) |
| 32564 | { |
| 32565 | //messagePlayer(0, "[Debug]: select item queued"); |
| 32566 | player->inventoryUI.cursor.queuedModule = Player::GUI_t::MODULE_ASSISTSHRINE; |
| 32567 | player->inventoryUI.cursor.queuedFrameToWarpTo = slot; |
| 32568 | return false; |
| 32569 | } |
| 32570 | else |
| 32571 | { |
| 32572 | //messagePlayer(0, "[Debug]: select item warped"); |
| 32573 | player->inventoryUI.cursor.queuedModule = Player::GUI_t::MODULE_NONE; |
| 32574 | player->inventoryUI.cursor.queuedFrameToWarpTo = nullptr; |
| 32575 | slot->warpMouseToFrame(playernum, flags); |
| 32576 | } |
| 32577 | return true; |
| 32578 | } |
| 32579 | } |
| 32580 | return false; |
| 32581 | } |
| 32582 | |
| 32583 | static ConsoleVariable<int> cvar_assistClassListGridY("/assist_grid_y", 112); |
| 32584 | const int kAssistClassHeaderHeight = 46; |
no test coverage detected