Commited for Ishad Nha:

Changes for this version of the Blades of Exile 2009 Scenario Editor:

Fixed message about deleting towns when you want to create Scenario Text.txt.
I updated the Editor to include an outdoor zone report. 
I added the four scenario flags to the Scenario Object Report, because they reveal whether a scenario is Mac or Windows. Reports may crash if the scenario is Mac.
I introduced the repeat print of last file, it automatically prints a new version of the last report file to be printed. It is activated by Ctrl + P and accompanied by a message in the text area. 
Town report now lists all special nodes and dialog nodes. along with the relevant text messages. Irrelevant lines have been removed. The special nodes listings can be extended to scenario and outdoor reports.
Scenario and town timers have been added to reports.
Tables have been included in scenario, outdoor and town reports showing the lengths of the relevant strings. (For some reason the last 40 outdoor strings caused a crash of the Editor.)
Now all three types of report show the full details for special nodes.
Ctrl + (Number) shortcuts have been introduced for Town and Outdoor menus.
Area Rectangles now show the lower right coordinates too.
All menus now have hot keys for each item.


git-svn-id: http://openexile.googlecode.com/svn/trunk@133 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
Sylae Corell
2009-10-28 19:23:13 +00:00
parent 5ebbe14d6f
commit 54c5886fbf
11 changed files with 1610 additions and 713 deletions

View File

@@ -85,7 +85,7 @@ Boolean editing_town = FALSE;
short town_type = 0; // 0 - big 1 - ave 2 - small
char szWinName[] = "BoE for Win32 dialogs";
char szAppName[] = "Classic BoE Scenario Editor";
short last_file_printed = 0;
char szBladBase[128];
void loadSettingsFromFile()
@@ -602,32 +602,50 @@ Boolean handle_menu (short item, HMENU menu)
delete_last_town();
break;
case 119:
if (fancy_choice_dialog(866,0) == 1)
if (fancy_choice_dialog(866,0) == 1) {
last_file_printed = 0;
start_data_dump();
}
break;
case 120:
if (change_made == TRUE) {
give_error("You need to save the changes made to your scenario before you can delete a town.",
give_error("You need to save the changes made to your scenario before you can print the file Scenario Text.",
"",0);
return to_return;
}
if (fancy_choice_dialog(871,0) == 1)
if (fancy_choice_dialog(871,0) == 1) {
last_file_printed = 1;
scen_text_dump();
redraw_screen();
}
break;
case 121:
if (fancy_choice_dialog(867,0) == 1)
if (fancy_choice_dialog(867,0) == 1) {
last_file_printed = 2;
start_shopping_data_dump();
}
break;
case 122:
if (fancy_choice_dialog(868,0) == 1)
if (fancy_choice_dialog(868,0) == 1) {
last_file_printed = 3;
start_monst_data_dump();
}
break;
case 123:
if (fancy_choice_dialog(890,0) == 1)
start_spec_data_dump();
break;
case 123:
if (fancy_choice_dialog(890,0) == 1) {
last_file_printed = 4;
start_spec_data_dump();
}
break;
case 124:
if (fancy_choice_dialog(878,0) == 1) {
last_file_printed = 7;
object_scenario_data_dump();
}
break;
// Town Menu
case 201: edit_town_details(); break;
case 202: edit_town_wand(); break;
@@ -708,9 +726,16 @@ Boolean handle_menu (short item, HMENU menu)
}
break;
case 221: if (fancy_choice_dialog(877,0) == 1) // make concise town report
start_town_data_dump();
case 221: if (fancy_choice_dialog(877,0) == 1) { // make concise town report
last_file_printed = 5;
start_town_data_dump();
}
break;
case 222:
start_dialogue_editing(0);
break;
// Outdoor Menu
case 301: outdoor_details(); break;
@@ -741,6 +766,13 @@ Boolean handle_menu (short item, HMENU menu)
start_string_editing(1,0); break;
break;
case 313:
if (fancy_choice_dialog(879,0) == 1) {
last_file_printed = 6;
start_outdoor_data_dump();
}
break;
case 401:
start_town_edit();
break;
@@ -857,7 +889,7 @@ Boolean handle_menu (short item, HMENU menu)
}
break;
case 411:
case 411: // MENUITEM "Terrain Animations Play", 411
HMENU menu,big_menu;
big_menu = GetMenu(mainPtr);
@@ -909,11 +941,40 @@ Boolean handle_menu (short item, HMENU menu)
start_out_edit();
break;
case 414:
if (fancy_choice_dialog(878,0) == 1)
object_scenario_data_dump();
break;
case 414: // Repeat print of last file printed
if (last_file_printed == 0) {
set_string("File Repeat Printing:","Scenario Data");
start_data_dump();
}
if (last_file_printed == 1) {
set_string("File Repeat Printing:","Scenario Text");
scen_text_dump();
}
if (last_file_printed == 2) {
set_string("File Repeat Printing:","Scenario Shopping");
start_shopping_data_dump();
}
if (last_file_printed == 3) {
set_string("File Repeat Printing:","Monstdata");
start_monst_data_dump();
}
if (last_file_printed == 4) {
set_string("File Repeat Printing:","Specdata");
start_spec_data_dump();
}
if (last_file_printed == 5) {
set_string("File Repeat Printing:","Concise Town Report");
start_town_data_dump();
}
if (last_file_printed == 6) {
set_string("File Repeat Printing:","Concise Outdoor Report");
start_outdoor_data_dump();
}
if (last_file_printed == 7) {
set_string("File Repeat Printing:","Scenario Object Data");
object_scenario_data_dump();
}
break;
// Extra Help
case 801: // help file