input (text/checkbox), form, button
This commit is contained in:
@@ -1,4 +1,53 @@
|
||||
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://bn6rbmdy60lhr"]
|
||||
[gd_resource type="Theme" load_steps=17 format=3 uid="uid://bn6rbmdy60lhr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dn4dxn8hkrd64" path="res://Assets/Icons/checkbox.svg" id="1_75mhk"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6ucuyluuw43" path="res://Assets/Icons/checkbox_pressed_grayscale.svg" id="2_2abar"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5scqw224r2e5" path="res://Assets/Icons/checkbox_pressed.svg" id="2_3k2jb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bap17ryrkcyey" path="res://Assets/Icons/checkbox_disabled.svg" id="4_c32on"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_c32on"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7g0pl"]
|
||||
bg_color = Color(0.168627, 0.168627, 0.168627, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c32on"]
|
||||
bg_color = Color(0.105882, 0.105882, 0.105882, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_75mhk"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jecr6"]
|
||||
content_margin_left = 5.0
|
||||
bg_color = Color(0.6, 0.6, 0.6, 0)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_75mhk"]
|
||||
content_margin_left = 5.0
|
||||
bg_color = Color(0.6, 0.6, 0.6, 0)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
|
||||
[sub_resource type="SystemFont" id="SystemFont_jecr6"]
|
||||
font_names = PackedStringArray("Serif")
|
||||
@@ -23,6 +72,20 @@ font_names = PackedStringArray("Serif")
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_jecr6"]
|
||||
|
||||
[resource]
|
||||
Button/styles/focus = SubResource("StyleBoxEmpty_c32on")
|
||||
Button/styles/hover = SubResource("StyleBoxFlat_7g0pl")
|
||||
Button/styles/normal = SubResource("StyleBoxFlat_c32on")
|
||||
CheckBox/icons/checked = ExtResource("2_3k2jb")
|
||||
CheckBox/icons/checked_disabled = ExtResource("2_2abar")
|
||||
CheckBox/icons/unchecked = ExtResource("1_75mhk")
|
||||
CheckBox/icons/unchecked_disabled = ExtResource("4_c32on")
|
||||
CheckBox/styles/focus = SubResource("StyleBoxEmpty_75mhk")
|
||||
LineEdit/colors/caret_color = Color(0, 0, 0, 1)
|
||||
LineEdit/colors/font_color = Color(0, 0, 0, 1)
|
||||
LineEdit/colors/font_placeholder_color = Color(0, 0, 0, 0.6)
|
||||
LineEdit/styles/focus = SubResource("StyleBoxFlat_jecr6")
|
||||
LineEdit/styles/normal = SubResource("StyleBoxFlat_75mhk")
|
||||
LineEdit/styles/read_only = null
|
||||
RichTextLabel/colors/font_selected_color = Color(1, 1, 1, 1)
|
||||
RichTextLabel/colors/selection_color = Color(0.313726, 0.403922, 0.8, 1)
|
||||
RichTextLabel/fonts/bold_font = SubResource("SystemFont_jecr6")
|
||||
|
||||
20
Scenes/Tags/button.tscn
Normal file
20
Scenes/Tags/button.tscn
Normal file
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dhqqt4hg21w8d"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cks35eudcm1wj" path="res://Scripts/Tags/button.gd" id="1_button"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
|
||||
|
||||
[node name="Button" type="Control"]
|
||||
custom_minimum_size = Vector2(100, 30)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
script = ExtResource("1_button")
|
||||
|
||||
[node name="ButtonNode" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
offset_right = 100.0
|
||||
offset_bottom = 30.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = ExtResource("2_theme")
|
||||
text = "Button"
|
||||
10
Scenes/Tags/form.tscn
Normal file
10
Scenes/Tags/form.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bw8h5k6j2m3n4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cn2iolk6biupv" path="res://Scripts/Tags/form.gd" id="1_form"]
|
||||
|
||||
[node name="Form" type="VBoxContainer"]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
theme_override_constants/separation = 22
|
||||
script = ExtResource("1_form")
|
||||
34
Scenes/Tags/input.tscn
Normal file
34
Scenes/Tags/input.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c7yay102a3b4c"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://kv6ebscarj2e" path="res://Scripts/Tags/input.gd" id="1_input"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
|
||||
|
||||
[node name="Input" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 400.0
|
||||
offset_bottom = 31.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
script = ExtResource("1_input")
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="."]
|
||||
layout_mode = 1
|
||||
offset_right = 400.0
|
||||
offset_bottom = 35.0
|
||||
theme = ExtResource("2_theme")
|
||||
placeholder_text = "Enter text..."
|
||||
caret_blink = true
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_right = 31.0
|
||||
offset_bottom = 31.0
|
||||
theme = ExtResource("2_theme")
|
||||
theme_override_constants/icon_max_width = 24
|
||||
flat = true
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bkj3x5y2m8qrl"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cjk4x6y8m9wts" path="res://Scripts/Tags/span.gd" id="1_span"]
|
||||
[ext_resource type="Script" uid="uid://4pbphta3r67k" path="res://Scripts/Tags/span.gd" id="1_span"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
|
||||
|
||||
[node name="SPAN" type="VBoxContainer"]
|
||||
@@ -17,5 +17,6 @@ mouse_default_cursor_shape = 1
|
||||
theme = ExtResource("2_theme")
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
text = "Placeholder"
|
||||
fit_content = true
|
||||
selection_enabled = true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=3 uid="uid://bytm7bt2s4ak8"]
|
||||
[gd_scene load_steps=27 format=3 uid="uid://bytm7bt2s4ak8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bg5iqnwic1rio" path="res://Scripts/main.gd" id="1_8q3xr"]
|
||||
[ext_resource type="Texture2D" uid="uid://df1m4j7uxi63v" path="res://Assets/Icons/chevron-down.svg" id="2_6bp64"]
|
||||
@@ -9,6 +9,8 @@
|
||||
[ext_resource type="PackedScene" uid="uid://sqhcxhcre081" path="res://Scenes/Tab.tscn" id="4_344ge"]
|
||||
[ext_resource type="Texture2D" uid="uid://cu4hjoba6etf" path="res://Assets/Icons/rotate-cw.svg" id="5_344ge"]
|
||||
[ext_resource type="Texture2D" uid="uid://cehbtwq6gq0cn" path="res://Assets/Icons/plus.svg" id="5_ynf5e"]
|
||||
[ext_resource type="Script" uid="uid://bgqglerkcylxx" path="res://addons/SmoothScroll/SmoothScrollContainer.gd" id="10_d1ilt"]
|
||||
[ext_resource type="Script" uid="uid://b7h0k2h2qwlqv" path="res://addons/SmoothScroll/scroll_damper/expo_scroll_damper.gd" id="11_6iyac"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_344ge"]
|
||||
|
||||
@@ -61,6 +63,18 @@ expand_margin_left = 40.0
|
||||
LineEdit/styles/focus = SubResource("StyleBoxEmpty_8gbba")
|
||||
LineEdit/styles/normal = SubResource("StyleBoxFlat_8gbba")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fdnlq"]
|
||||
script = ExtResource("11_6iyac")
|
||||
friction = 4.0
|
||||
minimum_velocity = 0.4
|
||||
rebound_strength = 7.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jkdf5"]
|
||||
script = ExtResource("11_6iyac")
|
||||
friction = 4.0
|
||||
minimum_velocity = 0.4
|
||||
rebound_strength = 7.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_white"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
|
||||
@@ -190,14 +204,22 @@ stretch_mode = 5
|
||||
custom_minimum_size = Vector2(0, 5)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="WebsiteContainer" type="VBoxContainer" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
[node name="SmoothScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 22
|
||||
script = ExtResource("10_d1ilt")
|
||||
wheel_scroll_damper = SubResource("Resource_fdnlq")
|
||||
dragging_scroll_damper = SubResource("Resource_jkdf5")
|
||||
drag_with_mouse = false
|
||||
allow_overdragging = false
|
||||
metadata/_custom_type_script = "uid://bgqglerkcylxx"
|
||||
|
||||
[node name="Control" type="Control" parent="VBoxContainer/WebsiteContainer"]
|
||||
[node name="WebsiteContainer" type="VBoxContainer" parent="VBoxContainer/SmoothScrollContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 22
|
||||
|
||||
[node name="WebsiteBackground" type="Panel" parent="."]
|
||||
z_index = -1
|
||||
@@ -213,18 +235,24 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_white")
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
z_index = -5
|
||||
layout_mode = 2
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 58.0
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 125.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_6iyac")
|
||||
|
||||
[node name="Panel2" type="Panel" parent="."]
|
||||
z_index = -6
|
||||
layout_mode = 2
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 125.0
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_21xkr")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user