mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Make palette swatches use TransparentChecker.tscn
This commit is contained in:
parent
1b9e0c1ea0
commit
893b2a8c7f
|
@ -1,19 +1,7 @@
|
||||||
[gd_scene load_steps=4 format=3 uid="uid://bwrn3rwka2ssa"]
|
[gd_scene load_steps=3 format=3 uid="uid://bwrn3rwka2ssa"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/Palette/PaletteSwatch.gd" id="1"]
|
[ext_resource type="Script" path="res://src/Palette/PaletteSwatch.gd" id="1"]
|
||||||
[ext_resource type="Shader" path="res://src/Shaders/TransparentChecker.gdshader" id="2_8xme1"]
|
[ext_resource type="PackedScene" uid="uid://3pmb60gpst7b" path="res://src/UI/Nodes/TransparentChecker.tscn" id="2_hujmr"]
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="2"]
|
|
||||||
shader = ExtResource("2_8xme1")
|
|
||||||
shader_parameter/size = 10.0
|
|
||||||
shader_parameter/alpha = 1.0
|
|
||||||
shader_parameter/color1 = Color(0.878431, 0.878431, 0.878431, 1)
|
|
||||||
shader_parameter/color2 = Color(1, 1, 1, 1)
|
|
||||||
shader_parameter/offset = Vector2(0, 0)
|
|
||||||
shader_parameter/scale = Vector2(0.8, 0.8)
|
|
||||||
shader_parameter/rect_size = Vector2(0, 0)
|
|
||||||
shader_parameter/follow_movement = false
|
|
||||||
shader_parameter/follow_scale = true
|
|
||||||
|
|
||||||
[node name="PaletteSwatch" type="ColorRect"]
|
[node name="PaletteSwatch" type="ColorRect"]
|
||||||
custom_minimum_size = Vector2(8, 8)
|
custom_minimum_size = Vector2(8, 8)
|
||||||
|
@ -31,12 +19,13 @@ mouse_default_cursor_shape = 2
|
||||||
color = Color(0, 0, 0, 0)
|
color = Color(0, 0, 0, 0)
|
||||||
script = ExtResource("1")
|
script = ExtResource("1")
|
||||||
|
|
||||||
[node name="TransparentChecker" type="ColorRect" parent="."]
|
[node name="TransparentChecker" parent="." instance=ExtResource("2_hujmr")]
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
material = SubResource("2")
|
layout_mode = 1
|
||||||
layout_mode = 0
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
mouse_filter = 2
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
[connection signal="gui_input" from="." to="." method="_on_PaletteSlot_gui_input"]
|
[connection signal="gui_input" from="." to="." method="_on_PaletteSlot_gui_input"]
|
||||||
|
|
Loading…
Reference in a new issue