Add item-monster selection palette which fills the same space as the terrain palette

- Removed the item/monster menus in the scenario editor (they weren't function anyway)
- Scrollbars can now have a maximum value of 0; if this is the case, they do not draw a thumb
This commit is contained in:
2015-06-01 18:59:24 -04:00
parent 72add651a5
commit 7e4eabf198
12 changed files with 285 additions and 478 deletions

View File

@@ -205,7 +205,6 @@ void handle_menu_choice(eMenu item_hit) {
current_terrain = scenario.outdoors[cur_out.x][cur_out.y];
overall_mode = MODE_MAIN_SCREEN;
change_made = false;
update_item_menu();
set_up_main_screen();
}
break;
@@ -497,22 +496,6 @@ void handle_menu_choice(eMenu item_hit) {
cChoiceDlog(helpDlog).show();
}
void handle_item_menu(int item_hit) {
if(scenario.scen_items[item_hit].variety == eItemType::NO_ITEM) {
giveError("This item has its Variety set to No Item. You can only place items with a Variety set to an actual item type.");
return;
}
overall_mode = MODE_PLACE_ITEM;
set_string("Place the item.","Select item location");
mode_count = item_hit;
}
void handle_monst_menu(int item_hit) {
overall_mode = MODE_PLACE_CREATURE;
set_string("Place the monster.","Select monster location");
mode_count = item_hit;
}
static void handleUpdateWhileScrolling(volatile bool& doneScrolling) {
while(!doneScrolling) {
sf::sleep(sf::milliseconds(10));