-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose get_editor_toaster
method to EditorInterface
#98680
Expose get_editor_toaster
method to EditorInterface
#98680
Conversation
This may close #77890 as well, as discussed in godotengine/godot-proposals#11051 that a separate API would be preferred. |
b77f746
to
47443ec
Compare
This should be in EditorInterface, not global scope. Also, instead of adding multiple methods, it's better to have one that takes enum argument for message type. |
47443ec
to
fde85ae
Compare
fde85ae
to
6b7ca2c
Compare
toast_error
, toast_info
, toast_warning
methods to @GlobalScope
toast
method to `EditorInterface
toast
method to `EditorInterfacetoast
method to EditorInterface
6b7ca2c
to
b6db845
Compare
Kinda figured once I saw all the tests blow up lolol, ty for the suggestions, updated! Just for discussion would we rather have the method name be |
68d2d20
to
b8b24c3
Compare
|
Missing tooltip parameter. |
007ee15
to
3a23add
Compare
toast
method to EditorInterface
push_toast
method to EditorInterface
@Mickeon @ydeltastar Fixed! |
6bb9dc7
to
b48fa93
Compare
push_toast
method to EditorInterface
get_editor_toaster
method to EditorInterface
@KoBeWi Let me know what ya think. |
b48fa93
to
4f56883
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine like this.
4f56883
to
4d2b701
Compare
4d2b701
to
8bf800b
Compare
Rebased with master. |
8bf800b
to
722d932
Compare
<param index="1" name="severity" type="int" enum="EditorToaster.Severity" default="0" /> | ||
<param index="2" name="tooltip" type="String" default="""" /> | ||
<description> | ||
Pushes a toast notification to the editor for display. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushes a toast notification to the editor for display. | |
Pushes a toast notification to the editor for display. | |
Returns [constant ERR_TOASTER_ON_FIRE] if [param severity] is [constant SEVERITY_CRITICAL]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait hold on is this is actually real are you serious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait hold on is this is actually real are you serious
I checked, sadly it's not real. xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #444444 to fix this ;)
Thanks! |
Closes godotengine/godot-proposals#11051
Exposes
get_editor_toaster
toEditorInterface
(w/push_toast
method); for use in the editor.Preview (editedx3)