00001 #ifndef _PA_PAPI
00002 #define _PA_API
00003
00004
00011 #include "PA_Draw.h"
00012 #include "PA_Text.h"
00013 #include "PA_Palette.h"
00014
00015
00016
00023 typedef struct{
00024 s8 n;
00025 u8 first, last;
00026 u8 free[128];
00027 u8 touched;
00028 u8 *image[4];
00029 } PAPI_all;
00030
00031 typedef struct{
00032 bool *var;
00033 bool value;
00034 s16 x, y;
00035 s8 previous, next;
00036 } PAPI_checks;
00037
00038 extern PAPI_checks PAPI_check[2][32];
00039 extern PAPI_all PAPI_checkinfo[2];
00040
00041 typedef struct{
00042 fp funct;
00043 char text[20];
00044 s8 textsize;
00045 u8 color;
00046 s16 x, y, lx, ly;
00047 s8 previous, next;
00048 } PAPI_buttons;
00049
00050 typedef struct{
00051 s32* var;
00052 s32 value;
00053 bool sens;
00054 s32 min, max;
00055 s16 x, y, lx;
00056 s8 previous, next;
00057 } PAPI_sliders;
00058
00059 extern PAPI_buttons PAPI_button[2][64];
00060 extern PAPI_all PAPI_buttoninfo[2];
00061
00062
00063
00064
00065
00074 void PAPI_Init(bool screen);
00075
00076
00091 void PAPI_SetImages(bool screen, void *images, void *palette);
00092
00101 void PAPI_ReInit(bool screen);
00102
00111 void PAPI_LoadPal(bool screen);
00112
00113
00131 u8 PAPI_CreateCheck(bool screen, s16 x, s16 y, bool *var);
00132
00133
00134
00135
00141 void PAPI_CheckCheck(void);
00142
00143
00144
00177 u8 PAPI_CreateButton(bool screen, s16 x, s16 y, s16 lx, s16 ly, fp funct, char* text, u8 color, s8 textsize);
00178
00184 void PAPI_CheckButton(void);
00185
00186
00187
00188
00190
00191
00192
00193 #endif
00194
00195