2025-07-03 18:05:06 -06:00
|
|
|
[gd_scene load_steps=3 format=3 uid="uid://cdi5sl60mw1po"]
|
|
|
|
|
2025-07-04 01:47:17 -06:00
|
|
|
[ext_resource type="Script" uid="uid://co0g2klfmor48" path="res://src/world/gunkable/gunkable.gd" id="1_47xoo"]
|
|
|
|
[ext_resource type="Script" uid="uid://bom5qysgfvap1" path="res://src/world/gunkable/draw_controller.gd" id="2_srn13"]
|
2025-07-03 18:05:06 -06:00
|
|
|
|
|
|
|
[node name="Gunkable" type="Node" groups=["Persistent"]]
|
|
|
|
script = ExtResource("1_47xoo")
|
|
|
|
metadata/_custom_type_script = "uid://co0g2klfmor48"
|
|
|
|
|
|
|
|
[node name="MaskViewport" type="SubViewport" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
transparent_bg = true
|
|
|
|
handle_input_locally = false
|
|
|
|
size = Vector2i(1024, 1024)
|
|
|
|
render_target_clear_mode = 1
|
|
|
|
render_target_update_mode = 4
|
|
|
|
|
|
|
|
[node name="MaskClear" type="ColorRect" parent="MaskViewport"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
|
|
|
|
[node name="MaskTexture" type="TextureRect" parent="MaskViewport"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="MaskControl" type="Control" parent="MaskViewport"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
script = ExtResource("2_srn13")
|
|
|
|
|
|
|
|
[connection signal="visibility_changed" from="MaskViewport/MaskClear" to="MaskViewport/MaskControl" method="_set_dirty"]
|
|
|
|
[connection signal="visibility_changed" from="MaskViewport/MaskTexture" to="MaskViewport/MaskControl" method="_set_dirty"]
|
|
|
|
[connection signal="draw" from="MaskViewport/MaskControl" to="." method="_on_mask_painted"]
|