Add object type hint for docs
This commit is contained in:
parent
5a42bbaace
commit
49c7620326
|
@ -1038,7 +1038,7 @@ void _OS::_bind_methods() {
|
|||
&_OS::get_unix_time_from_datetime);
|
||||
ClassDB::bind_method(D_METHOD("get_system_time_secs"), &_OS::get_system_time_secs);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_icon", "icon"), &_OS::set_icon);
|
||||
ClassDB::bind_method(D_METHOD("set_icon", "icon:Image"), &_OS::set_icon);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_exit_code"), &_OS::get_exit_code);
|
||||
ClassDB::bind_method(D_METHOD("set_exit_code", "code"), &_OS::set_exit_code);
|
||||
|
|
|
@ -2245,7 +2245,7 @@ void Image::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("detect_alpha"), &Image::detect_alpha);
|
||||
ClassDB::bind_method(D_METHOD("is_invisible"), &Image::is_invisible);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("compress", "mode"), &Image::compress);
|
||||
ClassDB::bind_method(D_METHOD("compress", "mode", "source", "lossy_quality"), &Image::compress);
|
||||
ClassDB::bind_method(D_METHOD("decompress"), &Image::decompress);
|
||||
ClassDB::bind_method(D_METHOD("is_compressed"), &Image::is_compressed);
|
||||
|
||||
|
|
|
@ -41,11 +41,11 @@ void InputMap::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("add_action", "action"), &InputMap::add_action);
|
||||
ClassDB::bind_method(D_METHOD("erase_action", "action"), &InputMap::erase_action);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("action_add_event", "action", "event"), &InputMap::action_add_event);
|
||||
ClassDB::bind_method(D_METHOD("action_has_event", "action", "event"), &InputMap::action_has_event);
|
||||
ClassDB::bind_method(D_METHOD("action_erase_event", "action", "event"), &InputMap::action_erase_event);
|
||||
ClassDB::bind_method(D_METHOD("action_add_event", "action", "event:InputEvent"), &InputMap::action_add_event);
|
||||
ClassDB::bind_method(D_METHOD("action_has_event", "action", "event:InputEvent"), &InputMap::action_has_event);
|
||||
ClassDB::bind_method(D_METHOD("action_erase_event", "action", "event:InputEvent"), &InputMap::action_erase_event);
|
||||
ClassDB::bind_method(D_METHOD("get_action_list", "action"), &InputMap::_get_action_list);
|
||||
ClassDB::bind_method(D_METHOD("event_is_action", "event", "action"), &InputMap::event_is_action);
|
||||
ClassDB::bind_method(D_METHOD("event_is_action", "event:InputEvent", "action"), &InputMap::event_is_action);
|
||||
ClassDB::bind_method(D_METHOD("load_from_globals"), &InputMap::load_from_globals);
|
||||
}
|
||||
|
||||
|
|
|
@ -240,7 +240,7 @@ void IP::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_resolve_item_address", "id"), &IP::get_resolve_item_address);
|
||||
ClassDB::bind_method(D_METHOD("erase_resolve_item", "id"), &IP::erase_resolve_item);
|
||||
ClassDB::bind_method(D_METHOD("get_local_addresses"), &IP::_get_local_addresses);
|
||||
ClassDB::bind_method(D_METHOD("clear_cache"), &IP::clear_cache, DEFVAL(""));
|
||||
ClassDB::bind_method(D_METHOD("clear_cache", "hostname"), &IP::clear_cache, DEFVAL(""));
|
||||
|
||||
BIND_CONSTANT(RESOLVER_STATUS_NONE);
|
||||
BIND_CONSTANT(RESOLVER_STATUS_WAITING);
|
||||
|
|
|
@ -84,7 +84,7 @@ void Input::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("action_press", "action"), &Input::action_press);
|
||||
ClassDB::bind_method(D_METHOD("action_release", "action"), &Input::action_release);
|
||||
ClassDB::bind_method(D_METHOD("set_custom_mouse_cursor", "image:Texture", "hotspot"), &Input::set_custom_mouse_cursor, DEFVAL(Vector2()));
|
||||
ClassDB::bind_method(D_METHOD("parse_input_event", "event"), &Input::parse_input_event);
|
||||
ClassDB::bind_method(D_METHOD("parse_input_event", "event:InputEvent"), &Input::parse_input_event);
|
||||
|
||||
BIND_CONSTANT(MOUSE_MODE_VISIBLE);
|
||||
BIND_CONSTANT(MOUSE_MODE_HIDDEN);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
void MainLoop::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("input_event", "ev"), &MainLoop::input_event);
|
||||
ClassDB::bind_method(D_METHOD("input_event", "ev:InputEvent"), &MainLoop::input_event);
|
||||
ClassDB::bind_method(D_METHOD("input_text", "text"), &MainLoop::input_text);
|
||||
ClassDB::bind_method(D_METHOD("init"), &MainLoop::init);
|
||||
ClassDB::bind_method(D_METHOD("iteration", "delta"), &MainLoop::iteration);
|
||||
|
|
|
@ -137,7 +137,7 @@ EditorFileSystemDirectory *EditorFileSystemDirectory::get_parent() {
|
|||
void EditorFileSystemDirectory::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_subdir_count"), &EditorFileSystemDirectory::get_subdir_count);
|
||||
ClassDB::bind_method(D_METHOD("get_subdir", "idx"), &EditorFileSystemDirectory::get_subdir);
|
||||
ClassDB::bind_method(D_METHOD("get_subdir:EditorFileSystemDirectory", "idx"), &EditorFileSystemDirectory::get_subdir);
|
||||
ClassDB::bind_method(D_METHOD("get_file_count"), &EditorFileSystemDirectory::get_file_count);
|
||||
ClassDB::bind_method(D_METHOD("get_file", "idx"), &EditorFileSystemDirectory::get_file);
|
||||
ClassDB::bind_method(D_METHOD("get_file_path", "idx"), &EditorFileSystemDirectory::get_file_path);
|
||||
|
|
|
@ -393,11 +393,11 @@ void EditorPlugin::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_selection:EditorSelection"), &EditorPlugin::get_selection);
|
||||
ClassDB::bind_method(D_METHOD("get_editor_settings:EditorSettings"), &EditorPlugin::get_editor_settings);
|
||||
ClassDB::bind_method(D_METHOD("queue_save_layout"), &EditorPlugin::queue_save_layout);
|
||||
ClassDB::bind_method(D_METHOD("edit_resource"), &EditorPlugin::edit_resource);
|
||||
ClassDB::bind_method(D_METHOD("edit_resource", "resource:Resource"), &EditorPlugin::edit_resource);
|
||||
ClassDB::bind_method(D_METHOD("open_scene_from_path", "scene_filepath"), &EditorPlugin::open_scene_from_path);
|
||||
ClassDB::bind_method(D_METHOD("reload_scene_from_path", "scene_filepath"), &EditorPlugin::reload_scene_from_path);
|
||||
ClassDB::bind_method(D_METHOD("add_import_plugin"), &EditorPlugin::add_import_plugin);
|
||||
ClassDB::bind_method(D_METHOD("remove_import_plugin"), &EditorPlugin::remove_import_plugin);
|
||||
ClassDB::bind_method(D_METHOD("add_import_plugin", "importer:EditorImportPlugin"), &EditorPlugin::add_import_plugin);
|
||||
ClassDB::bind_method(D_METHOD("remove_import_plugin", "importer:EditorImportPlugin"), &EditorPlugin::remove_import_plugin);
|
||||
ClassDB::bind_method(D_METHOD("set_input_event_forwarding_always_enabled"), &EditorPlugin::set_input_event_forwarding_always_enabled);
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo(Variant::BOOL, "forward_canvas_gui_input", PropertyInfo(Variant::TRANSFORM2D, "canvas_xform"), PropertyInfo(Variant::OBJECT, "event", PROPERTY_HINT_RESOURCE_TYPE, "InputEvent")));
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo("forward_draw_over_canvas", PropertyInfo(Variant::TRANSFORM2D, "canvas_xform"), PropertyInfo(Variant::OBJECT, "canvas:Control")));
|
||||
|
|
|
@ -81,8 +81,8 @@ void EditorScript::set_editor(EditorNode *p_editor) {
|
|||
|
||||
void EditorScript::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("add_root_node", "node"), &EditorScript::add_root_node);
|
||||
ClassDB::bind_method(D_METHOD("get_scene"), &EditorScript::get_scene);
|
||||
ClassDB::bind_method(D_METHOD("add_root_node", "node:Node"), &EditorScript::add_root_node);
|
||||
ClassDB::bind_method(D_METHOD("get_scene:Node"), &EditorScript::get_scene);
|
||||
BIND_VMETHOD(MethodInfo("_run"));
|
||||
}
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ void PathSpatialGizmo::redraw() {
|
|||
if (c.is_null())
|
||||
return;
|
||||
|
||||
PoolVector<Vector3> v3a = c->tesselate();
|
||||
PoolVector<Vector3> v3a = c->tessellate();
|
||||
//PoolVector<Vector3> v3a=c->get_baked_points();
|
||||
|
||||
int v3s = v3a.size();
|
||||
|
@ -289,7 +289,7 @@ bool PathEditorPlugin::forward_spatial_gui_input(Camera *p_camera, const Ref<Inp
|
|||
|
||||
if (mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT && (curve_create->is_pressed() || (curve_edit->is_pressed() && mb->get_control()))) {
|
||||
//click into curve, break it down
|
||||
PoolVector<Vector3> v3a = c->tesselate();
|
||||
PoolVector<Vector3> v3a = c->tessellate();
|
||||
int idx = 0;
|
||||
int rc = v3a.size();
|
||||
int closest_seg = -1;
|
||||
|
|
|
@ -481,8 +481,8 @@ void GDNativeScript::set_script_name(StringName p_script_name) {
|
|||
}
|
||||
|
||||
void GDNativeScript::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_library"), &GDNativeScript::get_library);
|
||||
ClassDB::bind_method(D_METHOD("set_library", "library"), &GDNativeScript::set_library);
|
||||
ClassDB::bind_method(D_METHOD("get_library:GDNativeLibrary"), &GDNativeScript::get_library);
|
||||
ClassDB::bind_method(D_METHOD("set_library", "library:GDNativeLibrary"), &GDNativeScript::set_library);
|
||||
ClassDB::bind_method(D_METHOD("get_script_name"), &GDNativeScript::get_script_name);
|
||||
ClassDB::bind_method(D_METHOD("set_script_name", "script_name"), &GDNativeScript::set_script_name);
|
||||
|
||||
|
|
|
@ -1587,13 +1587,13 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
|||
} break;
|
||||
case TO_JSON: {
|
||||
|
||||
MethodInfo mi("to_json", PropertyInfo(Variant::NIL, "var:Variant"));
|
||||
MethodInfo mi("to_json", PropertyInfo(Variant::NIL, "var"));
|
||||
mi.return_val.type = Variant::STRING;
|
||||
return mi;
|
||||
} break;
|
||||
case HASH: {
|
||||
|
||||
MethodInfo mi("hash", PropertyInfo(Variant::NIL, "var:Variant"));
|
||||
MethodInfo mi("hash", PropertyInfo(Variant::NIL, "var"));
|
||||
mi.return_val.type = Variant::INT;
|
||||
return mi;
|
||||
} break;
|
||||
|
|
|
@ -949,7 +949,7 @@ void CanvasItem::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("get_canvas_item"), &CanvasItem::get_canvas_item);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_visible"), &CanvasItem::set_visible);
|
||||
ClassDB::bind_method(D_METHOD("set_visible", "visible"), &CanvasItem::set_visible);
|
||||
ClassDB::bind_method(D_METHOD("is_visible"), &CanvasItem::is_visible);
|
||||
ClassDB::bind_method(D_METHOD("is_visible_in_tree"), &CanvasItem::is_visible_in_tree);
|
||||
ClassDB::bind_method(D_METHOD("show"), &CanvasItem::show);
|
||||
|
@ -1001,7 +1001,7 @@ void CanvasItem::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_local_mouse_pos"), &CanvasItem::get_local_mouse_pos);
|
||||
ClassDB::bind_method(D_METHOD("get_global_mouse_position"), &CanvasItem::get_global_mouse_position);
|
||||
ClassDB::bind_method(D_METHOD("get_canvas"), &CanvasItem::get_canvas);
|
||||
ClassDB::bind_method(D_METHOD("get_world_2d"), &CanvasItem::get_world_2d);
|
||||
ClassDB::bind_method(D_METHOD("get_world_2d:World2D"), &CanvasItem::get_world_2d);
|
||||
//ClassDB::bind_method(D_METHOD("get_viewport"),&CanvasItem::get_viewport);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_material", "material:Material"), &CanvasItem::set_material);
|
||||
|
@ -1018,7 +1018,7 @@ void CanvasItem::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("make_canvas_pos_local", "screen_point"),
|
||||
&CanvasItem::make_canvas_pos_local);
|
||||
ClassDB::bind_method(D_METHOD("make_input_local", "event"), &CanvasItem::make_input_local);
|
||||
ClassDB::bind_method(D_METHOD("make_input_local:InputEvent", "event:InputEvent"), &CanvasItem::make_input_local);
|
||||
|
||||
BIND_VMETHOD(MethodInfo("_draw"));
|
||||
|
||||
|
|
|
@ -201,8 +201,8 @@ bool CollisionShape2D::is_one_way_collision_enabled() const {
|
|||
|
||||
void CollisionShape2D::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_shape", "shape"), &CollisionShape2D::set_shape);
|
||||
ClassDB::bind_method(D_METHOD("get_shape"), &CollisionShape2D::get_shape);
|
||||
ClassDB::bind_method(D_METHOD("set_shape", "shape:Shape2D"), &CollisionShape2D::set_shape);
|
||||
ClassDB::bind_method(D_METHOD("get_shape:Shape2D"), &CollisionShape2D::get_shape);
|
||||
ClassDB::bind_method(D_METHOD("set_disabled", "disabled"), &CollisionShape2D::set_disabled);
|
||||
ClassDB::bind_method(D_METHOD("is_disabled"), &CollisionShape2D::is_disabled);
|
||||
ClassDB::bind_method(D_METHOD("set_one_way_collision", "enabled"), &CollisionShape2D::set_one_way_collision);
|
||||
|
|
|
@ -355,8 +355,8 @@ void Light2D::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_editor_only", "editor_only"), &Light2D::set_editor_only);
|
||||
ClassDB::bind_method(D_METHOD("is_editor_only"), &Light2D::is_editor_only);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_texture", "texture"), &Light2D::set_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_texture"), &Light2D::get_texture);
|
||||
ClassDB::bind_method(D_METHOD("set_texture", "texture:Texture"), &Light2D::set_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_texture:Texture"), &Light2D::get_texture);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_texture_offset", "texture_offset"), &Light2D::set_texture_offset);
|
||||
ClassDB::bind_method(D_METHOD("get_texture_offset"), &Light2D::get_texture_offset);
|
||||
|
|
|
@ -283,11 +283,11 @@ void Line2D::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_default_color", "color"), &Line2D::set_default_color);
|
||||
ClassDB::bind_method(D_METHOD("get_default_color"), &Line2D::get_default_color);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_gradient", "color"), &Line2D::set_gradient);
|
||||
ClassDB::bind_method(D_METHOD("get_gradient"), &Line2D::get_gradient);
|
||||
ClassDB::bind_method(D_METHOD("set_gradient", "color:Gradient"), &Line2D::set_gradient);
|
||||
ClassDB::bind_method(D_METHOD("get_gradient:Gradient"), &Line2D::get_gradient);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_texture", "texture"), &Line2D::set_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_texture"), &Line2D::get_texture);
|
||||
ClassDB::bind_method(D_METHOD("set_texture", "texture:Texture"), &Line2D::set_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_texture:Texture"), &Line2D::get_texture);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_texture_mode", "mode"), &Line2D::set_texture_mode);
|
||||
ClassDB::bind_method(D_METHOD("get_texture_mode"), &Line2D::get_texture_mode);
|
||||
|
|
|
@ -444,7 +444,7 @@ void Node2D::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("edit_set_pivot", "pivot"), &Node2D::edit_set_pivot);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_relative_transform_to_parent", "parent"), &Node2D::get_relative_transform_to_parent);
|
||||
ClassDB::bind_method(D_METHOD("get_relative_transform_to_parent", "parent:Node2D"), &Node2D::get_relative_transform_to_parent);
|
||||
|
||||
ADD_GROUP("Transform", "");
|
||||
ADD_PROPERTYNZ(PropertyInfo(Variant::VECTOR2, "position"), "set_position", "get_position");
|
||||
|
|
|
@ -127,9 +127,9 @@ String CollisionShape::get_configuration_warning() const {
|
|||
void CollisionShape::_bind_methods() {
|
||||
|
||||
//not sure if this should do anything
|
||||
ClassDB::bind_method(D_METHOD("resource_changed", "resource"), &CollisionShape::resource_changed);
|
||||
ClassDB::bind_method(D_METHOD("set_shape", "shape"), &CollisionShape::set_shape);
|
||||
ClassDB::bind_method(D_METHOD("get_shape"), &CollisionShape::get_shape);
|
||||
ClassDB::bind_method(D_METHOD("resource_changed", "resource:Resource"), &CollisionShape::resource_changed);
|
||||
ClassDB::bind_method(D_METHOD("set_shape", "shape:Shape"), &CollisionShape::set_shape);
|
||||
ClassDB::bind_method(D_METHOD("get_shape:Shape"), &CollisionShape::get_shape);
|
||||
ClassDB::bind_method(D_METHOD("set_disabled", "enable"), &CollisionShape::set_disabled);
|
||||
ClassDB::bind_method(D_METHOD("is_disabled"), &CollisionShape::is_disabled);
|
||||
ClassDB::bind_method(D_METHOD("make_convex_from_brothers"), &CollisionShape::make_convex_from_brothers);
|
||||
|
|
|
@ -1443,8 +1443,8 @@ PoolVector<Face3> GIProbe::get_faces(uint32_t p_usage_flags) const {
|
|||
|
||||
void GIProbe::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_probe_data", "data"), &GIProbe::set_probe_data);
|
||||
ClassDB::bind_method(D_METHOD("get_probe_data"), &GIProbe::get_probe_data);
|
||||
ClassDB::bind_method(D_METHOD("set_probe_data", "data:GIProbeData"), &GIProbe::set_probe_data);
|
||||
ClassDB::bind_method(D_METHOD("get_probe_data:GIProbeData"), &GIProbe::get_probe_data);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_subdiv", "subdiv"), &GIProbe::set_subdiv);
|
||||
ClassDB::bind_method(D_METHOD("get_subdiv"), &GIProbe::get_subdiv);
|
||||
|
@ -1473,7 +1473,7 @@ void GIProbe::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_compress", "enable"), &GIProbe::set_compress);
|
||||
ClassDB::bind_method(D_METHOD("is_compressed"), &GIProbe::is_compressed);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("bake", "from_node", "create_visual_debug"), &GIProbe::bake, DEFVAL(Variant()), DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("bake", "from_node:Node", "create_visual_debug"), &GIProbe::bake, DEFVAL(Variant()), DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("debug_bake"), &GIProbe::_debug_bake);
|
||||
ClassDB::set_method_flags(get_class_static(), _scs_create("debug_bake"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
|
||||
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
|
||||
void MultiMeshInstance::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_multimesh", "multimesh"), &MultiMeshInstance::set_multimesh);
|
||||
ClassDB::bind_method(D_METHOD("get_multimesh"), &MultiMeshInstance::get_multimesh);
|
||||
ClassDB::bind_method(D_METHOD("set_multimesh", "multimesh:MultiMesh"), &MultiMeshInstance::set_multimesh);
|
||||
ClassDB::bind_method(D_METHOD("get_multimesh:MultiMesh"), &MultiMeshInstance::get_multimesh);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "multimesh", PROPERTY_HINT_RESOURCE_TYPE, "MultiMesh"), "set_multimesh", "get_multimesh");
|
||||
}
|
||||
|
||||
|
|
|
@ -374,8 +374,8 @@ String NavigationMeshInstance::get_configuration_warning() const {
|
|||
|
||||
void NavigationMeshInstance::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_navigation_mesh", "navmesh"), &NavigationMeshInstance::set_navigation_mesh);
|
||||
ClassDB::bind_method(D_METHOD("get_navigation_mesh"), &NavigationMeshInstance::get_navigation_mesh);
|
||||
ClassDB::bind_method(D_METHOD("set_navigation_mesh", "navmesh:NavigationMesh"), &NavigationMeshInstance::set_navigation_mesh);
|
||||
ClassDB::bind_method(D_METHOD("get_navigation_mesh:NavigationMesh"), &NavigationMeshInstance::get_navigation_mesh);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_enabled", "enabled"), &NavigationMeshInstance::set_enabled);
|
||||
ClassDB::bind_method(D_METHOD("is_enabled"), &NavigationMeshInstance::is_enabled);
|
||||
|
|
|
@ -263,7 +263,7 @@ void AudioStreamPlayer::_bus_layout_changed() {
|
|||
void AudioStreamPlayer::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_stream", "stream:AudioStream"), &AudioStreamPlayer::set_stream);
|
||||
ClassDB::bind_method(D_METHOD("get_stream"), &AudioStreamPlayer::get_stream);
|
||||
ClassDB::bind_method(D_METHOD("get_stream:AudioStream"), &AudioStreamPlayer::get_stream);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_volume_db", "volume_db"), &AudioStreamPlayer::set_volume_db);
|
||||
ClassDB::bind_method(D_METHOD("get_volume_db"), &AudioStreamPlayer::get_volume_db);
|
||||
|
|
|
@ -493,11 +493,11 @@ void BaseButton::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_enabled_focus_mode", "mode"), &BaseButton::set_enabled_focus_mode);
|
||||
ClassDB::bind_method(D_METHOD("get_enabled_focus_mode"), &BaseButton::get_enabled_focus_mode);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_shortcut", "shortcut"), &BaseButton::set_shortcut);
|
||||
ClassDB::bind_method(D_METHOD("get_shortcut"), &BaseButton::get_shortcut);
|
||||
ClassDB::bind_method(D_METHOD("set_shortcut", "shortcut:ShortCut"), &BaseButton::set_shortcut);
|
||||
ClassDB::bind_method(D_METHOD("get_shortcut:ShortCut"), &BaseButton::get_shortcut);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_button_group", "button_group"), &BaseButton::set_button_group);
|
||||
ClassDB::bind_method(D_METHOD("get_button_group"), &BaseButton::get_button_group);
|
||||
ClassDB::bind_method(D_METHOD("set_button_group", "button_group:ButtonGroup"), &BaseButton::set_button_group);
|
||||
ClassDB::bind_method(D_METHOD("get_button_group:ButtonGroup"), &BaseButton::get_button_group);
|
||||
|
||||
BIND_VMETHOD(MethodInfo("_pressed"));
|
||||
BIND_VMETHOD(MethodInfo("_toggled", PropertyInfo(Variant::BOOL, "pressed")));
|
||||
|
|
|
@ -478,7 +478,7 @@ void ColorPicker::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("is_raw_mode"), &ColorPicker::is_raw_mode);
|
||||
ClassDB::bind_method(D_METHOD("set_edit_alpha", "show"), &ColorPicker::set_edit_alpha);
|
||||
ClassDB::bind_method(D_METHOD("is_editing_alpha"), &ColorPicker::is_editing_alpha);
|
||||
ClassDB::bind_method(D_METHOD("add_preset"), &ColorPicker::add_preset);
|
||||
ClassDB::bind_method(D_METHOD("add_preset", "color"), &ColorPicker::add_preset);
|
||||
ClassDB::bind_method(D_METHOD("_value_changed"), &ColorPicker::_value_changed);
|
||||
ClassDB::bind_method(D_METHOD("_html_entered"), &ColorPicker::_html_entered);
|
||||
ClassDB::bind_method(D_METHOD("_text_type_toggled"), &ColorPicker::_text_type_toggled);
|
||||
|
|
|
@ -2469,7 +2469,7 @@ void Control::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_focus_neighbour", "margin", "neighbour"), &Control::set_focus_neighbour);
|
||||
ClassDB::bind_method(D_METHOD("get_focus_neighbour", "margin"), &Control::get_focus_neighbour);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("force_drag", "data", "preview"), &Control::force_drag);
|
||||
ClassDB::bind_method(D_METHOD("force_drag", "data", "preview:Control"), &Control::force_drag);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_mouse_filter", "filter"), &Control::set_mouse_filter);
|
||||
ClassDB::bind_method(D_METHOD("get_mouse_filter"), &Control::get_mouse_filter);
|
||||
|
|
|
@ -1193,7 +1193,7 @@ void GraphEdit::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("_update_scroll_offset"), &GraphEdit::_update_scroll_offset);
|
||||
ClassDB::bind_method(D_METHOD("_connections_layer_draw"), &GraphEdit::_connections_layer_draw);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_selected", "node"), &GraphEdit::set_selected);
|
||||
ClassDB::bind_method(D_METHOD("set_selected", "node:Node"), &GraphEdit::set_selected);
|
||||
|
||||
ADD_SIGNAL(MethodInfo("connection_request", PropertyInfo(Variant::STRING, "from"), PropertyInfo(Variant::INT, "from_slot"), PropertyInfo(Variant::STRING, "to"), PropertyInfo(Variant::INT, "to_slot")));
|
||||
ADD_SIGNAL(MethodInfo("disconnection_request", PropertyInfo(Variant::STRING, "from"), PropertyInfo(Variant::INT, "from_slot"), PropertyInfo(Variant::STRING, "to"), PropertyInfo(Variant::INT, "to_slot")));
|
||||
|
|
|
@ -1327,7 +1327,7 @@ void ItemList::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("ensure_current_is_visible"), &ItemList::ensure_current_is_visible);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_v_scroll"), &ItemList::get_v_scroll);
|
||||
ClassDB::bind_method(D_METHOD("get_v_scroll:VScrollBar"), &ItemList::get_v_scroll);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_scroll_changed"), &ItemList::_scroll_changed);
|
||||
ClassDB::bind_method(D_METHOD("_gui_input"), &ItemList::_gui_input);
|
||||
|
|
|
@ -54,8 +54,8 @@ Size2 NinePatchRect::get_minimum_size() const {
|
|||
}
|
||||
void NinePatchRect::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_texture", "texture"), &NinePatchRect::set_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_texture"), &NinePatchRect::get_texture);
|
||||
ClassDB::bind_method(D_METHOD("set_texture", "texture:Texture"), &NinePatchRect::set_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_texture:Texture"), &NinePatchRect::get_texture);
|
||||
ClassDB::bind_method(D_METHOD("set_patch_margin", "margin", "value"), &NinePatchRect::set_patch_margin);
|
||||
ClassDB::bind_method(D_METHOD("get_patch_margin", "margin"), &NinePatchRect::get_patch_margin);
|
||||
ClassDB::bind_method(D_METHOD("set_region_rect", "rect"), &NinePatchRect::set_region_rect);
|
||||
|
|
|
@ -2786,7 +2786,7 @@ void Node::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_scene_instance_load_placeholder", "load_placeholder"), &Node::set_scene_instance_load_placeholder);
|
||||
ClassDB::bind_method(D_METHOD("get_scene_instance_load_placeholder"), &Node::get_scene_instance_load_placeholder);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_viewport"), &Node::get_viewport);
|
||||
ClassDB::bind_method(D_METHOD("get_viewport:Viewport"), &Node::get_viewport);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("queue_free"), &Node::queue_delete);
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ Dictionary BitMap::_get_data() const {
|
|||
void BitMap::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("create", "size"), &BitMap::create);
|
||||
ClassDB::bind_method(D_METHOD("create_from_image_alpha", "image"), &BitMap::create_from_image_alpha);
|
||||
ClassDB::bind_method(D_METHOD("create_from_image_alpha", "image:Image"), &BitMap::create_from_image_alpha);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_bit", "pos", "bit"), &BitMap::set_bit);
|
||||
ClassDB::bind_method(D_METHOD("get_bit", "pos"), &BitMap::get_bit);
|
||||
|
|
|
@ -1188,7 +1188,7 @@ void Curve2D::_set_data(const Dictionary &p_data) {
|
|||
baked_cache_dirty = true;
|
||||
}
|
||||
|
||||
PoolVector2Array Curve2D::tesselate(int p_max_stages, float p_tolerance) const {
|
||||
PoolVector2Array Curve2D::tessellate(int p_max_stages, float p_tolerance) const {
|
||||
|
||||
PoolVector2Array tess;
|
||||
|
||||
|
@ -1250,7 +1250,7 @@ void Curve2D::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_baked_length"), &Curve2D::get_baked_length);
|
||||
ClassDB::bind_method(D_METHOD("interpolate_baked", "offset", "cubic"), &Curve2D::interpolate_baked, DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("get_baked_points"), &Curve2D::get_baked_points);
|
||||
ClassDB::bind_method(D_METHOD("tesselate", "max_stages", "tolerance_degrees"), &Curve2D::tesselate, DEFVAL(5), DEFVAL(4));
|
||||
ClassDB::bind_method(D_METHOD("tessellate", "max_stages", "tolerance_degrees"), &Curve2D::tessellate, DEFVAL(5), DEFVAL(4));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_get_data"), &Curve2D::_get_data);
|
||||
ClassDB::bind_method(D_METHOD("_set_data"), &Curve2D::_set_data);
|
||||
|
@ -1683,7 +1683,7 @@ void Curve3D::_set_data(const Dictionary &p_data) {
|
|||
baked_cache_dirty = true;
|
||||
}
|
||||
|
||||
PoolVector3Array Curve3D::tesselate(int p_max_stages, float p_tolerance) const {
|
||||
PoolVector3Array Curve3D::tessellate(int p_max_stages, float p_tolerance) const {
|
||||
|
||||
PoolVector3Array tess;
|
||||
|
||||
|
@ -1748,7 +1748,7 @@ void Curve3D::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("interpolate_baked", "offset", "cubic"), &Curve3D::interpolate_baked, DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("get_baked_points"), &Curve3D::get_baked_points);
|
||||
ClassDB::bind_method(D_METHOD("get_baked_tilts"), &Curve3D::get_baked_tilts);
|
||||
ClassDB::bind_method(D_METHOD("tesselate", "max_stages", "tolerance_degrees"), &Curve3D::tesselate, DEFVAL(5), DEFVAL(4));
|
||||
ClassDB::bind_method(D_METHOD("tessellate", "max_stages", "tolerance_degrees"), &Curve3D::tessellate, DEFVAL(5), DEFVAL(4));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_get_data"), &Curve3D::_get_data);
|
||||
ClassDB::bind_method(D_METHOD("_set_data"), &Curve3D::_set_data);
|
||||
|
|
|
@ -249,7 +249,7 @@ public:
|
|||
Vector2 interpolate_baked(float p_offset, bool p_cubic = false) const;
|
||||
PoolVector2Array get_baked_points() const; //useful for going through
|
||||
|
||||
PoolVector2Array tesselate(int p_max_stages = 5, float p_tolerance = 4) const; //useful for display
|
||||
PoolVector2Array tessellate(int p_max_stages = 5, float p_tolerance = 4) const; //useful for display
|
||||
|
||||
Curve2D();
|
||||
};
|
||||
|
@ -318,7 +318,7 @@ public:
|
|||
PoolVector3Array get_baked_points() const; //useful for going through
|
||||
PoolRealArray get_baked_tilts() const; //useful for going through
|
||||
|
||||
PoolVector3Array tesselate(int p_max_stages = 5, float p_tolerance = 4) const; //useful for display
|
||||
PoolVector3Array tessellate(int p_max_stages = 5, float p_tolerance = 4) const; //useful for display
|
||||
|
||||
Curve3D();
|
||||
};
|
||||
|
|
|
@ -1103,8 +1103,8 @@ void Environment::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_adjustment_saturation", "saturation"), &Environment::set_adjustment_saturation);
|
||||
ClassDB::bind_method(D_METHOD("get_adjustment_saturation"), &Environment::get_adjustment_saturation);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_adjustment_color_correction", "color_correction"), &Environment::set_adjustment_color_correction);
|
||||
ClassDB::bind_method(D_METHOD("get_adjustment_color_correction"), &Environment::get_adjustment_color_correction);
|
||||
ClassDB::bind_method(D_METHOD("set_adjustment_color_correction", "color_correction:Texture"), &Environment::set_adjustment_color_correction);
|
||||
ClassDB::bind_method(D_METHOD("get_adjustment_color_correction:Texture"), &Environment::get_adjustment_color_correction);
|
||||
|
||||
ADD_GROUP("Adjustments", "adjustment_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "adjustment_enabled"), "set_adjustment_enable", "is_adjustment_enabled");
|
||||
|
|
|
@ -570,8 +570,8 @@ void BitmapFont::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("_set_textures"), &BitmapFont::_set_textures);
|
||||
ClassDB::bind_method(D_METHOD("_get_textures"), &BitmapFont::_get_textures);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_fallback", "fallback"), &BitmapFont::set_fallback);
|
||||
ClassDB::bind_method(D_METHOD("get_fallback"), &BitmapFont::get_fallback);
|
||||
ClassDB::bind_method(D_METHOD("set_fallback", "fallback:BitmapFont"), &BitmapFont::set_fallback);
|
||||
ClassDB::bind_method(D_METHOD("get_fallback:BitmapFont"), &BitmapFont::get_fallback);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "textures", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "_set_textures", "_get_textures");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::POOL_INT_ARRAY, "chars", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "_set_chars", "_get_chars");
|
||||
|
|
|
@ -520,8 +520,8 @@ void MeshDataTool::set_material(const Ref<Material> &p_material) {
|
|||
void MeshDataTool::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("clear"), &MeshDataTool::clear);
|
||||
ClassDB::bind_method(D_METHOD("create_from_surface", "mesh", "surface"), &MeshDataTool::create_from_surface);
|
||||
ClassDB::bind_method(D_METHOD("commit_to_surface", "mesh"), &MeshDataTool::commit_to_surface);
|
||||
ClassDB::bind_method(D_METHOD("create_from_surface", "mesh:ArrayMesh", "surface"), &MeshDataTool::create_from_surface);
|
||||
ClassDB::bind_method(D_METHOD("commit_to_surface", "mesh:ArrayMesh"), &MeshDataTool::commit_to_surface);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_format"), &MeshDataTool::get_format);
|
||||
|
||||
|
@ -574,7 +574,7 @@ void MeshDataTool::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_face_normal", "idx"), &MeshDataTool::get_face_normal);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_material", "material:Material"), &MeshDataTool::set_material);
|
||||
ClassDB::bind_method(D_METHOD("get_material", "material"), &MeshDataTool::get_material);
|
||||
ClassDB::bind_method(D_METHOD("get_material:Material", "material"), &MeshDataTool::get_material);
|
||||
}
|
||||
|
||||
MeshDataTool::MeshDataTool() {
|
||||
|
|
|
@ -1323,8 +1323,8 @@ void CubeMap::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_flags", "flags"), &CubeMap::set_flags);
|
||||
ClassDB::bind_method(D_METHOD("get_flags"), &CubeMap::get_flags);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_side", "side", "image"), &CubeMap::set_side);
|
||||
ClassDB::bind_method(D_METHOD("get_side", "side"), &CubeMap::get_side);
|
||||
ClassDB::bind_method(D_METHOD("set_side", "side", "image:Image"), &CubeMap::set_side);
|
||||
ClassDB::bind_method(D_METHOD("get_side:Image", "side"), &CubeMap::get_side);
|
||||
ClassDB::bind_method(D_METHOD("set_storage", "mode"), &CubeMap::set_storage);
|
||||
ClassDB::bind_method(D_METHOD("get_storage"), &CubeMap::get_storage);
|
||||
ClassDB::bind_method(D_METHOD("set_lossy_storage_quality", "quality"), &CubeMap::set_lossy_storage_quality);
|
||||
|
|
|
@ -984,10 +984,10 @@ void AudioServer::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_bus_bypass_effects", "bus_idx", "enable"), &AudioServer::set_bus_bypass_effects);
|
||||
ClassDB::bind_method(D_METHOD("is_bus_bypassing_effects", "bus_idx"), &AudioServer::is_bus_bypassing_effects);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("add_bus_effect", "bus_idx", "effect:AudioEffect"), &AudioServer::add_bus_effect, DEFVAL(-1));
|
||||
ClassDB::bind_method(D_METHOD("add_bus_effect", "bus_idx", "effect:AudioEffect", "at_pos"), &AudioServer::add_bus_effect, DEFVAL(-1));
|
||||
ClassDB::bind_method(D_METHOD("remove_bus_effect", "bus_idx", "effect_idx"), &AudioServer::remove_bus_effect);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_bus_effect_count", "bus_idx"), &AudioServer::add_bus_effect);
|
||||
ClassDB::bind_method(D_METHOD("get_bus_effect_count", "bus_idx"), &AudioServer::get_bus_effect_count);
|
||||
ClassDB::bind_method(D_METHOD("get_bus_effect:AudioEffect", "bus_idx", "effect_idx"), &AudioServer::get_bus_effect);
|
||||
ClassDB::bind_method(D_METHOD("swap_bus_effects", "bus_idx", "effect_idx", "by_effect_idx"), &AudioServer::swap_bus_effects);
|
||||
|
||||
|
|
Loading…
Reference in New Issue