Commit Graph

153 Commits

Author SHA1 Message Date
109677ce29 undo/redo becomes unsafe after load new scenario, so clear it 2025-06-19 14:16:32 -05:00
a64a897a25 undo/redo for import outdoor section 2025-06-14 10:08:51 -05:00
978af61054 Safely import towns of different size. fix #760 2025-06-14 10:03:34 -05:00
3f8eed39c7 undo/redo import town 2025-06-14 09:17:32 -05:00
0e157cf434 scenario editor disable undo/redo when dialog is open.
fix #758
2025-06-13 09:13:46 -05:00
ac5a8eeb6a Fix copy/paste text in scenario editor for mac (#648) 2025-06-13 08:37:42 -05:00
92dc716c4d Make the rest of editing modes restorable 2025-06-12 12:40:09 -05:00
7b674ffb5c remove unused parameter from restore_editor_state()
I can't remember what it was for.
2025-06-12 09:51:19 -05:00
161dce6d25 any_items() -> any_preset_items() 2025-06-11 18:52:57 -05:00
4a8d58926a undo/redo setting all items not property 2025-06-11 17:46:38 -05:00
2cfe42b477 improve 'delete last town' error messages 2025-06-04 09:56:02 -05:00
bdf1b8a4a8 undo clear items 2025-06-04 09:56:00 -05:00
03c53588e8 undo/redo most tools that draw terrain 2025-06-04 09:55:57 -05:00
fb56cbf607 Editor search field for terrains, monsters, items in palette 2025-06-02 11:32:20 -05:00
744471b8c0 scenedit quick-open last scenario 2025-06-02 11:32:19 -05:00
829d55fb88 fix scenedit compilation 2025-05-19 21:41:13 -05:00
99b0c9a227 Fix scenario editor launch scenario feature run from .app
Fix #729
2025-05-19 21:41:10 -05:00
3ee36b6dbc highlight editor right button selected 2025-05-19 21:40:57 -05:00
813edf0c64 Fix test compile errors 2025-05-11 10:51:09 -05:00
39ed4eb1f3 while running, editor remember view states of towns and outdoors 2025-05-11 10:51:09 -05:00
21536fa1fa extract editor state vars in cScenario to a new struct 2025-05-11 10:51:08 -05:00
e95d4dcaf8 Write editor state to a new, separate xml file (fix #728) 2025-05-11 10:51:02 -05:00
06624d810c try to fix linker errors without new globals 2025-05-11 10:49:23 -05:00
6f2ae680de declare map_visible to make editors compile
Please forgive me
2025-05-11 10:49:23 -05:00
7cce42ce12 Scenario editor can launch unpacked scenario 2025-03-30 11:51:09 -05:00
2fd35b1053 Rework the scenario editor toolbars.
* The rightmost column is now mostly dedicated to non-modifying operations – eyedropper and zoom are moved there, pushing the 3 palette buttons down in town mode.
* Set Starting Location and Set Town Boundaries moved from the menus into the toolbar.
* Place Same Creature and Place Same Monster removed, since placing a monster or creature no longer resets the mode, so you can place as many of the same one as you like.
* Erase Town Entrance removed – what is it even good for? Removing the entrance without removing the town terrain is nonsensical. A town entrance can now be erased just by painting over it.
* Copy Item, Copy Monster, and Copy Terrain added. The latter copies a rectangle of terrain.
* Paste Special is removed. Instead there's a generic Paste button which pastes whatever type of thing you copied last, whether it be a special, a monster, an item, or even some terrain.
* Horse and boat no longer share a row with road. Instead, some of the fields have been reshuffled, so now fields take up three rows (though not three complete rows)
2025-03-16 14:09:05 -04:00
5cfc6ba328 Fix all the compile warnings that occur on Mac.
(Except the OpenGL deprecation warning and some warnings coming from Boost.Process.)
2025-03-08 20:43:04 -05:00
a1bc923de8 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.
2025-03-08 20:05:12 -05:00
Nathan R
598fd4836a Fixed up: Move file-static RenderWindow and RenderTexture instances inside functions to fix GL race condition on startup (#682) 2025-03-06 19:40:40 -05:00
9b4af4e69c Let individual dialogs toggle pict animations 2025-03-05 19:27:10 -05:00
9b05c23d15 Rework parentage and naming of dialog controls.
All controls now store a reference to their direct parent,
whether it be the dialog itself or a container control.

Every dialog control now has a guaranteed parent, which abstracts away
the three possible types of parents (dialog, container, and plain window).

The control name is now stored in the control from the moment it is parsed from the XML.
This means that it's set before the parseContent function, though after parseAttribute.
2025-03-02 19:13:01 -05:00
0afed5db59 A feature flag denotes whether a scenario uses the new or old format for its metadata. With the old format (legacy scenarios and openBoE scenarios created prior to this PR) everything displays in the scenario picker as before, and scenario designers get 2 text fields to display however they want, and 2 text fields that are pretty much useless.
With the new format, Author and Contact info are formatted onto the first line in the scenario picker display. The scenario designer gets 1 line to write a teaser.

Fix #593

Also fix a bug where scenario ratings were appearing as integers ingame instead of the correct "G", "PG", etc.
2025-03-02 01:09:03 -05:00
8cff2428a9 DRY advanced town help. Fix #611 2025-02-16 00:02:22 -05:00
1ac6aeda05 scenario editor warn about outdated help windows 2025-02-15 11:00:19 -06:00
c20dbbf88e DRY launch doc url 2025-02-07 09:51:45 -05:00
7b92779e13 make switching outdoor sections DRY 2025-01-21 14:35:31 -06:00
37640bf349 fix compiler warnings 2025-01-20 09:41:29 -05:00
1a2c0ed07b editor validate the debug party preference 2025-01-15 23:05:53 -05:00
5d1532afda all launch types can reset story 2025-01-15 23:05:53 -05:00
897047a566 use the exe-args format for child process 2025-01-15 23:05:53 -05:00
832ceffe8e launch from start: restart scenario if already in it 2025-01-15 23:05:53 -05:00
4eee43cd7e make eLaunchType enum class 2025-01-15 23:05:53 -05:00
fa2eb743f9 allow setting the debug party with file browser 2025-01-15 23:05:53 -05:00
5d56415299 pass debug party preference to launch command 2025-01-15 23:05:53 -05:00
491857d0f9 clear error when working directory is wrong 2025-01-15 23:05:53 -05:00
64980a80f0 fix compiler conditionals 2025-01-15 23:05:53 -05:00
9739ab2f61 add 2 more launch types 2025-01-15 23:05:53 -05:00
11767f553d more understandable prompt to save 2025-01-15 23:05:53 -05:00
89c0842ae3 wire up default party led, chosen party text field
The button to locate a party via the file browser is not yet
connected to an event
2025-01-15 23:05:53 -05:00
8590df65f8 error message when trying to launch from header.exs 2025-01-15 23:05:53 -05:00