mirror of
				https://github.com/tonytins/CozyPixelStudio.git
				synced 2025-11-04 06:24:43 -05:00 
			
		
		
		
	The purpose of this is to generalize some selection code, so that it applies to all polygons, the entire selection. More will follow.
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
[gd_scene load_steps=9 format=2]
 | 
						|
 | 
						|
[ext_resource path="res://src/UI/Canvas/Canvas.gd" type="Script" id=1]
 | 
						|
[ext_resource path="res://src/UI/Canvas/Grid.gd" type="Script" id=2]
 | 
						|
[ext_resource path="res://src/UI/Canvas/Indicators.gd" type="Script" id=3]
 | 
						|
[ext_resource path="res://src/UI/Canvas/TileMode.gd" type="Script" id=4]
 | 
						|
[ext_resource path="res://src/UI/Canvas/CurrentFrameDrawer.gd" type="Script" id=5]
 | 
						|
[ext_resource path="res://src/UI/Canvas/PixelGrid.gd" type="Script" id=6]
 | 
						|
[ext_resource path="res://src/UI/Canvas/Selection.gd" type="Script" id=7]
 | 
						|
 | 
						|
[sub_resource type="CanvasItemMaterial" id=1]
 | 
						|
blend_mode = 4
 | 
						|
 | 
						|
[node name="Canvas" type="Node2D"]
 | 
						|
script = ExtResource( 1 )
 | 
						|
 | 
						|
[node name="CurrentlyVisibleFrame" type="Viewport" parent="."]
 | 
						|
transparent_bg = true
 | 
						|
handle_input_locally = false
 | 
						|
hdr = false
 | 
						|
disable_3d = true
 | 
						|
usage = 0
 | 
						|
render_target_v_flip = true
 | 
						|
render_target_update_mode = 3
 | 
						|
 | 
						|
[node name="CurrentFrameDrawer" type="Node2D" parent="CurrentlyVisibleFrame"]
 | 
						|
script = ExtResource( 5 )
 | 
						|
 | 
						|
[node name="TileMode" type="Node2D" parent="."]
 | 
						|
material = SubResource( 1 )
 | 
						|
script = ExtResource( 4 )
 | 
						|
 | 
						|
[node name="PixelGrid" type="Node2D" parent="."]
 | 
						|
script = ExtResource( 6 )
 | 
						|
 | 
						|
[node name="Grid" type="Node2D" parent="."]
 | 
						|
script = ExtResource( 2 )
 | 
						|
 | 
						|
[node name="Selection" type="Node2D" parent="."]
 | 
						|
script = ExtResource( 7 )
 | 
						|
 | 
						|
[node name="Indicators" type="Node2D" parent="."]
 | 
						|
script = ExtResource( 3 )
 |