Commit Graph

172 Commits

Author SHA1 Message Date
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
33026ce015 Improved golden layout config persistence. A prompt is now shown when the user tries to leave the page after making changes to the current quest. Set production log level to INFO. 2019-12-22 15:30:16 +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
d168030550 Improved application initialization test. Improved error handling in hunt optimizer. 2019-12-22 02:37:06 +01:00
Daan Vanden Bosch
2083793e67 Added basic test for application initialization. 2019-12-22 00:43:27 +01:00
Daan Vanden Bosch
05c9f3ce81 All code now uses HttpClient interface instead of fetch for improved testability. 2019-12-21 22:49:41 +01:00
Daan Vanden Bosch
7ad3044c1e Changed deprecated Three.js addAttribute calls. 2019-12-21 20:52:56 +01:00
Daan Vanden Bosch
8ce19fac62 Most dependencies are now injected to improve testability. 2019-12-21 19:40:42 +01:00
Daan Vanden Bosch
f8a9c65086 NPC wave numbers are now shown in the entity info view. 2019-12-21 15:56:24 +01:00
Daan Vanden Bosch
663ad75435 Debugging now happens in the VM itself, this simplifies the code. 2019-12-20 16:10:50 +01:00
Daan Vanden Bosch
f8fc12c468 Fixed some bugs and added VM support for bb_map_designate. 2019-12-20 00:11:54 +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
8c102976a8 Added a VM registers viewer. 2019-11-21 23:04:16 +02: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
5c6dc50b4e Started working on stepping execution for QuestRunner.
Step over and step in kind of work but there are still bugs. Step out is unimplemented.
2019-11-15 19:59:05 +02:00
jtuu
6fc543bdff Fixed bug where calling SimpleListProperty.prototype.remove with an argument that did not exist in the list would corrupt the list.
Caused by not checking the return value of Array.prototype.indexOf.
2019-11-15 13:38:09 +02:00
jtuu
2267419c8e Fixed a bug where parsing RLC files would always fail.
Caused by the PRC buffer cursor not being rewound before and after decryption.
Fixes #3.
2019-11-12 22:23:38 +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
8212348a81 Made event rendering more robust. Added call_now option to ListProperty.observe_list. 2019-11-04 17:19:57 +01:00
Daan Vanden Bosch
f1fa19238d Event DAG edges are now shown with lines. 2019-10-31 19:11:14 +01:00
Daan Vanden Bosch
a72b51511c Added many unit tests to the observable module and fixed a bug. 2019-10-27 22:39:47 +01:00
Daan Vanden Bosch
cced7539c5 Added ListProperty.filtered. 2019-10-27 19:33:16 +01:00
Daan Vanden Bosch
d6ebb8e21a Added simple transparency to entities. Seems to work for most entities except for those that use translucent texture to emulate light rays etc. 2019-10-27 16:45:30 +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
jtuu
2caa4eea2b Fixed a bug in QST header parsing.
Headers were parsed incorrectly if the basename of the file chunk was less than 5 characters.
2019-10-17 23:36:25 +03:00
jtuu
4cd0b58f66 Added a decorator for marking methods as stubs. 2019-10-17 12:01:37 +03:00
jtuu
4499009e5a Added methods for reading strings at specific offsets to Cursor. 2019-10-11 12:48:49 +03:00
jtuu
aad45b0929 Added methods for writing data at a specific offset to WritableCursor. 2019-10-11 10:39:13 +03:00
Daan Vanden Bosch
9b1bc675a2 Fixed compilation issues and fixed bug in SimpleListProperty (length was not correctly initialized). 2019-10-11 00:04:01 +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
c287fdeb2f Renamed event-related types. Updated feature list. 2019-10-10 19:47:38 +02:00
Daan Vanden Bosch
2d534d2567 primitive reinterpretation functions are now while converting NPCs to dat data. 2019-10-10 13:56:15 +02:00
Daan Vanden Bosch
9803bfe125 Wave data is now parsed/written and converted to models. 2019-10-10 13:47:43 +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
Daan Vanden Bosch
ee4a293d3e Fixed some bugs. 2019-10-03 00:18:11 +02:00
Daan Vanden Bosch
971444f847 F5 keybinding for "Run in VM". Bugfix for feature flags. 2019-10-02 21:15:35 +02:00
jtuu
5458d06d8e [VM] Changed the icon for the VM button. 2019-10-02 21:46:02 +03:00
Daan Vanden Bosch
6396eb1bdf Feature flags. 2019-10-02 20:10:02 +02:00
Daan Vanden Bosch
ed571b9061 Added asm meta data to IR. 2019-10-02 19:57:43 +02:00
Daan Vanden Bosch
fc5a34946e Opcode is now structured cloning-safe. All IR is now structured cloning-safe. 2019-10-02 14:25:47 +02:00
Daan Vanden Bosch
fa76002d1c Instruction is now structured cloning-safe. 2019-10-02 13:44:55 +02:00
Daan Vanden Bosch
df2bb7a6ab Fixed an assembler and a disassembler bug. 2019-10-01 22:18:14 +02: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
Daan Vanden Bosch
f852333fd6 Fixed text area visual bug in Firefox. 2019-09-30 12:23:13 +02:00
Daan Vanden Bosch
4bf2148b39 Entities can be rotated via the entity info view. 2019-09-29 18:53:01 +02:00
Daan Vanden Bosch
9e2858dae2 Entities can now be rotated around their y-axis by right-click dragging. 2019-09-28 21:11:57 +02:00
Daan Vanden Bosch
1fe3015ce5 All objects are now correctly filtered based on area. 2019-09-23 14:47:14 +02:00
Daan Vanden Bosch
9859e15806 Objects area now filtered based on the selected area. Fixed some typos in object names. 2019-09-22 16:14:38 +02:00
Daan Vanden Bosch
f40b1fb168 NPCs in the NPC list are now filtered according to the selected area. Objects can now be added via drag and drop from the object list. 2019-09-22 15:18:46 +02:00
Daan Vanden Bosch
f0d474ad40 The EntityListView now shows renders of entities instead of green squares. 2019-09-21 21:47:00 +02:00
Daan Vanden Bosch
79b85fc859 Entity creation is now undoable. Fixed a bug that occurred when you started to translate an entity and then moved the cursor outside of the 3D-view. 2019-09-21 14:39:04 +02:00
Daan Vanden Bosch
6e666b0ea5 Entity drag and drop code doesn't use custom events anymore for increased performance and simplicity. Made code more typesafe and decoupled. Fixed some bugs. 2019-09-20 22:27:19 +02:00
Daan Vanden Bosch
7ae4ad428c Basic entity creation via drag and drop. 2019-09-19 22:20:17 +02:00
Daan Vanden Bosch
8622b07bde Added bind_children_to function to efficiently update child nodes of an HTML element based on the contents of a ListProperty. 2019-09-17 17:26:25 +02:00
Daan Vanden Bosch
bdee123ee3 LabelledControl labels are now disabled again when their control is disabled. The now also have the same tooltip as their control. 2019-09-15 23:28:48 +02:00
jtuu
fa78f5f95b Lint 2019-09-15 21:47:13 +03:00
Daan Vanden Bosch
87c6ae37e4 Widget's element property is now abstract and is overridden in every concrete subclass. This often simplifies widget code. 2019-09-15 19:32:34 +02:00
Daan Vanden Bosch
da622aab61 Ctrl-Z and Ctrl-Shift-Z undo and redo commands now work more consistently. 2019-09-15 18:34:24 +02:00
Daan Vanden Bosch
aca71d1a17 Merge branch 'nui' 2019-09-14 17:32:32 +02:00
Daan Vanden Bosch
4c09486f65 Removed all React-related dependencies and config. 2019-09-14 17:31:03 +02:00
Daan Vanden Bosch
8411d75b7f Ported the DPS calc store to the new observables system. 2019-09-14 17:13:08 +02:00
Daan Vanden Bosch
d9b6c7015a The hunt method tables can be sorted again. There's no visual feedback in the table headers though. 2019-09-14 16:11:45 +02:00
Daan Vanden Bosch
3a95e8a974 Added server select. Widget construction now happens in two phases with a finalize_construction method being called from the lowest subclass. 2019-09-14 15:15:59 +02:00
Daan Vanden Bosch
20a1046053 Added a help tab in Hunt Optimizer. 2019-09-14 14:23:06 +02:00
Daan Vanden Bosch
58939b2ff5 The ComboBox menu can now be filtered by typing. 2019-09-14 13:16:13 +02:00
Daan Vanden Bosch
c8ff72726e The OptimizationResultView is now completely ported to the new GUI system. 2019-09-14 11:59:50 +02:00
Daan Vanden Bosch
8f8da79041 Up to four .qst headers are now parsed. This fixes parsing of The Value of Money. 2019-09-13 22:47:50 +02:00
Daan Vanden Bosch
f7010d75e0 Fixed visual bug in Select. 2019-09-13 22:44:59 +02:00
Daan Vanden Bosch
d6b1b3ca17 Added GitHub link. 2019-09-13 21:20:26 +02:00
Daan Vanden Bosch
fcf08e6f76 Menus and the various controls that use menus can now be controlled with the keyboard. 2019-09-13 20:53:31 +02:00
Daan Vanden Bosch
a933c5e4c1 Wanted items can now be added and removed. 2019-09-13 14:30:29 +02:00
Daan Vanden Bosch
c9820ceccb More data is now shown in the optimization result view. 2019-09-11 15:51:56 +02:00
Daan Vanden Bosch
0cfa20e30f Started working on optimization result view. 2019-09-09 18:37:20 +02:00
Daan Vanden Bosch
d7490b0d3c Text in table cells can now be aligned. Table now works in firefox. 2019-09-07 20:43:53 +02:00
Daan Vanden Bosch
a28a8ce624 Refactored table from MethodsForEpisodeView into a reusable Table widget. 2019-09-07 17:49:21 +02:00
Daan Vanden Bosch
1c2473c24f Improved loading of store data. 2019-09-05 20:30:11 +02:00
Daan Vanden Bosch
46ba5bb018 Length is now updated when a SimpleWritableListProperty is modified. 2019-09-03 16:49:04 +02:00
Daan Vanden Bosch
62db02e278 ListProperties can now emit update events. 2019-09-03 16:44:13 +02:00
Daan Vanden Bosch
1039049fda ListProperties now emit ListPropertyChangeEvents. 2019-09-02 21:09:40 +02:00
Daan Vanden Bosch
bb7bf16f9f Ported part of the hunt optimizer to the new GUI system. The methods tab is now working except for sorting. 2019-09-02 14:41:46 +02:00
Daan Vanden Bosch
c743cba13b Made golden layout tabs height the same as regular tabs height. Correctly centered text in both. 2019-08-31 21:37:55 +02:00
Daan Vanden Bosch
f73db32eaa Fixed entity translation bug. Fixed bug that caused default browser key bindings to be triggered instead of applications bindings. 2019-08-31 20:30:40 +02:00
Daan Vanden Bosch
73619ea91f "Save as..." button works again. Added key bindings for most quest editor actions. 2019-08-31 20:01:35 +02:00
Daan Vanden Bosch
4dde973951 Improved dropdown button and select widget behavior. 2019-08-30 17:31:46 +02:00
Daan Vanden Bosch
24f0cdb461 Ported new quest button to new GUI system. 2019-08-30 00:06:32 +02:00
Daan Vanden Bosch
762591bf24 Improved select button. 2019-08-29 18:31:29 +02:00
Daan Vanden Bosch
2859dacd90 Added icons, select button and quest area select. 2019-08-29 18:24:03 +02:00