Blades of Exile Win32 Character Editor v1.0.0 release.

Changelog :
- The character editor now search the right help file.
- If sounds are desactivated in the game, they will now be desactivated in the character editor as well.
- Reorganised menus.
- Implemented a "Save as" option. "Save" now overwrite the loaded file.

git-svn-id: http://openexile.googlecode.com/svn/trunk@40 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
Chokboyz
2009-04-28 01:24:27 +00:00
parent ec2fb7f44f
commit 9ed2738f6c
5 changed files with 25 additions and 14 deletions

View File

@@ -67,7 +67,6 @@ RECT pc_traits_rect[16]; //Holds pc traits
RECT pc_race_rect; //Holds current pc's race
RECT edit_rect[5][2]; //Buttons that bring up pc edit dialog boxs
Boolean game_run_before = TRUE;
short store_flags[3];
char town_strs[180][256];
@@ -105,7 +104,6 @@ location store_choice_loc;
short town_size[3] = {64,48,24};
short which_item_page[6] = {0,0,0,0,0,0}; // Remembers which of the 2 item pages pc looked at
//short display_mode = 0; // 0 - center 1- ul 2 - ur 3 - dl 4 - dr 5 - small win
short pixel_depth,dialog_answer;
@@ -193,6 +191,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR, int nCm
store_hInstance = hInstance;
accel = LoadAccelerators(hInstance, MAKEINTRESOURCE(1));
get_reg_data();
load_cursors();
seed = (short) GetCurrentTime();
srand(seed);
@@ -353,7 +353,7 @@ Boolean handle_menu (short item, HMENU)
item_record_type store_i;
if ((file_in_mem == FALSE) && ((item == 1) ||
if ((file_in_mem == FALSE) && ((item == 1) || (item == 3) ||
(item >= 40)) && (item != 200) && (item != 100)) {
display_strings(20,5,0,0,"Editing party",57,707,0);
item = -1;
@@ -369,6 +369,9 @@ Boolean handle_menu (short item, HMENU)
load_file();
update_item_menu(item_menus_lock);
break;
case 3:
save_file(1);
break;
case 4:
All_Done = verify_restore_quit(0);
break;
@@ -503,7 +506,7 @@ Boolean handle_menu (short item, HMENU)
town_maps.town_maps[i][j][k] = 255;
break;
case 100: // index
WinHelp(mainPtr,"bladhelp.hlp",HELP_CONTENTS,0L);
WinHelp(mainPtr,"Blades of Exile.hlp",HELP_CONTENTS,0L);
break;
case 200: // about
FCD(1062,0);

View File

@@ -24,6 +24,7 @@ Exile MENU
{
MENUITEM "&Open Game\tCtrl+O", 2
MENUITEM "&Save Game\tCtrl+S", 1
MENUITEM "Save As...", 3
MENUITEM SEPARATOR
MENUITEM "&Quit\tCtrl+Q", 4
}
@@ -747,7 +748,7 @@ STYLE WS_POPUP | WS_DLGFRAME
{
LTEXT "1_63", 1, 434, 268, 61, 20
LTEXT "5_716", 2, 6, 6, 36, 36
LTEXT "Classic Blades of Exile Character Editor Beta 2 |Released under the GNU General Public License, version 2.", 3, 50, 6, 358, 34
LTEXT "Classic Blades of Exile Character Editor v1.0.0 |Released under the GNU General Public License, version 2.", 3, 50, 6, 358, 34
LTEXT "Comments and questions? Feel free to express yourself on the Irony Central Board: http://www.ironycentral.com/forum/", 5, 50, 178, 354, 32
LTEXT "Spiderweb Software web page: http://www.spidweb.com", 6, 60, 211, 354, 53
LTEXT "The Blades of Exile Editor was originally created by Spiderweb Software - _Where our aberrations become your reality._ ||_Blades of Exile_ and Spiderweb Software are trademarks of Spiderweb Software.", 7, 50, 91, 410, 51

View File

@@ -13,4 +13,9 @@ That also fixes the stored items arrays being filled with items from current tow
- If in a scenario, the editor nows display the name of the town the party is in or if they are outdoor.
- Giving PC items from a Mac made scenario doesn't crash the game anymore (overall Mac scenario support added)
- Cleaned the ressource file. The executable is now smaller.
- On give items : the editor now tries to load the bladbase.exs file if the scenario file is not found. If can't locate the bladbase, the items menus are grayed.
- On give items : the editor now tries to load the bladbase.exs file if the scenario file is not found. If can't locate the bladbase, the items menus are grayed.
Version 1.0 :
- The character editor now search the right help file.
- If sounds are desactivated in the game, they will now be desactivated in the character editor as well.
- Reorganised menus.
- Implemented a "Save as" option. "Save" now overwrite the loaded file.

View File

@@ -52,8 +52,6 @@ OPENFILENAME ofn;
extern stored_town_maps_type town_maps;
extern char town_strs[180][256];
short give_intro_hint = 1;
short display_mode = 0;
short store_size;
@@ -739,7 +737,6 @@ void save_file(short mode)
Boolean town_save = FALSE,in_scen = FALSE,save_maps = FALSE;
mode = 1;
if (file_in_mem == FALSE)
return;
@@ -1194,10 +1191,15 @@ void remove_party_from_scen()
party_in_scen = FALSE;
}
void build_data_file(short mode) // to do be rewrite to use ini file
//mode; // 0 - make first time file 1 - customize 2 - new write
{
return;
void get_reg_data()
{
const int BUFFER_LEN = 64;
char buffer[BUFFER_LEN];
const char * iniFile = "./blades.ini";
const char * section = "Blades of Exile";
GetPrivateProfileString(section, "play_sounds", "1", buffer, BUFFER_LEN, iniFile);
play_sounds = (atoi(buffer))? TRUE : FALSE;
}
//Mac porting stuff

View File

@@ -2,7 +2,7 @@ void file_initialize();
void save_file(short mode);
void load_file();
void leave_town();
void build_data_file(short mode);
void get_reg_data();
void remove_party_from_scen();
void Get_Path(char* path);
short load_items_list();