You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
This commit is contained in:
@@ -1346,20 +1346,20 @@ void TileMapEditor::_icon_size_changed(float p_value) {
|
||||
|
||||
void TileMapEditor::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_text_entered"),&TileMapEditor::_text_entered);
|
||||
ObjectTypeDB::bind_method(_MD("_text_changed"),&TileMapEditor::_text_changed);
|
||||
ObjectTypeDB::bind_method(_MD("_sbox_input"),&TileMapEditor::_sbox_input);
|
||||
ObjectTypeDB::bind_method(_MD("_menu_option"),&TileMapEditor::_menu_option);
|
||||
ObjectTypeDB::bind_method(_MD("_canvas_draw"),&TileMapEditor::_canvas_draw);
|
||||
ObjectTypeDB::bind_method(_MD("_canvas_mouse_enter"),&TileMapEditor::_canvas_mouse_enter);
|
||||
ObjectTypeDB::bind_method(_MD("_canvas_mouse_exit"),&TileMapEditor::_canvas_mouse_exit);
|
||||
ObjectTypeDB::bind_method(_MD("_tileset_settings_changed"),&TileMapEditor::_tileset_settings_changed);
|
||||
ObjectTypeDB::bind_method(_MD("_update_transform_buttons"),&TileMapEditor::_update_transform_buttons);
|
||||
ClassDB::bind_method(_MD("_text_entered"),&TileMapEditor::_text_entered);
|
||||
ClassDB::bind_method(_MD("_text_changed"),&TileMapEditor::_text_changed);
|
||||
ClassDB::bind_method(_MD("_sbox_input"),&TileMapEditor::_sbox_input);
|
||||
ClassDB::bind_method(_MD("_menu_option"),&TileMapEditor::_menu_option);
|
||||
ClassDB::bind_method(_MD("_canvas_draw"),&TileMapEditor::_canvas_draw);
|
||||
ClassDB::bind_method(_MD("_canvas_mouse_enter"),&TileMapEditor::_canvas_mouse_enter);
|
||||
ClassDB::bind_method(_MD("_canvas_mouse_exit"),&TileMapEditor::_canvas_mouse_exit);
|
||||
ClassDB::bind_method(_MD("_tileset_settings_changed"),&TileMapEditor::_tileset_settings_changed);
|
||||
ClassDB::bind_method(_MD("_update_transform_buttons"),&TileMapEditor::_update_transform_buttons);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_fill_points"),&TileMapEditor::_fill_points);
|
||||
ObjectTypeDB::bind_method(_MD("_erase_points"),&TileMapEditor::_erase_points);
|
||||
ClassDB::bind_method(_MD("_fill_points"),&TileMapEditor::_fill_points);
|
||||
ClassDB::bind_method(_MD("_erase_points"),&TileMapEditor::_erase_points);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_icon_size_changed"), &TileMapEditor::_icon_size_changed);
|
||||
ClassDB::bind_method(_MD("_icon_size_changed"), &TileMapEditor::_icon_size_changed);
|
||||
}
|
||||
|
||||
TileMapEditor::CellOp TileMapEditor::_get_op_from_cell(const Point2i& p_pos)
|
||||
@@ -1560,7 +1560,7 @@ void TileMapEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
bool TileMapEditorPlugin::handles(Object *p_object) const {
|
||||
|
||||
return p_object->is_type("TileMap");
|
||||
return p_object->is_class("TileMap");
|
||||
}
|
||||
|
||||
void TileMapEditorPlugin::make_visible(bool p_visible) {
|
||||
|
||||
Reference in New Issue
Block a user