Initial commit
This commit is contained in:
commit
7becdd23b6
989 changed files with 28526 additions and 0 deletions
113
scenes/ui_elements/prompt_option.tscn
Normal file
113
scenes/ui_elements/prompt_option.tscn
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://ce1bk8d2kdx2d"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ykb3qmxlb1ph" path="res://images/ui/panel-border-014.png" id="1_j6xkn"]
|
||||
[ext_resource type="Script" path="res://scenes/ui_elements/prompt_option.gd" id="1_ybyts"]
|
||||
[ext_resource type="Theme" uid="uid://ckrbqku1sx5ge" path="res://scenes/ui_elements/textbox_theme.tres" id="2_xbmem"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_440le"]
|
||||
bg_color = Color(0.74902, 0.74902, 0.74902, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_05h6u"]
|
||||
bg_color = Color(0.517647, 0.517647, 0.517647, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(0.203922, 0.482353, 0.85098, 1)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
expand_margin_left = 3.0
|
||||
expand_margin_top = 3.0
|
||||
expand_margin_right = 3.0
|
||||
expand_margin_bottom = 3.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ujclv"]
|
||||
bg_color = Color(0.0470588, 0.0666667, 0.160784, 0.752941)
|
||||
corner_radius_top_left = 14
|
||||
corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
|
||||
[node name="PromptOption" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
grow_horizontal = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 8
|
||||
script = ExtResource("1_ybyts")
|
||||
metadata/option_label = ""
|
||||
metadata/option_text = ""
|
||||
|
||||
[node name="OptionButton" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(0, 26)
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -21.0
|
||||
offset_right = 512.0
|
||||
offset_bottom = 21.0
|
||||
grow_vertical = 2
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_440le")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_05h6u")
|
||||
keep_pressed_outside = true
|
||||
|
||||
[node name="Panel" type="Panel" parent="OptionButton"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_ujclv")
|
||||
|
||||
[node name="NameFrame" type="NinePatchRect" parent="OptionButton"]
|
||||
modulate = Color(0.882353, 0.894118, 0.960784, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_j6xkn")
|
||||
draw_center = false
|
||||
patch_margin_left = 14
|
||||
patch_margin_top = 14
|
||||
patch_margin_right = 14
|
||||
patch_margin_bottom = 14
|
||||
axis_stretch_horizontal = 1
|
||||
axis_stretch_vertical = 1
|
||||
|
||||
[node name="Option" type="MarginContainer" parent="OptionButton/NameFrame"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -21.0
|
||||
offset_right = 532.0
|
||||
offset_bottom = 21.0
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 16
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 8
|
||||
|
||||
[node name="OptionLabel" type="RichTextLabel" parent="OptionButton/NameFrame/Option"]
|
||||
modulate = Color(0.882353, 0.894118, 0.960784, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_xbmem")
|
||||
bbcode_enabled = true
|
||||
text = "Button text"
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
autowrap_mode = 0
|
||||
shortcut_keys_enabled = false
|
||||
visible_characters_behavior = 1
|
||||
|
||||
[connection signal="pressed" from="OptionButton" to="." method="_on_option_button_pressed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue