Commit Graph

90 Commits

Author SHA1 Message Date
Daan Vanden Bosch
b276ba988e Quests can now be saved in GC format. 2020-01-16 21:45:20 +01:00
Daan Vanden Bosch
7c9a74171e Quest editor now uses the Dialog class for the "Save As" dialog so more options can be added to it. 2020-01-14 21:19:07 +01:00
Daan Vanden Bosch
b2e0a612f8 Dialogs are now properly disposed. 2020-01-08 21:42:12 +01:00
Daan Vanden Bosch
b93b22a223 Made Dialog reusable. 2020-01-07 17:40:01 +01:00
Daan Vanden Bosch
542f61bf0c Improved error handling in viewer. 2020-01-06 23:32:14 +01:00
Daan Vanden Bosch
8580cd4f66 The model viewer now shows a problems popup when loading a file failed or succeeded with some problems. 2020-01-06 21:09:44 +01:00
Daan Vanden Bosch
3edc9b857d Improved FileButton behavior, opening the same file twice in a row will now work. Also simplified its implementation. 2020-01-05 23:20:53 +01:00
Daan Vanden Bosch
3836612972 You can now press the up and down arrows while a Select is focused (but the menu is not open) to change the selected item. 2020-01-05 18:59:02 +01:00
Daan Vanden Bosch
05d5ce6e29 Its now possible to choose a section ID and body type in the model viewer. 2020-01-05 18:40:35 +01:00
Daan Vanden Bosch
f87c2ecf84 - All views now have a View super type
- Widget now has a children array
- Widgets can be activated and deactivated (this recurses over child widgets)
- Renderers are now turned on and off in activate/deactivate methods
- It is now possible to set a tool-local path (this path is appended to the tool's base path)
- TabContainer can now automatically set a path based on paths given in its tab configuration
- It's now possible to directly link to subviews of the viewer and the hunt optimizer
2020-01-05 01:07:35 +01:00
Daan Vanden Bosch
f4b8b30590 .bin and .dat files can now be loaded directly. 2020-01-02 15:26:40 +01:00
Daan Vanden Bosch
821b894a52 Made several widgets more keyboard-friendly. 2020-01-01 04:15:03 +01:00
Daan Vanden Bosch
7806fae98b Actions can now be added to events. 2019-12-31 23:45:49 +01:00
Daan Vanden Bosch
fe00d6f6a8 - Defensive copies are now made of values emitted in list change events
- Bugfix: FlatMappedListProperty would propagate changes to its dependency list property incorrectly
- Creating event actions is now undoable
2019-12-31 18:45:12 +01:00
Daan Vanden Bosch
bc95a490ca Refactored QuestEventDagModel. 2019-12-30 16:40:58 +01:00
Daan Vanden Bosch
596bd103da Events can now be selected by clicking anywhere on the event and the selected event can be deleted by pressing the delete key. 2019-12-29 23:00:09 +01:00
Daan Vanden Bosch
de20e7b82f - Bugfix: FlatMappedListProperty wouldn't recompute its value and emit an event when it's computed property changed
- Event section IDs are now immutable
- Top level events can now be added
2019-12-27 23:33:34 +01:00
Daan Vanden Bosch
5b5ce69d07 You can now view just the NPCs of a specific wave by clicking a button next to the wave ID in the events view. 2019-12-27 16:56:48 +01:00
Daan Vanden Bosch
c5d78b49ac Bugfix in FlatMappedProperty and FlatMappedListProperty: flat mapped values would not update correctly if the flat mapped property didn't have observers. 2019-12-27 02:49:30 +01:00
Daan Vanden Bosch
5c0329f39f Tweaked EntityInfoView look. 2019-12-27 01:36:54 +01:00
Daan Vanden Bosch
994afa7387 Refactored HTML element creation code. Removed PropertyChangeEvent, properties don't emit their old value anymore. Added an EventsController and moved some code from EventsView and QuestEditorStore to it. 2019-12-27 00:55:32 +01:00
Daan Vanden Bosch
89d9de0f12 Added flat_map_to_list function for flat mapping over multiple properties into a ListProperty. Simplified observables code. 2019-12-26 22:25:21 +01:00
Daan Vanden Bosch
86f9f74785 Added flat_map function for flat mapping over multiple properties. 2019-12-26 20:20:42 +01:00
Daan Vanden Bosch
64a132590a When a quest editor subview cannot be instantiated, an error message is now shown in the GoldenLayout component that failed instead of crashing the entire quest editor. 2019-12-26 19:47:24 +01:00
Daan Vanden Bosch
2808983add Added DisposablePromise to facilitate cancelling promises that are underway when a component is disposed. Added EntityInfoController with unit test and added tests for EntityInfoView. 2019-12-26 00:44:30 +01:00
Daan Vanden Bosch
99d50d754d Replaced js-logger. Improved testability with mocks, improved test configuration and code improvements. 2019-12-25 00:17:02 +01:00
Daan Vanden Bosch
243638879c Entity counts in area select are now updated when adding or removing entities. Added more unit tests. 2019-12-24 03:04:18 +01:00
Daan Vanden Bosch
100272a115 Added a QuestInfoController and added unit tests for QuestInfoView. 2019-12-23 22:38:44 +01:00
Daan Vanden Bosch
f1374fe100 Improved log view performance and fixed bug in quest runner. 2019-12-22 04:34:50 +01:00
Daan Vanden Bosch
2083793e67 Added basic test for application initialization. 2019-12-22 00:43:27 +01:00
Daan Vanden Bosch
aa0d398545 The floor handler for the initial area is now run when running a quest. 2019-12-19 22:14:59 +01:00
Daan Vanden Bosch
20885cb0f2 Simplified Widget.finalize_construction. Added game state to QuestRunner and modified execution flow to enable loading of area/entity models. Split QuestModelManager into two different classes so a different loading strategy can used in the quest runner view. Quest runner view is now automatically created when running a quest. 2019-12-19 18:54:01 +01:00
Daan Vanden Bosch
fcff6a2cd6 Almost all quest editor UI elements are now disabled when running a quest in the VM. 2019-12-19 00:11:42 +01:00
Daan Vanden Bosch
28b8fa03d9 Simplified quest logging system. 2019-12-18 20:06:09 +01:00
jtuu
8d4b149fba Added a readonly setting to Input. 2019-11-21 22:16:04 +02:00
jtuu
02e9690187 Fixed a bug where Menu items that had a defined falsy value could not be selected. 2019-11-21 22:12:08 +02:00
jtuu
8582a25bc3 Lint 2019-11-16 18:07:21 +02:00
jtuu
0365b40e55 Added stop button. 2019-11-15 20:17:24 +02:00
jtuu
a219200291 Added buttons for VM controls.
Also added new icons.
2019-11-15 19:59:05 +02:00
jtuu
7e99857baf Added a message log in the quest editor.
QuestEditorStore was extended to hold the state of the message log. The view is handled by a new core GUI class MessageLog.
2019-11-08 15:07:46 +02:00
jtuu
065b6333a6 Added style for Golden Layout's close button. 2019-11-07 11:42:29 +02:00
jtuu
8247934e78 Changed the items argument of DropDown to be readonly as it doesn't need to be mutable. 2019-11-07 11:38:10 +02:00
Daan Vanden Bosch
f1fa19238d Event DAG edges are now shown with lines. 2019-10-31 19:11:14 +01:00
Daan Vanden Bosch
a8997e66a9 Removed bind_bi from Property. 2019-10-26 17:03:12 +02:00
Daan Vanden Bosch
22cf7165f8 Tweaked combobox arrow button. 2019-10-25 18:46:19 +02:00
Daan Vanden Bosch
ff8f02fe5b Refactored events model and added a basic view for it behind a feature flag. 2019-10-10 23:11:52 +02:00
Daan Vanden Bosch
345c9ab0dc Improved typing of ListProperty. 2019-10-07 18:26:45 +02:00
Daan Vanden Bosch
3670df618b Monaco popups were obscured by golden layout. 2019-10-03 16:46:26 +02:00
jtuu
5458d06d8e [VM] Changed the icon for the VM button. 2019-10-02 21:46:02 +03:00
Daan Vanden Bosch
9b3d280e4f Upgraded all dependencies and fixed linting warnings/errors resulting from eslint upgrade. 2019-10-01 18:30:26 +02:00