Merge pull request #49417 from Bhu1-V/gsoc-cmd-plt

Command Palette For Godot
This commit is contained in:
Rémi Verschelde 2021-08-10 18:55:22 +02:00 committed by GitHub
commit dce488d8f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 576 additions and 59 deletions

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="EditorCommandPalette" inherits="ConfirmationDialog" version="4.0">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_command">
<return type="void" />
<argument index="0" name="command_name" type="String" />
<argument index="1" name="key_name" type="String" />
<argument index="2" name="binded_callable" type="Callable" />
<argument index="3" name="shortcut_text" type="String" default="&quot;None&quot;" />
<description>
</description>
</method>
<method name="remove_command">
<return type="void" />
<argument index="0" name="key_name" type="String" />
<description>
</description>
</method>
</methods>
<members>
<member name="dialog_hide_on_ok" type="bool" setter="set_hide_on_ok" getter="get_hide_on_ok" override="true" default="false" />
</members>
<constants>
</constants>
</class>

View file

@ -30,6 +30,11 @@
Returns the main container of Godot editor's window. For example, you can use it to retrieve the size of the container and place your controls accordingly.
</description>
</method>
<method name="get_command_palette" qualifiers="const">
<return type="EditorCommandPalette" />
<description>
</description>
</method>
<method name="get_current_path" qualifiers="const">
<return type="String" />
<description>