+2007-04-03
+ * added new pseudo game mode "PANEL" to define panel fonts and graphics
+ - panel fonts now use ".PANEL" suffix instead of ".PLAYING" suffix
+ - panel graphics now use ".PANEL" suffix instead of ".DOOR" suffix
+ (else graphics would have to use ".PLAYING", which would be confusing)
+
2007-04-02
* added attribute ".tile_size" for element style game panel controls
IMG_FONT_TEXT_1_ACTIVE_SCORES
},
{
- FONT_TEXT_1, GFX_SPECIAL_ARG_PLAYING,
- IMG_FONT_TEXT_1_PLAYING
+ FONT_TEXT_1, GFX_SPECIAL_ARG_PANEL,
+ IMG_FONT_TEXT_1_PANEL
},
{
FONT_TEXT_1, GFX_SPECIAL_ARG_DOOR,
{ "font.text_1.active.SCORES.y", "0" },
{ "font.text_1.active.SCORES.width", "16" },
{ "font.text_1.active.SCORES.height", "32" },
- { "font.text_1.PLAYING", UNDEFINED_FILENAME },
- { "font.text_1.PLAYING.clone_from", "font.level_number" },
+ { "font.text_1.PANEL", UNDEFINED_FILENAME },
+ { "font.text_1.PANEL.clone_from", "font.level_number" },
{ "font.text_1.DOOR", UNDEFINED_FILENAME },
{ "font.text_1.DOOR.clone_from", "font.level_number" },
{ "font.text_2", "RocksFontSmall.pcx" },
#define IMG_FONT_TEXT_1_PREVIEW 1663
#define IMG_FONT_TEXT_1_SCORES 1664
#define IMG_FONT_TEXT_1_ACTIVE_SCORES 1665
-#define IMG_FONT_TEXT_1_PLAYING 1666
+#define IMG_FONT_TEXT_1_PANEL 1666
#define IMG_FONT_TEXT_1_DOOR 1667
#define IMG_FONT_TEXT_2 1668
#define IMG_FONT_TEXT_2_MAIN 1669
-#define COMPILE_DATE_STRING "2007-04-03 01:38"
+#define COMPILE_DATE_STRING "2007-04-03 19:40"
{
int i;
+ game_status = GAME_MODE_PSEUDO_PANEL;
+
for (i = 0; game_controls[i].nr != -1; i++)
{
int nr = game_controls[i].nr;
}
else
{
- int graphic = el2doorimg(value);
+ int graphic = el2panelimg(value);
DrawSizedGraphicExt(drawto, dst_x, dst_y, graphic, size);
}
redraw_mask |= REDRAW_DOOR_1;
}
+
+ game_status = GAME_MODE_PLAYING;
}
void DrawGameValue_Emeralds(int value)
{ ".SETUP", GFX_SPECIAL_ARG_SETUP, },
{ ".PLAYING", GFX_SPECIAL_ARG_PLAYING, },
{ ".DOOR", GFX_SPECIAL_ARG_DOOR, },
+ { ".PANEL", GFX_SPECIAL_ARG_PANEL, },
{ ".PREVIEW", GFX_SPECIAL_ARG_PREVIEW, },
{ ".CRUMBLED", GFX_SPECIAL_ARG_CRUMBLED, },
#define GFX_SPECIAL_ARG_SETUP 8
#define GFX_SPECIAL_ARG_PLAYING 9
#define GFX_SPECIAL_ARG_DOOR 10
-#define GFX_SPECIAL_ARG_PREVIEW 11
-#define GFX_SPECIAL_ARG_CRUMBLED 12
+#define GFX_SPECIAL_ARG_PANEL 11
+#define GFX_SPECIAL_ARG_PREVIEW 12
+#define GFX_SPECIAL_ARG_CRUMBLED 13
-#define NUM_SPECIAL_GFX_ARGS 13
+#define NUM_SPECIAL_GFX_ARGS 14
/* these additional definitions are currently only used for draw offsets */
#define GFX_SPECIAL_ARG_INFO_MAIN 0
#define GAME_MODE_SETUP 8
#define GAME_MODE_PLAYING 9
#define GAME_MODE_PSEUDO_DOOR 10
-#define GAME_MODE_PSEUDO_PREVIEW 11
-#define GAME_MODE_PSEUDO_CRUMBLED 12
+#define GAME_MODE_PSEUDO_PANEL 11
+#define GAME_MODE_PSEUDO_PREVIEW 12
+#define GAME_MODE_PSEUDO_CRUMBLED 13
/* there are no special config file suffixes for these modes */
-#define GAME_MODE_PSEUDO_TYPENAME 13
-#define GAME_MODE_QUIT 14
+#define GAME_MODE_PSEUDO_TYPENAME 14
+#define GAME_MODE_QUIT 15
/* special definitions currently only used for custom artwork configuration */
#define MUSIC_PREFIX_BACKGROUND 0
return element_info[element].special_graphic[GFX_SPECIAL_ARG_PREVIEW];
}
-int el2doorimg(int element)
+int el2panelimg(int element)
{
element = GFX_ELEMENT(element);
- return element_info[element].special_graphic[GFX_SPECIAL_ARG_DOOR];
+ return element_info[element].special_graphic[GFX_SPECIAL_ARG_PANEL];
}
int font2baseimg(int font_nr)
int el2img(int);
int el2edimg(int);
int el2preimg(int);
-int el2doorimg(int);
+int el2panelimg(int);
int font2baseimg(int);
int getBeltNrFromBeltElement(int);