mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
57
Scenes/Prefabs/Editor/EditorProperties/TilePropertyBool.tscn
Normal file
57
Scenes/Prefabs/Editor/EditorProperties/TilePropertyBool.tscn
Normal file
@@ -0,0 +1,57 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://diqn7e5hqpbsk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b5jrj8u7cx8id" path="res://Scripts/Parts/TilePropertyValue.gd" id="1_gida3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnv2ocqgws3p7" path="res://Assets/Sprites/UI/Panel.png" id="2_6srr6"]
|
||||
[ext_resource type="Texture2D" uid="uid://7qtdxl2cjxeh" path="res://Assets/Sprites/UI/Checkbox.png" id="3_qo1tt"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_n7jgg"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_0slfq"]
|
||||
texture = ExtResource("2_6srr6")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_n7jgg"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gida3"]
|
||||
atlas = ExtResource("3_qo1tt")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6srr6"]
|
||||
atlas = ExtResource("3_qo1tt")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[node name="TilePropertyBOOL" type="HBoxContainer"]
|
||||
script = ExtResource("1_gida3")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
theme_override_icons/icon = SubResource("CompressedTexture2D_n7jgg")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_0slfq")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxTexture_0slfq")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_0slfq")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxTexture_0slfq")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_0slfq")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_n7jgg")
|
||||
theme_override_icons/checked = SubResource("AtlasTexture_gida3")
|
||||
theme_override_icons/unchecked = SubResource("AtlasTexture_6srr6")
|
||||
theme_override_icons/radio_checked = SubResource("CompressedTexture2D_n7jgg")
|
||||
theme_override_icons/radio_unchecked = SubResource("CompressedTexture2D_n7jgg")
|
||||
theme_override_icons/checked_disabled = SubResource("CompressedTexture2D_n7jgg")
|
||||
theme_override_icons/unchecked_disabled = SubResource("CompressedTexture2D_n7jgg")
|
||||
theme_override_icons/radio_checked_disabled = SubResource("CompressedTexture2D_n7jgg")
|
||||
theme_override_icons/radio_unchecked_disabled = SubResource("CompressedTexture2D_n7jgg")
|
||||
|
||||
[connection signal="start_value_changed" from="." to="CheckBox" method="set_pressed_no_signal"]
|
||||
[connection signal="toggled" from="CheckBox" to="." method="set_value"]
|
35
Scenes/Prefabs/Editor/EditorProperties/TilePropertyEnum.tscn
Normal file
35
Scenes/Prefabs/Editor/EditorProperties/TilePropertyEnum.tscn
Normal file
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://87lcnsa0epi1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://codql1f5eca56" path="res://Scripts/Classes/Editor/OptionButtonThatIsntFuckingBlurry.gd" id="1_r12ps"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_dvo62"]
|
||||
script/source = "extends TilePropertyContainer
|
||||
|
||||
func _ready() -> void:
|
||||
$Label.text = tile_property_name.replace(\"_\", \" \")
|
||||
for i in values:
|
||||
$OptionButton.add_item(values[i].to_upper(), i)
|
||||
"
|
||||
|
||||
[node name="TilePropertyEnum" type="HBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 24)
|
||||
offset_right = 145.0
|
||||
offset_bottom = 24.0
|
||||
script = SubResource("GDScript_dvo62")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="OptionButton" type="OptionButton" parent="."]
|
||||
custom_minimum_size = Vector2(64, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
script = ExtResource("1_r12ps")
|
||||
metadata/_custom_type_script = "uid://codql1f5eca56"
|
||||
|
||||
[connection signal="start_value_changed" from="." to="OptionButton" method="select"]
|
||||
[connection signal="item_selected" from="OptionButton" to="." method="set_value"]
|
@@ -0,0 +1,49 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://4pi0tdru3c4v"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_ok74a"]
|
||||
script/source = "extends TilePropertyContainer
|
||||
|
||||
func _ready() -> void:
|
||||
%Label.text = (tile_property_name).replace(\"_\", \" \") + \":\"
|
||||
$HSlider.min_value = min_value
|
||||
$HSlider.step = property_step
|
||||
$HSlider.max_value = max_value
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
%Value.text = str(int($HSlider.value))
|
||||
"
|
||||
|
||||
[node name="TilePropertyIntRange" type="HBoxContainer"]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 16.0
|
||||
grow_horizontal = 2
|
||||
script = SubResource("GDScript_ok74a")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="."]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(96, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
|
||||
[node name="Value" type="Label" parent="HSlider"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "0"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="start_value_changed" from="." to="HSlider" method="set_value_no_signal"]
|
||||
[connection signal="value_changed" from="HSlider" to="." method="set_value"]
|
39
Scenes/Prefabs/Editor/EditorProperties/TilePropertyIntRangeSpin.tscn
Executable file
39
Scenes/Prefabs/Editor/EditorProperties/TilePropertyIntRangeSpin.tscn
Executable file
@@ -0,0 +1,39 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dse5pwhodrqcr"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_ok74a"]
|
||||
script/source = "extends TilePropertyContainer
|
||||
|
||||
func _ready() -> void:
|
||||
%Label.text = (tile_property_name).replace(\"_\", \" \") + \":\"
|
||||
$HSlider.min_value = min_value
|
||||
$HSlider.step = property_step
|
||||
$HSlider.max_value = max_value
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
%Value.text = str(int($HSlider.value))
|
||||
"
|
||||
|
||||
[node name="TilePropertyIntRange" type="HBoxContainer"]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 16.0
|
||||
grow_horizontal = 2
|
||||
script = SubResource("GDScript_ok74a")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="HSlider" type="SpinBox" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Value" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="start_value_changed" from="." to="HSlider" method="set_value_no_signal"]
|
||||
[connection signal="value_changed" from="HSlider" to="." method="set_value"]
|
@@ -0,0 +1,52 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://clfxxcxk3fobh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c1jo8djcruqbf" path="res://Scripts/Parts/TilePropertySceneRef.gd" id="1_p4kuk"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnv2ocqgws3p7" path="res://Assets/Sprites/UI/Panel.png" id="2_xqybm"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_v8h6y"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_p4kuk"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_v8h6y"]
|
||||
texture = ExtResource("2_xqybm")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
|
||||
[node name="TilePropertySCENE" type="HBoxContainer"]
|
||||
script = ExtResource("1_p4kuk")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="SceneName" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(16, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_p4kuk")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_v8h6y")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_v8h6y")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxTexture_v8h6y")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_v8h6y")
|
||||
text = "+"
|
||||
|
||||
[node name="ResourceSetterNew" type="Node" parent="."]
|
||||
script = ExtResource("3_v8h6y")
|
||||
property_name = "texture"
|
||||
mode = 1
|
||||
use_cache = false
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="open_tile_selection_menu"]
|
153
Scenes/Prefabs/Editor/EditorProperties/TilePropertyString.tscn
Normal file
153
Scenes/Prefabs/Editor/EditorProperties/TilePropertyString.tscn
Normal file
@@ -0,0 +1,153 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://l0lulnbn7v6b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dq6c5tah580o" path="res://Scripts/Classes/Editor/TilePropertyString.gd" id="1_yptip"]
|
||||
[ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="2_4ea2j"]
|
||||
[ext_resource type="StyleBox" uid="uid://btw30ed0dg4bt" path="res://Resources/UI/Tab.tres" id="3_yptip"]
|
||||
[ext_resource type="Script" uid="uid://dja6281w30iv0" path="res://Scripts/UI/TextValidator.gd" id="4_ibhoq"]
|
||||
|
||||
[sub_resource type="StyleBoxLine" id="StyleBoxLine_yptip"]
|
||||
color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="FontFile" id="FontFile_yptip"]
|
||||
cache/0/16/0/ascent = 0.0
|
||||
cache/0/16/0/descent = 0.0
|
||||
cache/0/16/0/underline_position = 0.0
|
||||
cache/0/16/0/underline_thickness = 0.0
|
||||
cache/0/16/0/scale = 1.0
|
||||
cache/0/15/0/ascent = 0.0
|
||||
cache/0/15/0/descent = 0.0
|
||||
cache/0/15/0/underline_position = 0.0
|
||||
cache/0/15/0/underline_thickness = 0.0
|
||||
cache/0/15/0/scale = 1.0
|
||||
cache/0/14/0/ascent = 0.0
|
||||
cache/0/14/0/descent = 0.0
|
||||
cache/0/14/0/underline_position = 0.0
|
||||
cache/0/14/0/underline_thickness = 0.0
|
||||
cache/0/14/0/scale = 1.0
|
||||
cache/0/13/0/ascent = 0.0
|
||||
cache/0/13/0/descent = 0.0
|
||||
cache/0/13/0/underline_position = 0.0
|
||||
cache/0/13/0/underline_thickness = 0.0
|
||||
cache/0/13/0/scale = 1.0
|
||||
cache/0/12/0/ascent = 0.0
|
||||
cache/0/12/0/descent = 0.0
|
||||
cache/0/12/0/underline_position = 0.0
|
||||
cache/0/12/0/underline_thickness = 0.0
|
||||
cache/0/12/0/scale = 1.0
|
||||
cache/0/11/0/ascent = 0.0
|
||||
cache/0/11/0/descent = 0.0
|
||||
cache/0/11/0/underline_position = 0.0
|
||||
cache/0/11/0/underline_thickness = 0.0
|
||||
cache/0/11/0/scale = 1.0
|
||||
cache/0/10/0/ascent = 0.0
|
||||
cache/0/10/0/descent = 0.0
|
||||
cache/0/10/0/underline_position = 0.0
|
||||
cache/0/10/0/underline_thickness = 0.0
|
||||
cache/0/10/0/scale = 1.0
|
||||
cache/0/9/0/ascent = 0.0
|
||||
cache/0/9/0/descent = 0.0
|
||||
cache/0/9/0/underline_position = 0.0
|
||||
cache/0/9/0/underline_thickness = 0.0
|
||||
cache/0/9/0/scale = 1.0
|
||||
cache/0/8/0/ascent = 0.0
|
||||
cache/0/8/0/descent = 0.0
|
||||
cache/0/8/0/underline_position = 0.0
|
||||
cache/0/8/0/underline_thickness = 0.0
|
||||
cache/0/8/0/scale = 1.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yptip"]
|
||||
bg_color = Color(0.09620471, 0.09620475, 0.09620468, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(1, 1, 1, 1)
|
||||
expand_margin_left = 1.0
|
||||
expand_margin_top = 1.0
|
||||
expand_margin_right = 1.0
|
||||
expand_margin_bottom = 1.0
|
||||
|
||||
[node name="TilePropertyBOOL" type="HBoxContainer"]
|
||||
offset_right = 184.0
|
||||
offset_bottom = 16.0
|
||||
script = ExtResource("1_yptip")
|
||||
tile_property_name = "text"
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="Value" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "aadadadawsdad"
|
||||
text_overrun_behavior = 3
|
||||
uppercase = true
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "…"
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="CanvasLayer"]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -119.0
|
||||
offset_top = -93.0
|
||||
offset_right = 119.0
|
||||
offset_bottom = 93.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = ExtResource("2_4ea2j")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Panel"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Panel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "EDIT TEXT"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="CanvasLayer/Panel/VBoxContainer/Label"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -4.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_styles/separator = SubResource("StyleBoxLine_yptip")
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="CanvasLayer/Panel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = SubResource("FontFile_yptip")
|
||||
theme_override_font_sizes/font_size = 12
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_yptip")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yptip")
|
||||
context_menu_enabled = false
|
||||
emoji_menu_enabled = false
|
||||
caret_blink = true
|
||||
|
||||
[node name="Button" type="Button" parent="CanvasLayer/Panel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/normal = ExtResource("3_yptip")
|
||||
text = "SUBMIT"
|
||||
|
||||
[node name="TextValidator" type="Node" parent="."]
|
||||
script = ExtResource("4_ibhoq")
|
||||
metadata/_custom_type_script = "uid://dja6281w30iv0"
|
||||
|
||||
[connection signal="start_value_changed" from="." to="CanvasLayer/Panel/VBoxContainer/TextEdit" method="set_text"]
|
||||
[connection signal="pressed" from="Button" to="." method="open_menu"]
|
||||
[connection signal="pressed" from="CanvasLayer/Panel/VBoxContainer/Button" to="." method="on_pressed"]
|
@@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://byv4sv3cayrmo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ben0fq5kf141g" path="res://Scripts/Parts/TilePropertyTrackPath.gd" id="1_hlygm"]
|
||||
|
||||
[node name="TilePropertyTrackPath" type="HBoxContainer"]
|
||||
script = ExtResource("1_hlygm")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "PROPERTY_NAME:"
|
||||
uppercase = true
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "EDIT"
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="on_pressed"]
|
104
Scenes/Prefabs/Editor/EditorTileSelector.tscn
Normal file
104
Scenes/Prefabs/Editor/EditorTileSelector.tscn
Normal file
@@ -0,0 +1,104 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://knfs0rx7n1ry"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dx0yj4sc1lnpu" path="res://Scripts/Classes/Editor/EditorTileSelector.gd" id="1_ecw13"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_bh0ve"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_irc6t"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ru7c4"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xy0d6"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bh0ve"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ecw13"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
draw_center = false
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0, 1, 0, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xy0d6"]
|
||||
bg_color = Color(0, 0, 0, 0.580392)
|
||||
|
||||
[node name="EditorTileSelector" type="Control"]
|
||||
custom_minimum_size = Vector2(16, 16)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
script = ExtResource("1_ecw13")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_irc6t")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ru7c4")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_xy0d6")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_bh0ve")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_ecw13")
|
||||
|
||||
[node name="Icon" type="NinePatchRect" parent="Button"]
|
||||
unique_name_in_owner = true
|
||||
show_behind_parent = true
|
||||
layout_mode = 0
|
||||
offset_right = 16.0
|
||||
offset_bottom = 16.0
|
||||
|
||||
[node name="SecondaryIcon" type="NinePatchRect" parent="Button/Icon"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_right = 16.0
|
||||
offset_bottom = 16.0
|
||||
|
||||
[node name="ResourceSetterNew" type="Node" parent="." node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("3_bh0ve")
|
||||
node_to_affect = NodePath("../Button/Icon")
|
||||
property_name = "texture"
|
||||
mode = 1
|
||||
use_cache = false
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="ResourceSetterNew2" type="Node" parent="." node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("3_bh0ve")
|
||||
node_to_affect = NodePath("../Button/Icon/SecondaryIcon")
|
||||
property_name = "texture"
|
||||
mode = 1
|
||||
use_cache = false
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="NamePanel" type="Node2D" parent="CanvasLayer"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="CanvasLayer/NamePanel"]
|
||||
unique_name_in_owner = true
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -8.0
|
||||
offset_right = 1.0
|
||||
offset_bottom = 8.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_xy0d6")
|
||||
|
||||
[node name="NameLabel" type="Label" parent="CanvasLayer/NamePanel/Panel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
uppercase = true
|
||||
|
||||
[connection signal="mouse_entered" from="Button" to="." method="on_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Button" to="." method="on_mouse_exited"]
|
||||
[connection signal="pressed" from="Button" to="." method="on_pressed"]
|
Reference in New Issue
Block a user