2022-09-06 11:08:52 +00:00
|
|
|
/* bt_console_print.h */
|
|
|
|
|
|
|
|
#ifndef BT_CONSOLE_PRINT_H
|
|
|
|
#define BT_CONSOLE_PRINT_H
|
|
|
|
|
|
|
|
#include "bt_action.h"
|
2022-12-15 07:26:52 +00:00
|
|
|
#include "core/object/object.h"
|
|
|
|
#include "core/variant/variant.h"
|
2022-09-06 11:08:52 +00:00
|
|
|
|
|
|
|
class BTConsolePrint : public BTAction {
|
|
|
|
GDCLASS(BTConsolePrint, BTAction);
|
|
|
|
|
|
|
|
private:
|
|
|
|
String text;
|
2022-12-15 07:26:52 +00:00
|
|
|
PackedStringArray format_var_args;
|
2022-09-06 11:08:52 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2022-12-15 07:26:52 +00:00
|
|
|
virtual String _generate_name() const override;
|
|
|
|
virtual int _tick(float p_delta) override;
|
2022-09-06 11:08:52 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
void set_text(String p_value) {
|
|
|
|
text = p_value;
|
|
|
|
emit_changed();
|
|
|
|
}
|
|
|
|
String get_text() const { return text; }
|
|
|
|
|
2022-12-15 07:26:52 +00:00
|
|
|
void set_format_var_args(const PackedStringArray &p_value) {
|
2022-09-06 11:08:52 +00:00
|
|
|
format_var_args = p_value;
|
|
|
|
emit_changed();
|
|
|
|
}
|
2022-12-15 07:26:52 +00:00
|
|
|
PackedStringArray get_format_var_args() const { return format_var_args; }
|
2022-09-06 11:08:52 +00:00
|
|
|
|
2022-12-15 07:26:52 +00:00
|
|
|
virtual String get_configuration_warning() const override;
|
2022-09-06 11:08:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BT_CONSOLE_PRINT_H
|