Jelajahi Sumber

Fix missing argument names in FileSystemDock bindings

Rémi Verschelde 3 tahun lalu
induk
melakukan
7843c871d0
2 mengubah file dengan 13 tambahan dan 13 penghapusan
  1. 9 9
      doc/classes/FileSystemDock.xml
  2. 4 4
      editor/filesystem_dock.cpp

+ 9 - 9
doc/classes/FileSystemDock.xml

@@ -9,30 +9,30 @@
 	<methods>
 	<methods>
 		<method name="can_drop_data_fw" qualifiers="const">
 		<method name="can_drop_data_fw" qualifiers="const">
 			<return type="bool" />
 			<return type="bool" />
-			<argument index="0" name="arg0" type="Vector2" />
-			<argument index="1" name="arg1" type="Variant" />
-			<argument index="2" name="arg2" type="Control" />
+			<argument index="0" name="point" type="Vector2" />
+			<argument index="1" name="data" type="Variant" />
+			<argument index="2" name="from" type="Control" />
 			<description>
 			<description>
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="drop_data_fw">
 		<method name="drop_data_fw">
 			<return type="void" />
 			<return type="void" />
-			<argument index="0" name="arg0" type="Vector2" />
-			<argument index="1" name="arg1" type="Variant" />
-			<argument index="2" name="arg2" type="Control" />
+			<argument index="0" name="point" type="Vector2" />
+			<argument index="1" name="data" type="Variant" />
+			<argument index="2" name="from" type="Control" />
 			<description>
 			<description>
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_drag_data_fw">
 		<method name="get_drag_data_fw">
 			<return type="Variant" />
 			<return type="Variant" />
-			<argument index="0" name="arg0" type="Vector2" />
-			<argument index="1" name="arg1" type="Control" />
+			<argument index="0" name="point" type="Vector2" />
+			<argument index="1" name="from" type="Control" />
 			<description>
 			<description>
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="navigate_to_path">
 		<method name="navigate_to_path">
 			<return type="void" />
 			<return type="void" />
-			<argument index="0" name="arg0" type="String" />
+			<argument index="0" name="path" type="String" />
 			<description>
 			<description>
 			</description>
 			</description>
 		</method>
 		</method>

+ 4 - 4
editor/filesystem_dock.cpp

@@ -2756,10 +2756,10 @@ void FileSystemDock::_bind_methods() {
 
 
 	ClassDB::bind_method(D_METHOD("_search_changed"), &FileSystemDock::_search_changed);
 	ClassDB::bind_method(D_METHOD("_search_changed"), &FileSystemDock::_search_changed);
 
 
-	ClassDB::bind_method(D_METHOD("get_drag_data_fw"), &FileSystemDock::get_drag_data_fw);
-	ClassDB::bind_method(D_METHOD("can_drop_data_fw"), &FileSystemDock::can_drop_data_fw);
-	ClassDB::bind_method(D_METHOD("drop_data_fw"), &FileSystemDock::drop_data_fw);
-	ClassDB::bind_method(D_METHOD("navigate_to_path"), &FileSystemDock::navigate_to_path);
+	ClassDB::bind_method(D_METHOD("get_drag_data_fw", "point", "from"), &FileSystemDock::get_drag_data_fw);
+	ClassDB::bind_method(D_METHOD("can_drop_data_fw", "point", "data", "from"), &FileSystemDock::can_drop_data_fw);
+	ClassDB::bind_method(D_METHOD("drop_data_fw", "point", "data", "from"), &FileSystemDock::drop_data_fw);
+	ClassDB::bind_method(D_METHOD("navigate_to_path", "path"), &FileSystemDock::navigate_to_path);
 
 
 	ClassDB::bind_method(D_METHOD("_preview_invalidated"), &FileSystemDock::_preview_invalidated);
 	ClassDB::bind_method(D_METHOD("_preview_invalidated"), &FileSystemDock::_preview_invalidated);
 	ClassDB::bind_method(D_METHOD("_file_multi_selected"), &FileSystemDock::_file_multi_selected);
 	ClassDB::bind_method(D_METHOD("_file_multi_selected"), &FileSystemDock::_file_multi_selected);