diff options
| author | Rémi Verschelde | 2018-01-22 14:57:10 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2018-01-22 14:57:42 +0100 |
| commit | e48ccc235f87207b7621601c5c4b794c7c4a4fab (patch) | |
| tree | 03411c291922e07c2c42e2038e113e3aa497522c /modules/mono/editor/godotsharp_editor.h | |
| parent | a294c994000619245d0f7b39bdb8290fcd471831 (diff) | |
| download | godot-e48ccc235f87207b7621601c5c4b794c7c4a4fab.tar.gz godot-e48ccc235f87207b7621601c5c4b794c7c4a4fab.tar.zst godot-e48ccc235f87207b7621601c5c4b794c7c4a4fab.zip | |
Mono: Display opt-out warning in editor about WIP status
This ensures that all users of the Mono flavour of Godot 3.0 are aware
of its current shortcomings (no export, crashes and usability issues).
The dialog is shown each time the editor is started, until the checkbox
is disabled (i.e. until users will have actually read it).
Fixes #15956.
Diffstat (limited to '')
| -rw-r--r-- | modules/mono/editor/godotsharp_editor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/mono/editor/godotsharp_editor.h b/modules/mono/editor/godotsharp_editor.h index 1b83bae1c..81c49aec3 100644 --- a/modules/mono/editor/godotsharp_editor.h +++ b/modules/mono/editor/godotsharp_editor.h @@ -44,6 +44,8 @@ class GodotSharpEditor : public Node { PopupMenu *menu_popup; AcceptDialog *error_dialog; + AcceptDialog *about_dialog; + CheckBox *about_dialog_checkbox; ToolButton *bottom_panel_btn; @@ -54,17 +56,21 @@ class GodotSharpEditor : public Node { bool _create_project_solution(); void _remove_create_sln_menu_option(); + void _show_about_dialog(); + void _toggle_about_dialog_on_start(bool p_enabled); void _menu_option_pressed(int p_id); static GodotSharpEditor *singleton; protected: + void _notification(int p_notification); static void _bind_methods(); public: enum MenuOptions { - MENU_CREATE_SLN + MENU_CREATE_SLN, + MENU_ABOUT_CSHARP, }; enum ExternalEditor { |
