mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-09 12:35:23 -05:00
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
#ifndef GUARD_MENU_HELPERS_H
|
|
#define GUARD_MENU_HELPERS_H
|
|
|
|
#include "global.h"
|
|
#include "task.h"
|
|
#include "window.h"
|
|
|
|
#define MENU_L_PRESSED 1
|
|
#define MENU_R_PRESSED 2
|
|
|
|
struct YesNoFuncTable
|
|
{
|
|
TaskFunc yesFunc;
|
|
TaskFunc noFunc;
|
|
};
|
|
|
|
bool16 RunTextPrinters_CheckActive(u8 textPrinterId);
|
|
bool8 IsActiveOverworldLinkBusy(void);
|
|
bool8 MenuHelpers_ShouldWaitForLinkRecv(void);
|
|
bool8 MenuHelpers_IsLinkActive(void);
|
|
void SetVBlankHBlankCallbacksToNull(void);
|
|
void ResetAllBgsCoordinatesAndBgCntRegs(void);
|
|
u8 GetDialogBoxFontId(void);
|
|
bool8 AdjustQuantityAccordingToDPadInput(s16 *quantity_p, u16 qmax);
|
|
void DisplayMessageAndContinueTask(u8 taskId, u8 windowId, u16 tileNum, u8 paletteNum, u8 fontId, u8 textSpeed, const u8 *string, void *taskFunc);
|
|
void CreateYesNoMenuWithCallbacks(u8 taskId, const struct WindowTemplate *template, u8 fontId, u8 left, u8 top, u16 tileStart, u8 palette, const struct YesNoFuncTable *yesNo);
|
|
u8 GetLRKeysPressed(void);
|
|
u8 GetLRKeysPressedAndHeld(void);
|
|
bool8 IsHoldingItemAllowed(u16 itemId);
|
|
bool8 IsWritingMailAllowed(u16 itemId);
|
|
void ResetVramOamAndBgCntRegs(void);
|
|
|
|
#endif //GUARD_MENU_HELPERS_H
|