diff options
author | Arnaud Boutonné | 2011-01-03 16:15:52 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2011-01-03 16:15:52 +0000 |
commit | e670e698f1571fab1c21c0d09b5003c2772e58d1 (patch) | |
tree | 33ff08cc6bda6b5cf728a0851d578867be9c1274 /tools | |
parent | 3d2104460de2d3b836243e44b4f62749d45d5b25 (diff) | |
download | scummvm-rg350-e670e698f1571fab1c21c0d09b5003c2772e58d1.tar.gz scummvm-rg350-e670e698f1571fab1c21c0d09b5003c2772e58d1.tar.bz2 scummvm-rg350-e670e698f1571fab1c21c0d09b5003c2772e58d1.zip |
TOOLS: Add button bitmaps to create_hugo
svn-id: r55102
Diffstat (limited to 'tools')
21 files changed, 283 insertions, 1 deletions
diff --git a/tools/create_hugo/Data/Btn_1.bmp b/tools/create_hugo/Data/Btn_1.bmp Binary files differnew file mode 100644 index 0000000000..0cdfc91fd3 --- /dev/null +++ b/tools/create_hugo/Data/Btn_1.bmp diff --git a/tools/create_hugo/Data/Btn_1_off.bmp b/tools/create_hugo/Data/Btn_1_off.bmp Binary files differnew file mode 100644 index 0000000000..eb6146ac96 --- /dev/null +++ b/tools/create_hugo/Data/Btn_1_off.bmp diff --git a/tools/create_hugo/Data/Btn_2.bmp b/tools/create_hugo/Data/Btn_2.bmp Binary files differnew file mode 100644 index 0000000000..971c996b4d --- /dev/null +++ b/tools/create_hugo/Data/Btn_2.bmp diff --git a/tools/create_hugo/Data/Btn_2_off.bmp b/tools/create_hugo/Data/Btn_2_off.bmp Binary files differnew file mode 100644 index 0000000000..988c682b44 --- /dev/null +++ b/tools/create_hugo/Data/Btn_2_off.bmp diff --git a/tools/create_hugo/Data/Btn_3.bmp b/tools/create_hugo/Data/Btn_3.bmp Binary files differnew file mode 100644 index 0000000000..ac988d8a90 --- /dev/null +++ b/tools/create_hugo/Data/Btn_3.bmp diff --git a/tools/create_hugo/Data/Btn_3_off.bmp b/tools/create_hugo/Data/Btn_3_off.bmp Binary files differnew file mode 100644 index 0000000000..14df72666b --- /dev/null +++ b/tools/create_hugo/Data/Btn_3_off.bmp diff --git a/tools/create_hugo/Data/Btn_4.bmp b/tools/create_hugo/Data/Btn_4.bmp Binary files differnew file mode 100644 index 0000000000..ef47589044 --- /dev/null +++ b/tools/create_hugo/Data/Btn_4.bmp diff --git a/tools/create_hugo/Data/Btn_4_off.bmp b/tools/create_hugo/Data/Btn_4_off.bmp Binary files differnew file mode 100644 index 0000000000..d32f497d6c --- /dev/null +++ b/tools/create_hugo/Data/Btn_4_off.bmp diff --git a/tools/create_hugo/Data/Btn_5.bmp b/tools/create_hugo/Data/Btn_5.bmp Binary files differnew file mode 100644 index 0000000000..3eb03b20d6 --- /dev/null +++ b/tools/create_hugo/Data/Btn_5.bmp diff --git a/tools/create_hugo/Data/Btn_5_off.bmp b/tools/create_hugo/Data/Btn_5_off.bmp Binary files differnew file mode 100644 index 0000000000..6513ff2080 --- /dev/null +++ b/tools/create_hugo/Data/Btn_5_off.bmp diff --git a/tools/create_hugo/Data/Btn_6.bmp b/tools/create_hugo/Data/Btn_6.bmp Binary files differnew file mode 100644 index 0000000000..d53585dde7 --- /dev/null +++ b/tools/create_hugo/Data/Btn_6.bmp diff --git a/tools/create_hugo/Data/Btn_6_off.bmp b/tools/create_hugo/Data/Btn_6_off.bmp Binary files differnew file mode 100644 index 0000000000..8748fa0ff2 --- /dev/null +++ b/tools/create_hugo/Data/Btn_6_off.bmp diff --git a/tools/create_hugo/Data/Btn_7.bmp b/tools/create_hugo/Data/Btn_7.bmp Binary files differnew file mode 100644 index 0000000000..25ba757e93 --- /dev/null +++ b/tools/create_hugo/Data/Btn_7.bmp diff --git a/tools/create_hugo/Data/Btn_7_off.bmp b/tools/create_hugo/Data/Btn_7_off.bmp Binary files differnew file mode 100644 index 0000000000..6fe8cff904 --- /dev/null +++ b/tools/create_hugo/Data/Btn_7_off.bmp diff --git a/tools/create_hugo/Data/Btn_8.bmp b/tools/create_hugo/Data/Btn_8.bmp Binary files differnew file mode 100644 index 0000000000..d3a92fccac --- /dev/null +++ b/tools/create_hugo/Data/Btn_8.bmp diff --git a/tools/create_hugo/Data/Btn_8_off.bmp b/tools/create_hugo/Data/Btn_8_off.bmp Binary files differnew file mode 100644 index 0000000000..7fb40a42b4 --- /dev/null +++ b/tools/create_hugo/Data/Btn_8_off.bmp diff --git a/tools/create_hugo/Data/Btn_9.bmp b/tools/create_hugo/Data/Btn_9.bmp Binary files differnew file mode 100644 index 0000000000..6443649b20 --- /dev/null +++ b/tools/create_hugo/Data/Btn_9.bmp diff --git a/tools/create_hugo/Data/Btn_9_off.bmp b/tools/create_hugo/Data/Btn_9_off.bmp Binary files differnew file mode 100644 index 0000000000..a9ce9dcddb --- /dev/null +++ b/tools/create_hugo/Data/Btn_9_off.bmp diff --git a/tools/create_hugo/README b/tools/create_hugo/README new file mode 100644 index 0000000000..42bdd22c36 --- /dev/null +++ b/tools/create_hugo/README @@ -0,0 +1,7 @@ +This tool creates hugo.dat. +This file contains all the hardcoded strings, logic, fonts, and bitmaps and +is used by the engine depending on the version of the game started. + +In order to work properly, the content of the DATA sub-directory has to be +copy next to the executable. + diff --git a/tools/create_hugo/create_hugo.cpp b/tools/create_hugo/create_hugo.cpp index 7f4198704c..ea28cbd7d7 100644 --- a/tools/create_hugo/create_hugo.cpp +++ b/tools/create_hugo/create_hugo.cpp @@ -847,6 +847,281 @@ int main(int argc, char *argv[]) { for (int j = 0; j < nbrElem; j++) writeByte(outFile, font8[j]); + //bitmap images for menu + writeUint16BE(outFile, 18); + + FILE* src_file; + char buf[2]; + src_file = fopen("btn_1.bmp", "rb"); + if (src_file == NULL) { + perror("btn_1.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_1_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_1_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_2.bmp", "rb"); + if (src_file == NULL) { + perror("btn_2.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_2_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_2_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_3.bmp", "rb"); + if (src_file == NULL) { + perror("btn_3.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_3_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_3_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_4.bmp", "rb"); + if (src_file == NULL) { + perror("btn_4.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_4_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_4_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_5.bmp", "rb"); + if (src_file == NULL) { + perror("btn_5.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_5_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_5_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_6.bmp", "rb"); + if (src_file == NULL) { + perror("btn_6.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_6_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_6_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_7.bmp", "rb"); + if (src_file == NULL) { + perror("btn_7.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_7_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_7_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_8.bmp", "rb"); + if (src_file == NULL) { + perror("btn_8.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_8_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_8_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_9.bmp", "rb"); + if (src_file == NULL) { + perror("btn_9.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + + src_file = fopen("btn_9_off.bmp", "rb"); + if (src_file == NULL) { + perror("btn_9_off.bmp"); + return -1; + } + fseek(src_file , 0 , SEEK_END); + nbrElem = ftell(src_file); + writeUint16BE(outFile, nbrElem); + rewind(src_file); + for (int j = 0; j < nbrElem; j++) { + fread(buf, 1, 1, src_file); + writeByte(outFile, buf[0]); + } + fclose(src_file); + fclose(outFile); return 0; } diff --git a/tools/create_hugo/create_hugo.h b/tools/create_hugo/create_hugo.h index a2389b03cf..d0960d1166 100644 --- a/tools/create_hugo/create_hugo.h +++ b/tools/create_hugo/create_hugo.h @@ -31,7 +31,7 @@ #define DATAALIGNMENT 4 #define HUGO_DAT_VER_MAJ 0 // 1 byte -#define HUGO_DAT_VER_MIN 35 // 1 byte +#define HUGO_DAT_VER_MIN 36 // 1 byte typedef unsigned char uint8; typedef unsigned char byte; |