# {py:mod}`simvx.editor.panels.tilemap_editor` ```{py:module} simvx.editor.panels.tilemap_editor ``` ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`TileMapTool ` - ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapTool :summary: ``` * - {py:obj}`TileMapEditorPanel ` - ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.log :summary: ``` * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.__all__ :summary: ``` ```` ### API ````{py:data} log :canonical: simvx.editor.panels.tilemap_editor.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.log ``` ```` ````{py:data} __all__ :canonical: simvx.editor.panels.tilemap_editor.__all__ :value: > ['TileMapEditorPanel', 'TileMapTool'] ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.__all__ ``` ```` `````{py:class} TileMapTool :canonical: simvx.editor.panels.tilemap_editor.TileMapTool Bases: {py:obj}`enum.Enum` ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapTool ``` ````{py:attribute} PAINT :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.PAINT :value: > 'auto(...)' ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapTool.PAINT ``` ```` ````{py:attribute} ERASE :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.ERASE :value: > 'auto(...)' ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapTool.ERASE ``` ```` ````{py:attribute} FILL :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.FILL :value: > 'auto(...)' ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapTool.FILL ``` ```` ````{py:attribute} PICK :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.PICK :value: > 'auto(...)' ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapTool.PICK ``` ```` ````{py:method} __new__(value) :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__new__ ```` ````{py:method} __repr__() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__repr__ ```` ````{py:method} __str__() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__str__ ```` ````{py:method} __dir__() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__dir__ ```` ````{py:method} __format__(format_spec) :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__format__ ```` ````{py:method} __hash__() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__hash__ ```` ````{py:method} __reduce_ex__(proto) :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__reduce_ex__ ```` ````{py:method} __deepcopy__(memo) :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__deepcopy__ ```` ````{py:method} __copy__() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.__copy__ ```` ````{py:method} name() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.name ```` ````{py:method} value() :canonical: simvx.editor.panels.tilemap_editor.TileMapTool.value ```` ````` `````{py:class} TileMapEditorPanel(editor_state: simvx.editor.state.EditorState, **kwargs) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel Bases: {py:obj}`simvx.core.Control` ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.__init__ ``` ````{py:property} selected_tool :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.selected_tool :type: simvx.editor.panels.tilemap_editor.TileMapTool ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.selected_tool ``` ```` ````{py:property} current_tile_id :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.current_tile_id :type: int ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.current_tile_id ``` ```` ````{py:property} brush_size :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.brush_size :type: int ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.brush_size ``` ```` ````{py:method} paint_at(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.paint_at ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.paint_at ``` ```` ````{py:method} erase_at(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.erase_at ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.erase_at ``` ```` ````{py:method} fill_at(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.fill_at ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.fill_at ``` ```` ````{py:method} pick_at(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.pick_at ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.pick_at ``` ```` ````{py:method} begin_stroke(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.begin_stroke ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.begin_stroke ``` ```` ````{py:method} continue_stroke(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.continue_stroke ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.continue_stroke ``` ```` ````{py:method} end_stroke() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.end_stroke ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.end_stroke ``` ```` ````{py:method} handle_viewport_click(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.handle_viewport_click ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.handle_viewport_click ``` ```` ````{py:method} handle_viewport_drag(grid_x: int, grid_y: int) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.handle_viewport_drag ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.handle_viewport_drag ``` ```` ````{py:method} handle_viewport_release() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.handle_viewport_release ```{autodoc2-docstring} simvx.editor.panels.tilemap_editor.TileMapEditorPanel.handle_viewport_release ``` ```` ````{py:method} draw(renderer) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.draw ```` ````{py:method} process(dt: float) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.process ```` ````{py:attribute} size_x :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.size_y :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.size :type: simvx.core.math.types.Vec2 ```` ````{py:attribute} touch_mode :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.touch_mode :type: str :value: > 'mouse' ```` ````{py:property} theme :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.theme :type: simvx.core.ui.types.Theme | None ```` ````{py:property} mouse_over :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.mouse_over :type: bool ```` ````{py:property} focused :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.focused :type: bool ```` ````{py:property} disabled :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.disabled :type: bool ```` ````{py:method} get_theme() -> simvx.core.ui.types.Theme :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_theme ```` ````{py:method} queue_redraw() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.queue_redraw ```` ````{py:method} get_minimum_size() -> simvx.core.math.types.Vec2 :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_minimum_size ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.enums.AnchorPreset) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.is_popup_point_inside ```` ````{py:method} popup_input(event) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.popup_input ```` ````{py:method} dismiss_popup() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.z_as_relative :value: > 'Property(...)' ```` ````{py:attribute} render_layer :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.render_layer :value: > 'Property(...)' ```` ````{py:method} set_render_layer(index: int, enabled: bool = True) -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.set_render_layer ```` ````{py:method} is_on_render_layer(index: int) -> bool :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.is_on_render_layer ```` ````{py:property} absolute_z_index :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_position :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.world_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_rotation :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.world_rotation :type: float ```` ````{py:property} world_scale :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.world_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, colour=None) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.wrap_screen ```` ````{py:attribute} strict_errors :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.strict_errors :type: typing.ClassVar[bool] :value: > True ```` ````{py:attribute} script_error_raised :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.name :type: str ```` ````{py:property} process_mode :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:method} reset_error() -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.reset_error ```` ````{py:method} add_child(node: simvx.core.node.Node) -> simvx.core.node.Node :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.add_child ```` ````{py:method} remove_child(node: simvx.core.node.Node) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.find_child ```` ````{py:method} find(node_type: type, recursive: bool = True) -> simvx.core.node.Node | None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.find_all ```` ````{py:property} path :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.exit_tree ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.physics_process ```` ````{py:method} input_event(event: simvx.core.events.InputEvent) -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.input_event ```` ````{py:method} input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.stop_coroutine ```` ````{py:method} clear_children() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.clear_children ```` ````{py:method} destroy() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.destroy ```` ````{py:property} app :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.app ```` ````{py:property} tree :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} get_tree() -> simvx.core.scene_tree.SceneTree :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.get_properties :classmethod: ```` ````{py:method} __repr__() :canonical: simvx.editor.panels.tilemap_editor.TileMapEditorPanel.__repr__ ```` `````