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:
61
Scenes/Parts/SelectableOptionLabel.tscn
Normal file
61
Scenes/Parts/SelectableOptionLabel.tscn
Normal file
@@ -0,0 +1,61 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://ctw1isl6cmayh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d0tcqr0x101j" path="res://Scripts/UI/SelectableOptionLabel.gd" id="1_o5udk"]
|
||||
[ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="2_o5udk"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_7ee3v"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="4_a8eby"]
|
||||
[ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="5_7ee3v"]
|
||||
[ext_resource type="Resource" uid="uid://8dcuxbc3h2u2" path="res://Resources/ThemedResources/Font.tres" id="6_a8eby"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bg4p8"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wit67"]
|
||||
atlas = ExtResource("2_o5udk")
|
||||
region = Rect2(0, 0, 8, 8)
|
||||
|
||||
[node name="SelectableOptionLabel" type="HBoxContainer"]
|
||||
offset_right = 184.0
|
||||
offset_bottom = 16.0
|
||||
focus_mode = 2
|
||||
theme_override_constants/separation = -8
|
||||
script = ExtResource("1_o5udk")
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_bg4p8")
|
||||
text = "adada:"
|
||||
uppercase = true
|
||||
|
||||
[node name="Cursor" type="TextureRect" parent="Title"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -6.0
|
||||
offset_top = -4.0
|
||||
offset_bottom = 4.0
|
||||
grow_vertical = 2
|
||||
texture = SubResource("AtlasTexture_wit67")
|
||||
|
||||
[node name="ResourceSetterNew" type="Node" parent="Title/Cursor" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("3_7ee3v")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "texture"
|
||||
mode = 1
|
||||
resource_json = ExtResource("4_a8eby")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="Value" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
text = "◄aduhauda►"
|
||||
uppercase = true
|
||||
|
||||
[node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
|
||||
script = ExtResource("5_7ee3v")
|
||||
labels = [NodePath("../Title"), NodePath("../Value")]
|
||||
resource = ExtResource("6_a8eby")
|
||||
metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
|
||||
|
||||
[connection signal="focus_entered" from="." to="." method="set_selected" binds= [true]]
|
||||
[connection signal="focus_exited" from="." to="." method="set_selected" binds= [false]]
|
Reference in New Issue
Block a user