Commit Graph

215 Commits

Author SHA1 Message Date
balloonpopper
06d37b0aad feat: Reverse save games order - issue 211 (#565)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-04-07 20:36:53 +02:00
StraToN
607808536d chore: storing version and changelog 2022-04-05 06:03:09 +00:00
balloonpopper
3e80abf322 feat: Added print command to print output at any debug level (#564)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-04-05 08:02:49 +02:00
balloonpopper
167e06bfd5 feat: Add global interpolation for say command (#562)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-04-05 08:02:17 +02:00
balloonpopper
aa6a4c4d50 feat: Added ability to print globals as part of debug messages (#561)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-04-05 08:01:40 +02:00
balloonpopper
2c79da17e4 fix: rand_global fixes (#555)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-03-29 07:20:12 +02:00
Balloonpopper
9dd06d0d81 fix: Fix broken camera push. Issue 125 2022-03-26 14:24:44 +01:00
dploeger
543ba16105 chore: storing version and changelog 2022-03-24 06:23:18 +00:00
bolinfest
38e3eb264d fix: exit loop as soon as command is found (#550) 2022-03-24 07:22:57 +01:00
StraToN
bda879fd22 chore: storing version and changelog 2022-03-23 12:56:44 +00:00
Julian Murgia
284cb0d539 Fix: Mirroed ESCItem's talk animation was conflicting with mirrored idle
Also remove multiple calls to get_animation_player()
Fixes https://github.com/godot-escoria/escoria-issues/issues/201
2022-03-23 13:56:18 +01:00
Michael Bolin
a3c8fe882e fix: eliminate escoria/esc/command_paths that duplicates escoria/main/command_directories
It appears that the settings `escoria/esc/command_paths` and
`escoria/main/command_directories` have duplicate purposes.
Unfortunately, they are read in different places, so if you add a
directory to one setting, it will not be present in the other.
Specifically, `ESCCompiler` read from `escoria/esc/command_paths`
while `ESCCommand` and `ESCCommandRegistry` read from
`escoria/main/command_directories`.

As the `COMMAND_PATHS` constant had no references, it seemed more
appropriate to delete.

The `escoria/esc/command_paths` appears to have been set initially in
`project.godot` as part of:

https://github.com/godot-escoria/escoria-demo-game/pull/467
2022-03-23 13:05:09 +01:00
StraToN
23b51938e7 chore: storing version and changelog 2022-03-21 21:32:20 +00:00
balloonpopper
23ce44eefb feat: Updated exit documentation (#545)
Co-authored-by: Dennis Ploeger <github.dennis@dieploegers.de>
Co-authored-by: Duncan Brown <duncan@prometheussoftware.ca>
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-03-21 22:31:57 +01:00
Julian Murgia
3c0ebf1869 Fix: out of bounds exception in camera_push (#546) 2022-03-21 22:19:11 +01:00
Julian Murgia
9b80aeb154 New logo that looks less like a risen middle finger (#544) 2022-03-18 10:20:41 +01:00
Dennis Ploeger
e98209d387 fix: Reset audio bus layout (#542) 2022-03-17 23:09:53 +01:00
StraToN
8e1302b57b chore: storing version and changelog 2022-03-17 21:33:42 +00:00
Balloonpopper
2dd931fdd0 fix 2022-03-17 22:33:20 +01:00
StraToN
1e0862c3f2 chore: storing version and changelog 2022-03-17 21:33:02 +00:00
Julian Murgia
0262a75b25 Managed mirrored speak animations in ESCItem
Simplified sprite mirroring in cases of movement and talking


Simplified even more


Fix: simplification again
2022-03-17 22:32:34 +01:00
Balloonpopper
1b4f3dccfe feat: Add walk fast flag to walk_pos commands to make them consistent with the walk commands 2022-03-17 22:30:02 +01:00
Dennis Ploeger
26e4e4c1a3 fix: Ensure escoria#apply_settings only called in game not editor (#543)
Co-authored-by: balloonpopper <5151242+balloonpopper@users.noreply.github.com>
Co-authored-by: Julian Murgia <the.straton@gmail.com>
2022-03-15 07:45:00 +01:00
Dennis Ploeger
fdd61de4d5 fix: Reduced log to warning if multiple navigation polygons are enabled while in editor
fixes godot-escoria/escoria-issues#103
2022-03-14 22:38:36 +01:00
bolinfest
d0d97ba9bf feat: add gamepad support to escoria-ui-simplemouse (#518)
This commit starts by introducing a new action, `ESC_UI_PRIMARY_ACTION`,
that is used to represent a "primary action" from an input device, such
as a left-click on a mouse or the press of the primary button on a
gamepad. Although this action is not added to `InputMap` by default in
`escoria-core`, `_unhandled_input()` in `esc_item.gd` is updated to look
for it.

The other portion of this commit is an update to
`addons/escoria-ui-simplemouse/game.gd` that adds a gamepad mapping to
the `InputMap` for both `ESC_UI_PRIMARY_ACTION` as well as another new
action `ESC_UI_CHANGE_VERB_ACTION`. These actions are mapped to X and Y
on an XBox controller, respectively.

Note that `game.gd` is also updated to implement `_process()` such that
moving `JOY_AXIS_0` and `JOY_AXIS_1` on "gamepad 0" will move the
cursor around on the screen as the mouse would.

Overall, this makes the game fairly playable with a gamepad, though
admittedly a mouse is still currently required to click the "New game"
button on the initial menu because `BaseButton::gui_input()` appears to
be hardcoded to check for mouse events exclusively:

godotengine/godot@a09814e/scene/gui/base_button.cpp#L55-L81
2022-03-14 22:15:01 +01:00
StraToN
8adc164254 chore: storing version and changelog 2022-03-10 22:42:08 +00:00
Julian Murgia
cb538edb01 fix: Wrong variable used causing a crash on UI de-registering 2022-03-10 23:41:46 +01:00
StraToN
4042ea81af chore: storing version and changelog 2022-03-10 22:07:27 +00:00
Balloonpopper
9037e160c2 fix: Fix issue #166 2022-03-10 23:07:04 +01:00
StraToN
a20932a8e4 chore: storing version and changelog 2022-03-10 22:05:52 +00:00
balloonpopper
0a45140fad documentation: Fixes to command descriptions (#506)
Co-authored-by: Duncan Brown <duncan@prometheussoftware.ca>
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-03-10 23:05:27 +01:00
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