Yield for "frame_pre_draw" signal before writing to terminal

Fixes #41. But creates another issue where sometimes the yield will
resume after the terminal node has already been freed logging an error
to the console.

Also a few changes to where update is called it the gdnative terminal
code.

Also changed gdnative terminal to only accept strings.
This commit is contained in:
Leroy Hopson 2021-07-03 00:04:34 +07:00 committed by Leroy Hopson
parent 4e6715329a
commit bfa561357e
3 changed files with 34 additions and 32 deletions

View file

@ -1,3 +1,5 @@
// Copyright (c) 2021, Leroy Hopson (MIT License).
#ifndef TERMINAL_H
#define TERMINAL_H
@ -52,7 +54,7 @@ public:
void _gui_input(Variant event);
void _draw();
void write(Variant data);
void write(String data);
enum UpdateMode {
DISABLED,