#include "files.h"
#include "network.h"
#include "netserv.h"
+#include "cartoons.h"
+#include "config.h"
static char *image_filename[NUM_PICTURES] =
{
"RocksFont3.pcx"
};
-static void InitPlayerInfo(void);
static void InitSetup(void);
+static void InitPlayerInfo(void);
static void InitLevelInfo(void);
+static void InitArtworkInfo(void);
static void InitNetworkServer(void);
static void InitSound(void);
static void InitGfx(void);
-static void InitCustomGraphics(void);
static void InitGfxBackground(void);
static void InitGadgets(void);
static void InitElementProperties(void);
}
InitProgramInfo(UNIX_USERDATA_DIRECTORY,
- PROGRAM_TITLE_STRING, WINDOW_TITLE_STRING,
+ PROGRAM_TITLE_STRING, getWindowTitleString(),
ICON_TITLE_STRING, X11_ICON_FILENAME, X11_ICONMASK_FILENAME,
MSDOS_POINTER_FILENAME,
COOKIE_PREFIX, FILENAME_PREFIX, GAME_VERSION_ACTUAL);
InitEventFilter(FilterMouseMotionEvents);
+ InitArtworkInfo();
InitGfx();
InitElementProperties(); /* initializes IS_CHAR() for el2gfx() */
InitLevelInfo();
InitGadgets(); /* needs to know number of level series */
- InitCustomGraphics();
-
InitGfxBackground();
+ InitToons();
+
DrawMainMenu();
InitNetworkServer();
LoadLevelSetup_SeriesInfo(); /* last played level info */
}
+void InitArtworkInfo()
+{
+ LoadArtworkInfo();
+}
+
void InitNetworkServer()
{
#if defined(PLATFORM_UNIX)
InitTileClipmasks();
}
-void LoadCustomGraphics()
-{
-#if 0
- int i;
-
- for(i=0; i<NUM_PICTURES; i++)
- {
- Bitmap *new_pic =
- pix_custom[i] = LoadImage(image_filename[i]);
- }
-#endif
-}
-
-void InitCustomGraphics()
-{
-#if 0
- static char *filename = NULL;
-
- /* look for optional directory ~/.<program>/graphics */
- filename = getPath2(getUserDataDir(), GRAPHICS_DIRECTORY);
- if (access(dir, F_OK) == 0)
- {
- }
-
-
-
-
-(leveldir_current->user_defined ?
- getUserLevelDir("") :
- options.level_directory),
- leveldir_current->fullpath,
- basename);
-
-
-
- filename = getPath3((leveldir_current->user_defined ?
- getUserLevelDir("") :
- options.level_directory),
- leveldir_current->fullpath,
- basename);
-#endif
-}
-
void InitGfxBackground()
{
int x, y;