#include "tile_atlas_view.h"
#include "core/input/input.h"
#include "core/os/keyboard.h"
#include "editor/editor_settings.h"
#include "editor/themes/editor_scale.h"
#include "scene/2d/tile_map.h"
#include "scene/gui/box_container.h"
#include "scene/gui/label.h"
#include "scene/gui/panel.h"
#include "scene/gui/view_panner.h"
void TileAtlasView::gui_input(const Ref<InputEvent> &p_event) { … }
void TileAtlasView::_pan_callback(Vector2 p_scroll_vec, Ref<InputEvent> p_event) { … }
void TileAtlasView::_zoom_callback(float p_zoom_factor, Vector2 p_origin, Ref<InputEvent> p_event) { … }
Size2i TileAtlasView::_compute_base_tiles_control_size() { … }
Size2i TileAtlasView::_compute_alternative_tiles_control_size() { … }
void TileAtlasView::_update_zoom_and_panning(bool p_zoom_on_mouse_pos) { … }
void TileAtlasView::_zoom_widget_changed() { … }
void TileAtlasView::_center_view() { … }
void TileAtlasView::_base_tiles_root_control_gui_input(const Ref<InputEvent> &p_event) { … }
void TileAtlasView::_draw_base_tiles() { … }
RID TileAtlasView::_get_canvas_item_to_draw(const TileData *p_for_data, const CanvasItem *p_base_item, HashMap<Ref<Material>, RID> &p_material_map) { … }
void TileAtlasView::_clear_material_canvas_items() { … }
void TileAtlasView::_draw_base_tiles_texture_grid() { … }
void TileAtlasView::_draw_base_tiles_shape_grid() { … }
void TileAtlasView::_alternative_tiles_root_control_gui_input(const Ref<InputEvent> &p_event) { … }
void TileAtlasView::_draw_alternatives() { … }
void TileAtlasView::_draw_background_left() { … }
void TileAtlasView::_draw_background_right() { … }
void TileAtlasView::set_atlas_source(TileSet *p_tile_set, TileSetAtlasSource *p_tile_set_atlas_source, int p_source_id) { … }
float TileAtlasView::get_zoom() const {
return zoom_widget->get_zoom();
};
void TileAtlasView::set_transform(float p_zoom, Vector2i p_panning) {
zoom_widget->set_zoom(p_zoom);
panning = p_panning;
_update_zoom_and_panning();
};
void TileAtlasView::set_padding(Side p_side, int p_padding) { … }
Vector2i TileAtlasView::get_atlas_tile_coords_at_pos(const Vector2 p_pos, bool p_clamp) const { … }
void TileAtlasView::_update_alternative_tiles_rect_cache() { … }
Vector3i TileAtlasView::get_alternative_tile_at_pos(const Vector2 p_pos) const { … }
Rect2i TileAtlasView::get_alternative_tile_rect(const Vector2i p_coords, int p_alternative_tile) { … }
void TileAtlasView::queue_redraw() { … }
void TileAtlasView::_update_theme_item_cache() { … }
void TileAtlasView::_notification(int p_what) { … }
void TileAtlasView::_bind_methods() { … }
TileAtlasView::TileAtlasView() { … }
TileAtlasView::~TileAtlasView() { … }