Lines Matching refs:tile_set

178 	if (tile_set.is_valid()) {  in set_tileset()
179 tile_set->disconnect("changed", this, "_recreate_quadrants"); in set_tileset()
180 tile_set->remove_change_receptor(this); in set_tileset()
184 tile_set = p_tileset; in set_tileset()
186 if (tile_set.is_valid()) { in set_tileset()
187 tile_set->connect("changed", this, "_recreate_quadrants"); in set_tileset()
188 tile_set->add_change_receptor(this); in set_tileset()
199 return tile_set; in get_tileset()
331 if (!is_inside_tree() || !tile_set.is_valid()) { in update_dirty_quadrants()
399 if (!tile_set->has_tile(c.id)) in update_dirty_quadrants()
401 Ref<Texture> tex = tile_set->tile_get_texture(c.id); in update_dirty_quadrants()
402 Vector2 tile_ofs = tile_set->tile_get_texture_offset(c.id); in update_dirty_quadrants()
410 Ref<ShaderMaterial> mat = tile_set->tile_get_material(c.id); in update_dirty_quadrants()
411 int z_index = tile_set->tile_get_z_index(c.id); in update_dirty_quadrants()
413 if (tile_set->tile_get_tile_mode(c.id) == TileSet::AUTO_TILE || in update_dirty_quadrants()
414 tile_set->tile_get_tile_mode(c.id) == TileSet::ATLAS_TILE) { in update_dirty_quadrants()
415 … z_index += tile_set->autotile_get_z_index(c.id, Vector2(c.autotile_coord_x, c.autotile_coord_y)); in update_dirty_quadrants()
457 Rect2 r = tile_set->tile_get_region(c.id); in update_dirty_quadrants()
458 …if (tile_set->tile_get_tile_mode(c.id) == TileSet::AUTO_TILE || tile_set->tile_get_tile_mode(c.id)… in update_dirty_quadrants()
459 int spacing = tile_set->autotile_get_spacing(c.id); in update_dirty_quadrants()
460 r.size = tile_set->autotile_get_size(c.id); in update_dirty_quadrants()
544 Ref<Texture> normal_map = tile_set->tile_get_normal_map(c.id); in update_dirty_quadrants()
545 Color modulate = tile_set->tile_get_modulate(c.id); in update_dirty_quadrants()
555 Vector<TileSet::ShapeData> shapes = tile_set->tile_get_shapes(c.id); in update_dirty_quadrants()
560 …if (tile_set->tile_get_tile_mode(c.id) == TileSet::SINGLE_TILE || (shapes[j].autotile_coord.x == c… in update_dirty_quadrants()
601 …if (tile_set->tile_get_tile_mode(c.id) == TileSet::AUTO_TILE || tile_set->tile_get_tile_mode(c.id)… in update_dirty_quadrants()
602 …navpoly = tile_set->autotile_get_navigation_polygon(c.id, Vector2(c.autotile_coord_x, c.autotile_c… in update_dirty_quadrants()
605 navpoly = tile_set->tile_get_navigation_polygon(c.id); in update_dirty_quadrants()
606 npoly_ofs = tile_set->tile_get_navigation_polygon_offset(c.id); in update_dirty_quadrants()
673 …if (tile_set->tile_get_tile_mode(c.id) == TileSet::AUTO_TILE || tile_set->tile_get_tile_mode(c.id)… in update_dirty_quadrants()
674 …occluder = tile_set->autotile_get_light_occluder(c.id, Vector2(c.autotile_coord_x, c.autotile_coor… in update_dirty_quadrants()
676 occluder = tile_set->tile_get_light_occluder(c.id); in update_dirty_quadrants()
679 Vector2 occluder_ofs = tile_set->tile_get_occluder_offset(c.id); in update_dirty_quadrants()
955 ERR_FAIL_COND_MSG(tile_set.is_null(), "Cannot update cell bitmask if Tileset is not open."); in update_cell_bitmask()
960 if (tile_set->tile_get_tile_mode(id) == TileSet::AUTO_TILE) { in update_cell_bitmask()
962 if (tile_set->autotile_get_bitmask_mode(id) == TileSet::BITMASK_2X2) { in update_cell_bitmask()
963 …if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y - 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
966 …if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y - 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
969 …if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y + 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
972 …if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y + 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
976 if (tile_set->autotile_get_bitmask_mode(id) == TileSet::BITMASK_3X3_MINIMAL) { in update_cell_bitmask()
977 …if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y - 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
980 …if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y - 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
983 …if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y + 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
986 …if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y + 1)) && tile_set->is_tile_bound(id, get_cel… in update_cell_bitmask()
990 if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y - 1))) { in update_cell_bitmask()
993 if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y - 1))) { in update_cell_bitmask()
996 if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y + 1))) { in update_cell_bitmask()
999 if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y + 1))) { in update_cell_bitmask()
1003 if (tile_set->is_tile_bound(id, get_cell(p_x, p_y - 1))) { in update_cell_bitmask()
1006 if (tile_set->is_tile_bound(id, get_cell(p_x - 1, p_y))) { in update_cell_bitmask()
1010 if (tile_set->is_tile_bound(id, get_cell(p_x + 1, p_y))) { in update_cell_bitmask()
1013 if (tile_set->is_tile_bound(id, get_cell(p_x, p_y + 1))) { in update_cell_bitmask()
1017 Vector2 coord = tile_set->autotile_get_subtile_for_bitmask(id, mask, this, Vector2(p_x, p_y)); in update_cell_bitmask()
1025 } else if (tile_set->tile_get_tile_mode(id) == TileSet::SINGLE_TILE) { in update_cell_bitmask()
1029 } else if (tile_set->tile_get_tile_mode(id) == TileSet::ATLAS_TILE) { in update_cell_bitmask()
1031 if (tile_set->autotile_get_bitmask(id, Vector2(p_x, p_y)) == TileSet::BIND_CENTER) { in update_cell_bitmask()
1032 Vector2 coord = tile_set->atlastile_get_subtile_by_priority(id, this, Vector2(p_x, p_y)); in update_cell_bitmask()
1051 ERR_FAIL_COND_MSG(tile_set.is_null(), "Cannot fix invalid tiles if Tileset is not open."); in fix_invalid_tiles()
1054 if (!tile_set->has_tile(get_cell(E->key().x, E->key().y))) { in fix_invalid_tiles()
1937 if (tile_set.is_valid() && tile_set.ptr() == p_changed) { in _changed_callback()
1976 if (tile_set.is_valid()) in ~TileMap()
1977 tile_set->remove_change_receptor(this); in ~TileMap()