Commit Graph

99 Commits

Author SHA1 Message Date
Julian Murgia
e4bc9ecccf Rename flag NO_HUD to NO_UI (code) (#432) 2021-11-11 22:46:00 +01:00
Julian Murgia
877d31a41f Merge pull request #427 from godot-escoria/issue-48 2021-11-11 22:22:11 +01:00
Julian Murgia
c86b802cbb Add show_menu and hide_menu ESC commands
Fixes godot-escoria/escoria-issues#48
Fix: tween was stopped_all before starting


Fix: reload locale from settings in ESCGame

Since main menu and pause menu are now loaded from ESCGame and not from escoria.gd, this must be done here.
Fix: small crash in load game

But save and load are broken at the moment...
Fix: check save and load after main menu changes


Required fixes


Fix: manage the game scene better in show and hide_menu


Enh: transition back in to the previous room if there was one


Fix a bug occurring where change_scene awaits forever for setup to end


Reworked change_scene and esc_room implementation to avoid yielding


Added a controller variable to allow new event run in events_manager


Don't empty the events queue if the running_event was interrupted


Fixed transitions and automatic transitions in change_scene

Added trace log level (for esc_compiler in particular)
Fixed various bugs in ESC scripts
Fix a bug where exit_scene happened multiple times where fast walking

Needed to clear the event queue
Fixes ready event was run because BYPASS_LAST_SCENE wrongly set


Inverted parameter "disable_automatic_transitions"

for change_scene, hide_menu, show_menu commands
Fix broken sched_event


Fixes as requested in PR
2021-11-11 22:20:58 +01:00
Julian Murgia
b908a2aeee Fix: Make float dialog follow character (#430) 2021-11-11 21:28:29 +01:00
Dennis Ploeger
8b70448bf7 fix: Fixes skipping empty or comment lines in groups and dialogs (#429)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-11-07 23:46:13 +01:00
Dennis Ploeger
d42c973369 fix: Corrected variable name (#428)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-11-02 16:32:46 +01:00
Julian Murgia
891d997d56 Fix Player walk miscaluculation (#425) 2021-10-27 22:27:03 +02:00
Dennis Ploeger
57ce7fbcae feat: Made dialogs pluggable (#424)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-10-27 08:34:13 +02:00
Julian Murgia
b7b01c5770 Simplified overcomplex test (#423) 2021-10-26 21:30:20 +02:00
Julian Murgia
9dbcf2b58b Make ESCLocation is_start_location work (#421)
Introducing BYPASS_LAST_ROOM global to allow changing scene without considering the previous room
Fixes godot-escoria/escoria-issues#40
2021-10-26 16:36:02 +02:00
Dennis Ploeger
94d86d24d5 fix: Huge cleanup (#420)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-10-25 08:59:07 +02:00
Julian Murgia
b3cd9abe21 Fix a wrong validation check in camera_set_limits (#418)
Events interruption should now work at all time (added interruption in room_selector scene)
Fixed missing test in game.gd for when the player is not set
Fixed some ESC scripts (worker filled sheet event is now blocking, room13 left door waits simple click, not use verb)
2021-10-22 09:17:03 +02:00
Dennis Ploeger
af26521d3d feat: Rewrote inventory handling basing on ESCItems (#417)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-10-21 21:56:25 +02:00
Julian Murgia
89da6924a3 Clean after change room: game scene is cleanly removed from prev room (#416) 2021-10-19 15:48:26 +02:00
Julian Murgia
4fd1d72993 Fix crashes in rooms 9 and 13 (#415) 2021-10-19 15:48:13 +02:00
Julian Murgia
c859cffa33 Move Escoria settings load action out of init (#414)
InputMap actions added/removed at plugin enabled/disabled
Some changes to README
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-10-14 21:56:02 +02:00
Julian Murgia
00de7fcc4d Removed hardcoded "camera" name reference and manual tween node camera (#411)
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-10-07 08:22:27 +02:00
Julian Murgia
41902b5791 Adds "name" parameter to ESC spawn command (#410)
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-10-07 08:22:11 +02:00
Julian Murgia
378f29283d Move settings load and main menu loading in _init method (#408) 2021-10-01 13:22:40 +02:00
Julian Murgia
ae34094196 Enhancement: load game scene once to allow run scene directly (#406)
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-10-01 07:53:44 +02:00
Dennis Ploeger
df78b52b8a feat: This enables user-defined transition and uses a tween to animate the transitions (#405)
* feat: This enables user-defined transition and uses a tween to animate the transitions

fixes #344

* docs: Automatic update of API docs

* docs: Automatic update of API docs

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-09-28 11:30:40 +02:00
Dennis Ploeger
b710def99d fix: Fixes for when the player scene isn't used in a room. (#404)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-09-28 10:08:03 +02:00
Dennis Ploeger
09ef9e89fe feat: Use wait parameter instead of immediate for turn_to and set_angle (#403)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-09-27 15:33:51 +02:00
Dennis Ploeger
2273d97d86 fix: Adds validation fixes for commands (#401)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-09-24 23:05:18 +02:00
Julian Murgia
527fe84d3c Changed dialog cursor (#398)
- some modifications in android exports presets
- commented out jump command in worker.esc as not implemented
2021-09-23 12:39:24 +02:00
Dennis Ploeger
60ea4d851b Issue 320 (#396) - Mobile fixes
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-09-23 08:32:08 +02:00
Julian Murgia
bb93dc1ef3 Fixed escoria.current_state when dialog line finishes (#391)
- Fixed connect() errors concerning the player being ready'd 2 times in certain cases, so trying to connect signals twice
2021-09-10 10:04:11 +02:00
Julian Murgia
0e6e8aa161 Re-implemented turn_to command (#390)
* Re-implemented turn_to command

Fixes #385
Fixed a bug in esc_movable blocking player_orients_on_arrival for ESCLocation nodes

* docs: Automatic update of API docs

* Fixes

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-09-09 22:57:03 +02:00
Julian Murgia
ad390a6f65 Fix when no speech key is used and translate speech key if used (#389) 2021-09-09 09:15:56 +02:00
Julian Murgia
cb711b329b Fix inverted transitions in/out (#388) 2021-09-09 08:23:03 +02:00
Julian Murgia
b4bf5b82d6 Event flags implementation (#382)
* Added event flags
* Added transition ESC command
* Also edited .gitignore to ignore .translation files
* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-09-07 09:13:09 +02:00
Dennis Ploeger
903422960a Small fixes and issue 386 (#387)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-09-07 08:07:10 +02:00
Dennis Ploeger
3ee46f4977 Issue 335 (#384)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-09-06 08:57:45 +02:00
Dennis Ploeger
c8958e7454 Issue 377 (#383)
* feat: Implements speech fixes #377

* docs: Automatic update of API docs

* chore: Updated speech translation.

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-09-06 08:52:16 +02:00
Dennis Ploeger
3dc779311c Issue 336 (#380)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-08-30 20:57:25 +02:00
Dennis Ploeger
a639ad5f32 Issue 343 (#379)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-08-28 22:29:04 +02:00
Artur Maciąg
eb9441df52 Fixed error on double left click and right click in inventory. (#378) 2021-08-28 22:27:35 +02:00
Julian Murgia
711cfe9888 Added a method to interrupt a running event in ESCEventManager. (#375)
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-27 08:16:12 +02:00
Dennis Ploeger
1f28fdc8f3 feat: Implemented all dialog features. Fixes #345 (#376)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-08-27 08:15:52 +02:00
Julian Murgia
2ed184ad4a Refactor ESCMovable._process() (#374)
* Refactor ESCMovable._process()
Fixes #348

* Fixes

* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-26 14:29:35 +02:00
Julian Murgia
3ab3d0945c Refactor ESCMovable._is_angle_in_interval() (#373)
* Refactor ESCMovable._is_angle_in_interval().
Fixes #349

* docs: Automatic update of API docs

* Fixes

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-24 15:59:29 +02:00
Julian Murgia
b230966fc6 Moved and split escoria._ev_left_click_on_item() function into ESCController (#371)
* Moved and split escoria._ev_left_click_on_item() function into ESCController.
Added a boolean in ESCWalkContext to hold whether interact should happen after destination is reached.

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-24 08:19:55 +02:00
Julian Murgia
fc3ea147a7 Implement save overwrite confirmation (#368)
* Implement save overwrite confirmation + fixed pause game not pausing game execution.

* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-13 09:28:38 +02:00
Dennis Ploeger
712083d126 fix: FIxed non-editor call to _set_animation_player (#369)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-08-12 23:22:09 +02:00
Julian Murgia
a00bbd4d4d Removed hardcoded access to node named "sprite" (#364) 2021-08-10 22:20:30 +02:00
Dennis Ploeger
c1c25aae03 Optimized item and background signal handling (#365)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
2021-08-10 22:14:00 +02:00
Dennis Ploeger
15bf1a8c81 Stable interface for both Animation player and Animated Sprite (#363)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-08-10 21:35:01 +02:00
Julian Murgia
61726bca81 :setup action is not managed only once anymore (#358)
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-08 23:23:11 +02:00
Julian Murgia
cbb64df969 Removed hardcoded global_id "player" (#359)
* Removed hardcoded global_id "player"
Removed hardcoded node name "start_position"

* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-08 12:10:46 +02:00
Julian Murgia
c711db5d3c Add set_angle 'immediate' parameter. (#357)
* Add set_angle 'immediate' parameter.
Modified fade_in transition to happen between :setup and :ready so that :ready don't start before fade_in is finished.

* docs: Automatic update of API docs

* Same fixes in style and removed a useless test.

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-08-08 12:10:20 +02:00