mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Organize the selection tool files in a new folder
This commit is contained in:
parent
b3d581bad4
commit
708a1ddc20
|
@ -39,9 +39,9 @@ class Slot:
|
||||||
signal color_changed(color, button)
|
signal color_changed(color, button)
|
||||||
|
|
||||||
var _tools = {
|
var _tools = {
|
||||||
"RectSelect" : "res://src/Tools/RectSelect.tscn",
|
"RectSelect" : "res://src/Tools/SelectionTools/RectSelect.tscn",
|
||||||
"ColorSelect" : "res://src/Tools/ColorSelect.tscn",
|
"ColorSelect" : "res://src/Tools/SelectionTools/ColorSelect.tscn",
|
||||||
"MagicWand" : "res://src/Tools/MagicWand.tscn",
|
"MagicWand" : "res://src/Tools/SelectionTools/MagicWand.tscn",
|
||||||
"Move" : "res://src/Tools/Move.tscn",
|
"Move" : "res://src/Tools/Move.tscn",
|
||||||
"Zoom" : "res://src/Tools/Zoom.tscn",
|
"Zoom" : "res://src/Tools/Zoom.tscn",
|
||||||
"Pan" : "res://src/Tools/Pan.tscn",
|
"Pan" : "res://src/Tools/Pan.tscn",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends "res://src/Tools/SelectionTool.gd"
|
extends "res://src/Tools/SelectionTools/SelectionTool.gd"
|
||||||
|
|
||||||
|
|
||||||
func draw_move(_position : Vector2) -> void:
|
func draw_move(_position : Vector2) -> void:
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://src/Tools/ColorSelect.gd" type="Script" id=2]
|
[ext_resource path="res://src/Tools/SelectionTools/ColorSelect.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="ToolOptions" instance=ExtResource( 1 )]
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
|
@ -1,4 +1,4 @@
|
||||||
extends "res://src/Tools/SelectionTool.gd"
|
extends "res://src/Tools/SelectionTools/SelectionTool.gd"
|
||||||
|
|
||||||
|
|
||||||
func draw_move(_position : Vector2) -> void:
|
func draw_move(_position : Vector2) -> void:
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://src/Tools/MagicWand.gd" type="Script" id=2]
|
[ext_resource path="res://src/Tools/SelectionTools/MagicWand.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="ToolOptions" instance=ExtResource( 1 )]
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
|
@ -1,4 +1,4 @@
|
||||||
extends "res://src/Tools/SelectionTool.gd"
|
extends "res://src/Tools/SelectionTools/SelectionTool.gd"
|
||||||
|
|
||||||
|
|
||||||
var _rect := Rect2(0, 0, 0, 0)
|
var _rect := Rect2(0, 0, 0, 0)
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://src/Tools/RectSelect.gd" type="Script" id=2]
|
[ext_resource path="res://src/Tools/SelectionTools/RectSelect.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="ToolOptions" instance=ExtResource( 1 )]
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://src/Tools/SelectionTool.gd" type="Script" id=2]
|
[ext_resource path="res://src/Tools/SelectionTools/SelectionTool.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="ToolOptions" instance=ExtResource( 1 )]
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
Loading…
Reference in a new issue