Commit Graph

184 Commits

Author SHA1 Message Date
Balloonpopper
b05be369b2 fix: Automatically remove trailing whitespace when parsing scripts to avoid needing to change all regular expressions separately 2022-03-09 07:40:43 +01:00
Michael Bolin
5a77bd6fdc feat: introduce escoria-ui-keyboard-9verbs to verify register_custom_input_handler() API
This commit was started by copying `addons/escoria-ui-9verbs` as the
basis for `addons/escoria-ui-keyboard-9verbs`. It was then amended to
wire up keyboard shortcuts for each verb using the new
`register_custom_input_handler()` API.

Note that `addons/escoria-ui-keyboard-9verbs/input_map.gd` introduces
one action per verb and provides a `add_actions_to_input_map()`
function to add the actions to the `InputMap`. The `_process_input()`
function in `game.gd` is responsible for mapping each action to the
appropriate call to `verbs_menu.on_action_selected()`.
2022-03-08 14:06:18 +01:00
Michael Bolin
14cf1327fe feat: register_custom_input_handler() API
This introduces a new API on `ESCInputsManager` that makes it
possible to inject custom logic for processing input events.

An example of how to use this API will be introduced in a
separate commit as part of
https://github.com/godot-escoria/escoria-demo-game/pull/503
via a new plugin, `addons/escoria-ui-keyboard-9verbs/`,
which shows how this can be used to add support for keyboard shortcuts
to select a specific verb.
2022-03-08 14:06:18 +01:00
Michael Bolin
7bf3e9f276 refactor: remove trailing whitespace from all .gd files
Not sure why these files were not included in
https://github.com/godot-escoria/escoria-demo-game/pull/494.

Created this diff by running the following on Linux:

```
find -name \*.gd | xargs sed -i -e "s/[[:space:]]\+$//g"
```
2022-03-07 22:01:59 +01:00
StraToN
58476828c6 chore: storing version and changelog 2022-03-07 16:28:18 +00:00
Julian Murgia
ac2e7ba20e Fix wrong (old) documentation about setup and ready events (#524)
Co-authored-by: Duncan Brown <duncan@prometheussoftware.ca>
2022-03-07 17:27:55 +01:00
StraToN
19272ffeb2 chore: storing version and changelog 2022-03-07 08:44:59 +00:00
Michael Bolin
f21ec15560 fix: early return for mouse_in_shape 2022-03-03 21:50:47 +01:00
Balloonpopper
10f770855f refactor: remove redundant check for camera node 2022-03-03 21:49:20 +01:00
Balloonpopper
4fbe3527e8 fix: parameter validation function cant print arrays 2022-03-03 18:41:52 +01:00
Balloonpopper
5bdd519d67 feat: more useful error messages 2022-03-03 18:30:49 +01:00
bolinfest
0570edc3ff fix: ESCItem that is a trigger should not capture input events (#516)
Fixes https://github.com/godot-escoria/escoria-issues/issues/147
2022-03-01 20:48:59 +01:00
balloonpopper
02a66fecda fix: add validates to camera commands missing them (#508)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-27 17:05:24 +01:00
balloonpopper
deac3df61d fix: fix error message - bug 143 (#513)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-25 08:17:01 +01:00
balloonpopper
348a2b697c fix: check to see if requested camera limit is invalid. (#512)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-25 08:13:09 +01:00
balloonpopper
5adf5b8d49 fix: stops negative numbers being interpreted as strings (#511)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-25 08:12:20 +01:00
balloonpopper
d3f1b8b6e2 fix: camera commands to use time instead of speed (#509)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-25 08:06:18 +01:00
bolinfest
282ea24b7d fix: enable transition to ESCRoom even if esc_script is not set (#502) 2022-02-24 16:35:32 +01:00
Dennis Ploeger
93926390b3 Merge pull request #501 from bolinfest/remove-action-to-string 2022-02-19 18:19:19 +01:00
Michael Bolin
045cf9a05e Remove non-existent escoria.action_to_string() function.
Apparently this was accidentally introduced in
99dc1e0110. This commit
removes it and consolidates one clause into the existing
conditional check.
2022-02-19 09:08:24 -08:00
Balloonpopper
166414098a fix: animations doesnt have a speaks parameter when it is null 2022-02-19 14:08:29 +11:00
balloonpopper
21df2af2c8 refactor: Whitespace removal from all .gd files (#494)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-17 23:00:53 +01:00
Dennis Ploeger
b40c0a241c feat: Removed obsolete code. Fixes godot-escoria/escoria-issues#99 (#499) 2022-02-17 22:25:13 +01:00
Julian Murgia
bb4d218277 Fix crash when save folder is empty and manage corrupted savegame file (#497) 2022-02-17 22:23:41 +01:00
Duncan Brown
d41f647a11 Merge branch 'develop' into issue-98 2022-02-16 10:59:03 -05:00
Duncan Brown
ea3543b5ee fix: guard for cases where no animations are set. 2022-02-16 10:57:21 -05:00
balloonpopper
5e0e83f23e feat: Debug set state animations (#495)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-02-15 18:24:08 +01:00
Julian Murgia
2384127ca4 Fix: use Escoria plugin version from plugin.cfg in savegames (#489) 2022-02-15 18:21:19 +01:00
Duncan Brown
326618df18 fix: set a proper guard in case of no speaking animations (#488)
+ correct the upper limit check for the speaking index
Co-authored-by: Duncan Brown <duncan@bhs-consultants.com>
2022-02-06 11:24:55 +01:00
Duncan Brown
9d16122d1a Also need this here. 2022-02-05 13:08:20 -05:00
Duncan Brown
31b57505b5 fix: set a proper guard in case of no speaking animations and correct the upper limit check for the speaking index 2022-02-04 17:10:23 -05:00
Duncan Brown
99dc1e0110 feat: refactor numerous areas and tokenize string literals where possible; also fixes some small bugs (#487)
Co-authored-by: Duncan Brown <duncan@bhs-consultants.com>
2022-02-04 17:10:40 +01:00
Julian Murgia
353b349d1b Set a default implementation for ESCGame._on_event_done() (#486) 2022-02-04 16:27:21 +01:00
Julian Murgia
3e6db46ec6 Fix transitions not happening if the ESCRoom has no ESC script (#485)
Fixes godot-escoria/escoria-issues#95
2022-01-17 09:48:25 +01:00
Julian Murgia
2179b803e0 Implement custom data save in settings and savegames (#484) 2022-01-13 11:09:06 +01:00
Julian Murgia
ba0b66656d Fix initial value of globals in signals emissions (#483) 2021-12-31 16:57:10 +01:00
Julian Murgia
3e4d936007 Fix "global_changed" signal arguments order (#482) 2021-12-15 08:49:36 +01:00
Julian Murgia
92e38b245e Fix input being blocked when item is not interactive #91 (#481) 2021-12-14 07:23:37 +01:00
Julian Murgia
a0f15af10b Removed ESCController and greatly reworked ESCActionManager (#480) 2021-12-13 14:06:43 +01:00
Duncan Brown
e9d63e94b0 feat: move room initialization code into manager (#479)
Co-authored-by: Duncan Brown <duncan@bhs-consultants.com>
2021-12-13 07:35:38 +01:00
Dennis Ploeger
84adc0ac9b fix: Support Godot 3.4 (#478) 2021-12-06 15:12:52 +01:00
Duncan Brown
fd47499fed feat: add options menu to pause menu (#477)
Co-authored-by: Duncan Brown <duncan@bhs-consultants.com>
2021-12-06 07:56:31 +01:00
Duncan Brown
9fbf0c254c fix: correct data type and update missed constant references (#476)
fix: correct data type and update missed constant references
2021-12-03 23:30:19 +01:00
Duncan Brown
391bf08f21 feat: add esc_current_scene reserved global (#474)
Co-authored-by: Duncan Brown <duncan@bhs-consultants.com>
2021-12-03 08:45:02 +01:00
Dennis Ploeger
b5d5217aa4 feat: Support for Escoria and Game migrations (#473)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-12-01 15:00:19 +01:00
Julian Murgia
8e043f56a6 Fix a bug where player angle was wrongly tested around 360 (#471)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: Dennis Ploeger <github.dennis@dieploegers.de>
2021-12-01 13:37:28 +01:00
Julian Murgia
b4d5e380e6 Fix: makes dialog players pausable by removing yields (#472) 2021-12-01 09:39:24 +01:00
Julian Murgia
44056673c9 Fixed dialogs pause mode 2021-11-29 23:26:41 +01:00
Julian Murgia
b031d69cd9 Save and load game fixes (and some other small fixes) (#466) 2021-11-29 14:21:29 +01:00
Dennis Ploeger
14887c711b fix: Safety guards for disconnects (#470)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-11-28 15:38:02 +01:00