This SHOULD be a fixed commit, where pret is properly merged, the bug fixes relating to the follower and saves, bikes, and ground effects, and the improved dynamic palette system is present.
42 lines
1.7 KiB
C
42 lines
1.7 KiB
C
#ifndef GUARD_MENU_HELPERS_H
|
|
#define GUARD_MENU_HELPERS_H
|
|
|
|
#include "task.h"
|
|
#include "window.h"
|
|
|
|
#define MENU_L_PRESSED 1
|
|
#define MENU_R_PRESSED 2
|
|
|
|
#define SWAP_LINE_HAS_MARGIN (1 << 7)
|
|
|
|
struct YesNoFuncTable
|
|
{
|
|
TaskFunc yesFunc;
|
|
TaskFunc noFunc;
|
|
};
|
|
|
|
void ResetVramOamAndBgCntRegs(void);
|
|
void ResetAllBgsCoordinates(void);
|
|
void SetVBlankHBlankCallbacksToNull(void);
|
|
void DisplayMessageAndContinueTask(u8 taskId, u8 windowId, u16 tileNum, u8 paletteNum, u8 fontId, u8 textSpeed, const u8 *string, void *taskFunc);
|
|
bool16 RunTextPrintersRetIsActive(u8 textPrinterId);
|
|
void DoYesNoFuncWithChoice(u8 taskId, const struct YesNoFuncTable *data);
|
|
void CreateYesNoMenuWithCallbacks(u8 taskId, const struct WindowTemplate *template, u8 unused1, u8 unused2, u8 unused3, u16 tileStart, u8 palette, const struct YesNoFuncTable *yesNo);
|
|
bool8 AdjustQuantityAccordingToDPadInput(s16 *quantity, u16 max);
|
|
u8 GetLRKeysPressed(void);
|
|
u8 GetLRKeysPressedAndHeld(void);
|
|
bool8 IsHoldingItemAllowed(u16 itemId);
|
|
bool8 IsWritingMailAllowed(u16 itemId);
|
|
bool8 MenuHelpers_IsLinkActive(void);
|
|
bool8 MenuHelpers_ShouldWaitForLinkRecv(void);
|
|
void SetItemListPerPageCount(struct ItemSlot *slots, u8 slotsCount, u8 *pageItems, u8 *totalItems, u8 maxPerPage);
|
|
void SetCursorWithinListBounds(u16 *scrollOffset, u16 *cursorPos, u8 maxShownItems, u8 totalItems);
|
|
void SetCursorScrollWithinListBounds(u16 *scrollOffset, u16 *cursorPos, u8 shownItems, u8 totalItems, u8 maxShownItems);
|
|
void LoadListMenuSwapLineGfx(void);
|
|
void CreateSwapLineSprites(u8 *spriteIds, u8 count);
|
|
void DestroySwapLineSprites(u8 *spriteIds, u8 count);
|
|
void SetSwapLineSpritesInvisibility(u8 *spriteIds, u8 count, bool8 invisible);
|
|
void UpdateSwapLineSpritesPos(u8 *spriteIds, u8 count, s16 x, u16 y);
|
|
|
|
#endif //GUARD_MENU_HELPERS_H
|