summaryrefslogtreecommitdiff
path: root/editor/editor_log.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-14 09:36:49 +0200
committerGitHub <noreply@github.com>2018-08-14 09:36:49 +0200
commit3ebbd0976597a8222aa4883b0a48415202fc1dfd (patch)
tree540ca3fe1fe40e34c8cef6431e92d8a9d88cc304 /editor/editor_log.h
parente6b8963aaea65a30ac4b846d6d027a44965cb1cd (diff)
parent94cf2133d54265ebeef272bb1c7c2e4c32fe730f (diff)
Merge pull request #20976 from Chaosus/warning_color
Add warning color to output log
Diffstat (limited to 'editor/editor_log.h')
-rw-r--r--editor/editor_log.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/editor/editor_log.h b/editor/editor_log.h
index f9bc82de7d..8d0310d914 100644
--- a/editor/editor_log.h
+++ b/editor/editor_log.h
@@ -42,6 +42,7 @@
#include "scene/gui/panel_container.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
+
class EditorLog : public VBoxContainer {
GDCLASS(EditorLog, VBoxContainer);
@@ -68,7 +69,13 @@ protected:
void _notification(int p_what);
public:
- void add_message(const String &p_msg, bool p_error = false);
+ enum MessageType {
+ MSG_TYPE_STD,
+ MSG_TYPE_ERROR,
+ MSG_TYPE_WARNING
+ };
+
+ void add_message(const String &p_msg, MessageType p_type = MSG_TYPE_STD);
void set_tool_button(ToolButton *p_tool_button);
void deinit();