Remove the Edit Saved Item Rectangles menu item in favour of a toolbar button.

The limit of 3 saved item rectangles has been removed - you can now add as many as you want.
However, the 1 per town limit is now strictly enforced.

The saved item rectangle is now shown with a cyan border when editing town.
This commit is contained in:
2025-03-02 15:19:56 -05:00
committed by Celtic Minstrel
parent c60d151ed3
commit a1bc923de8
30 changed files with 103 additions and 205 deletions

View File

@@ -100,14 +100,9 @@ TEST_CASE("Converting legacy scenario data") {
CHECK(scen.special_items[1].special == -1);
}
SECTION("With item storage rects") {
REQUIRE(scen.store_item_rects.size() >= 3);
REQUIRE(scen.store_item_towns.size() >= 3);
CHECK(scen.store_item_rects[0] == rect(1,2,3,4));
CHECK(scen.store_item_towns[0] == 0);
CHECK(scen.store_item_rects[1] == rect(2,4,6,8));
CHECK(scen.store_item_towns[1] == 1);
CHECK(scen.store_item_rects[2] == rect(1,8,2,9));
CHECK(scen.store_item_towns[2] == 2);
}
SECTION("With item storage shortcuts") {
REQUIRE(scen.storage_shortcuts.size() >= 1);