image_files = getCurrentImageList();
- printf("--> %d\n", image_files[0].parameter[2]);
+ printf("D> %d\n", image_files[GFX_BD_DIAMOND].parameter[GFXARG_NUM_FRAMES]);
+ printf("W> %d\n", image_files[GFX_ROBOT_WHEEL].parameter[GFXARG_NUM_FRAMES]);
for(i=0; i<MAX_GRAPHICS; i++)
{
getGraphicSource(i, &graphic_info[i].bitmap,
&graphic_info[i].src_x, &graphic_info[i].src_y);
}
+
+#if 1
+ graphic_info[GFX_ABLENK].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK].src_x = 0;
+ graphic_info[GFX_ABLENK].src_y = 0;
+
+ graphic_info[GFX_ABLENK + 1].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK + 2].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK + 3].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK + 1].src_x = 1 * TILEX;
+ graphic_info[GFX_ABLENK + 2].src_x = 2 * TILEX;
+ graphic_info[GFX_ABLENK + 3].src_x = 3 * TILEX;
+ graphic_info[GFX_ABLENK + 1].src_y = 0;
+ graphic_info[GFX_ABLENK + 2].src_y = 0;
+ graphic_info[GFX_ABLENK + 3].src_y = 0;
+#endif
}
static void InitSoundInfo()
return image_info->file_list;
}
+Bitmap *getBitmapFromImageID(int graphic)
+{
+ ImageInfo **img_info = (ImageInfo **)image_info->artwork_list;
+
+ return img_info[graphic]->bitmap;
+}
+
void InitImageList(struct ConfigInfo *config_list,
struct ConfigInfo *config_suffix_list,
int num_file_list_entries)
struct FileInfo *getCurrentImageList();
+Bitmap *getBitmapFromImageID(int);
void InitImageList(struct ConfigInfo *, struct ConfigInfo *, int);
void ReloadCustomImages();
void FreeAllImages();
#define NUM_SOUNDS 55
+/* values for image configuration suffixes */
+#define GFXARG_FRAME_XPOS 0
+#define GFXARG_FRAME_YPOS 1
+#define GFXARG_NUM_FRAMES 2
+
/* values for image configuration */
#define GFX_BD_DIAMOND 0
#define GFX_ROBOT_WHEEL 1
#define NUM_IMAGE_FILES 2
+/* values for sound configuration suffixes */
+/* (currently none) */
/* values for sound configuration */
#define SND_BD_EMPTY_SPACE_DIGGING 0