pagecommon.h 756 Bytes
#ifndef __page_common_h__
#define __page_common_h__

#define MAX_MAIN_BUTTON 3

#define MAX_CURSOR     6
#define CURSOR_WD      12
#define CURSOR_HT      16
#define CURSOR_SPEED   4
#define CURSOR_CAP     4
#define CURSOR_COUNT   20
 
typedef struct {
    int bnum, active;
    int center_x, center_y, radius;
    int draw_x, draw_y;
    u16 *data;
} UiMainButton; 

typedef struct {
    int x, y, count;
} UiCursor;

extern UiMainButton gMainButton[MAX_MAIN_BUTTON];
extern UiCursor     gCursor[MAX_CURSOR];
extern int          gAltCursor;
extern int          gIdxCursor;

extern void initMainButtons(void);
extern void drawPageCommon(void);
extern void drawCursor(void);
extern void checkCursorCommon(void);
extern void initCursor(int x, int y);

#endif