Refactor console and scene structure; update resource paths and add configuration handling
This commit is contained in:
50
objects/ui/input_button.tscn
Normal file
50
objects/ui/input_button.tscn
Normal file
@@ -0,0 +1,50 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bxpr4m7lq7clh"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h8s4o"]
|
||||
bg_color = Color(1, 1, 1, 0.392157)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_v2gus"]
|
||||
bg_color = Color(0, 0, 0, 0.501961)
|
||||
|
||||
[node name="Input button" type="Button"]
|
||||
custom_minimum_size = Vector2(0, 16)
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_h8s4o")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_h8s4o")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_v2gus")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 4
|
||||
theme_override_constants/margin_top = 4
|
||||
theme_override_constants/margin_right = 4
|
||||
theme_override_constants/margin_bottom = 4
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LabelAction" type="Label" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 1
|
||||
text = "left"
|
||||
vertical_alignment = 1
|
||||
uppercase = true
|
||||
|
||||
[node name="Spacer" type="Control" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="LabelInput" type="Label" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 1
|
||||
text = "A"
|
||||
vertical_alignment = 1
|
||||
uppercase = true
|
Reference in New Issue
Block a user