{ "background.default", UNDEFINED_FILENAME },
{ "background.door", UNDEFINED_FILENAME },
+ { "background.main", UNDEFINED_FILENAME },
+ { "background.level_series", UNDEFINED_FILENAME },
+ { "background.hall_of_fame", UNDEFINED_FILENAME },
+ { "background.editor_settings_level", UNDEFINED_FILENAME },
+ { "background.editor_settings_element", UNDEFINED_FILENAME },
+ { "background.info", UNDEFINED_FILENAME },
+ { "background.setup", UNDEFINED_FILENAME },
{ "info.font_em_1", "RocksFontEM.pcx" },
{ "info.font_em_1.xpos", "0" },
#define IMG_FONT_EM 742
#define IMG_BACKGROUND_DEFAULT 743
#define IMG_BACKGROUND_DOOR 744
-#define IMG_INFO_FONT_EM_1 745
-#define IMG_INFO_FONT_EM_2 746
-#define IMG_INFO_FONT_EM_3 747
-#define IMG_INFO_FONT_EM_4 748
-#define IMG_INFO_FONT_EM_5 749
+#define IMG_BACKGROUND_MAIN 745
+#define IMG_BACKGROUND_LEVEL_SERIES 746
+#define IMG_BACKGROUND_HALL_OF_FAME 747
+#define IMG_BACKGROUND_EDITOR_SETTINGS_LEVEL 748
+#define IMG_BACKGROUND_EDITOR_SETTINGS_ELEMENT 749
+#define IMG_BACKGROUND_INFO 750
+#define IMG_BACKGROUND_SETUP 751
+#define IMG_INFO_FONT_EM_1 752
+#define IMG_INFO_FONT_EM_2 753
+#define IMG_INFO_FONT_EM_3 754
+#define IMG_INFO_FONT_EM_4 755
+#define IMG_INFO_FONT_EM_5 756
-#define NUM_IMAGE_FILES 750
+#define NUM_IMAGE_FILES 757
#endif /* CONF_GFX_H */
-#define COMPILE_DATE_STRING "[2003-01-06 03:26]"
+#define COMPILE_DATE_STRING "[2003-01-07 02:39]"
static void DrawDrawingWindow()
{
- SetMainBackgroundBitmap(NULL);
+ SetMainBackgroundImage(IMG_NONE);
ClearWindow();
UnmapLevelEditorWindowGadgets();
int font_color = FC_GREEN;
int i, x, y;
- SetMainBackgroundBitmap(new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
+ SetMainBackgroundImage(IMG_BACKGROUND_EDITOR_SETTINGS_LEVEL);
ClearWindow();
UnmapLevelEditorWindowGadgets();
{ -1, NULL, NULL }
};
- SetMainBackgroundBitmap(new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
+ SetMainBackgroundImage(IMG_BACKGROUND_EDITOR_SETTINGS_ELEMENT);
ClearWindow();
UnmapLevelEditorWindowGadgets();
new_graphic_info[IMG_FONT_SMALL].bitmap,
new_graphic_info[IMG_FONT_EM].bitmap);
- SetMainBackgroundBitmap(new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
- SetDoorBackgroundBitmap(new_graphic_info[IMG_BACKGROUND_DOOR].bitmap ?
- new_graphic_info[IMG_BACKGROUND_DOOR].bitmap :
- new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
+ SetMainBackgroundImage(IMG_BACKGROUND_DEFAULT);
+ SetDoorBackgroundImage(IMG_BACKGROUND_DOOR);
InitGadgets();
InitToons();
int width, int height)
{
if (DrawingOnBackground(x, y))
- BlitBitmap(gfx.background_bitmap, bitmap,
- x - gfx.real_sx, y - gfx.real_sy, width, height, x, y);
+ BlitBitmap(gfx.background_bitmap, bitmap, x, y, width, height, x, y);
else
ClearRectangle(bitmap, x, y, width, height);
}
else if (mask_mode == FONT_MASKED)
{
/* clear font character background */
- BlitBitmap(gfx.background_bitmap, bitmap,
- dest_x - gfx.real_sx, dest_y - gfx.real_sy,
- font_width, font_height, dest_x, dest_y);
+ ClearRectangleOnBackground(bitmap, dest_x, dest_y,
+ font_width, font_height);
#if defined(TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND)
/* use special font tile clipmasks, if available */
#include "conf_gfx.h"
#include "conf_snd.h"
+#define IMG_NONE (-1)
#define IMG_EMPTY IMG_EMPTY_SPACE
#define IMG_SP_EMPTY IMG_SP_EMPTY_SPACE
#define IMG_CHAR_START IMG_CHAR_SPACE
GetPlayerConfig();
LoadLevel(level_nr);
- SetMainBackgroundBitmap(new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
+ SetMainBackgroundImage(IMG_BACKGROUND_MAIN);
ClearWindow();
DrawHeadline();
int xstart = SX + 56, ystart = SY + 65 + 2 * 32, ystep = TILEY + 4;
int ybottom = SYSIZE - 20;
+ SetMainBackgroundImage(IMG_BACKGROUND_INFO);
ClearWindow();
DrawHeadline();
helpscreen_step[i] = helpscreen_frame[i] = 0;
helpscreen_musicpos = 0;
helpscreen_state = 0;
+
DrawHelpScreenElText(0);
DrawHelpScreenElAction(0);
CloseDoor(DOOR_CLOSE_2);
ClearWindow();
+
HandleChooseTree(0,0, 0,0, MB_MENU_INITIALIZE, ti_ptr);
MapChooseTreeGadgets(*ti_ptr);
void DrawChooseLevel()
{
+ SetMainBackgroundImage(IMG_BACKGROUND_LEVEL_SERIES);
+
DrawChooseTree(&leveldir_current);
}
{
int i;
+ SetMainBackgroundImage(IMG_BACKGROUND_HALL_OF_FAME);
ClearWindow();
+
DrawText(SX + 80, SY + 8, "Hall Of Fame", FS_BIG, FC_YELLOW);
DrawTextFCentered(46, FC_RED, "HighScores of Level %d", level_nr);
UnmapAllGadgets();
CloseDoor(DOOR_CLOSE_2);
+
ClearWindow();
if (setup_mode == SETUP_MODE_MAIN)
void DrawSetupScreen_Input()
{
ClearWindow();
+
DrawText(SX+16, SY+16, "Setup Input", FS_BIG, FC_YELLOW);
initCursor(0, IMG_BALL_BLUE);
{
DeactivateJoystick();
+ SetMainBackgroundImage(IMG_BACKGROUND_SETUP);
+
if (setup_mode == SETUP_MODE_INPUT)
DrawSetupScreen_Input();
else if (setup_mode == SETUP_MODE_CHOOSE_GRAPHICS)
BackToFront();
}
+void SetMainBackgroundImage(int graphic)
+{
+ SetMainBackgroundBitmap(graphic == IMG_NONE ? NULL :
+ new_graphic_info[graphic].bitmap ?
+ new_graphic_info[graphic].bitmap :
+ new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
+}
+
+void SetDoorBackgroundImage(int graphic)
+{
+ SetDoorBackgroundBitmap(graphic == IMG_NONE ? NULL :
+ new_graphic_info[graphic].bitmap ?
+ new_graphic_info[graphic].bitmap :
+ new_graphic_info[IMG_BACKGROUND_DEFAULT].bitmap);
+}
+
void DrawBackground(int dest_x, int dest_y, int width, int height)
{
- if (DrawingOnBackground(dest_x, dest_y) && game_status != PLAYING)
- BlitBitmap(gfx.background_bitmap, backbuffer, dest_x, dest_y,
- width, height, dest_x, dest_y);
- else
- ClearRectangle(backbuffer, dest_x, dest_y, width, height);
+ ClearRectangleOnBackground(backbuffer, dest_x, dest_y, width, height);
redraw_mask |= REDRAW_FIELD;
}
{
int x,y;
+ SetDrawBackgroundMask(REDRAW_NONE);
ClearWindow();
for(x=BX1; x<=BX2; x++)
void BackToFront();
void FadeToFront();
void ClearWindow();
+void SetMainBackgroundImage(int);
+void SetDoorBackgroundImage(int);
void DrawBackground(int, int, int, int);
void MarkTileDirty(int, int);