Moved GUI skin files to "skins/" sub-directory.

Update makefile (install and uninstall only copy and delete the basic skin)
Added Ilkke's GUI skin to svn.
Skin can be specified by command-line argument "/skin <file>" (relative to program data).
Grafx2's default FG and BG colors are now white and black (instead of 15 and 0).
Credits: Fixed a typo caused by mass translation ("GRAFX2 CREATED (by)").
Credits: Added TeeEmCe to bugfinders.
Updated helpfiles (Resolution, Save, Freehand-draw)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@707 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-03-30 23:50:40 +00:00
parent 14a08f35dc
commit 927fafacbe
7 changed files with 1691 additions and 1650 deletions

7
init.c
View File

@@ -235,7 +235,7 @@ void Center_GUI_cursor(byte *cursor_buffer, int cursor_number)
GFX_cursor_sprite[cursor_number][y][x]=cursor_buffer[(start_y+y)*29+start_x+x];
}
void Load_DAT(void)
void Load_graphics(const char * skin_file)
{
int index;
char filename[MAX_PATH_CHARACTERS];
@@ -253,7 +253,8 @@ void Load_DAT(void)
// Lecture du fichier "skin"
strcpy(filename,Repertoire_des_donnees);
strcat(filename,"gfx2gui.gif");
strcat(filename,skin_file);
gui=IMG_Load(filename);
if (!gui)
{
@@ -374,7 +375,7 @@ void Load_DAT(void)
else
GUI_seek_right(gui, &cursor_x, cursor_y, neutral_color, "mouse cursor");
Read_GUI_block(gui, cursor_x, cursor_y, mouse_cursor_area, 29, 29, "mouse cursor",1);
Center_GUI_cursor(mouse_cursor_area,i);
Center_GUI_cursor((byte *)mouse_cursor_area,i);
cursor_x+=29;
}
cursor_y+=29;