input (slider, number, file)

This commit is contained in:
Face
2025-07-25 14:51:51 +03:00
parent 465200cd28
commit a8f77e1bd4
22 changed files with 617 additions and 3 deletions

View File

@@ -1,12 +1,15 @@
[gd_resource type="Theme" load_steps=36 format=3 uid="uid://bn6rbmdy60lhr"]
[gd_resource type="Theme" load_steps=42 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://b2v8ee23580c3" path="res://Assets/Icons/radio.svg" id="3_3weog"]
[ext_resource type="Texture2D" uid="uid://bhyaa5h8x43qg" path="res://Assets/Icons/grabber_16x16.svg" id="3_88j74"]
[ext_resource type="Texture2D" uid="uid://cpwd364af8dqj" path="res://Assets/Icons/grabber_16x16_grayscale.svg" id="4_0an8v"]
[ext_resource type="Texture2D" uid="uid://bap17ryrkcyey" path="res://Assets/Icons/checkbox_disabled.svg" id="4_c32on"]
[ext_resource type="Texture2D" uid="uid://y1xqfcd8ro5t" path="res://Assets/Icons/radio_checked_grayscale.svg" id="4_n77xs"]
[ext_resource type="Texture2D" uid="uid://bj7bpovnm25ml" path="res://Assets/Icons/radio_checked.svg" id="4_sesrd"]
[ext_resource type="Texture2D" uid="uid://btq4ki22avyd2" path="res://Assets/Icons/grabber_16x16_active.svg" id="5_4akvr"]
[ext_resource type="Texture2D" uid="uid://bs414mrvwdmcn" path="res://Assets/Icons/radio_disabled.svg" id="6_r011l"]
[ext_resource type="Texture2D" uid="uid://ckirjsfw1b64a" path="res://Assets/Icons/checkbox_pressed_16x16.svg" id="10_luhv8"]
[ext_resource type="Texture2D" uid="uid://b3y601mvq1suc" path="res://Assets/Icons/pipette.svg" id="11_88j74"]
@@ -36,6 +39,32 @@ corner_radius_bottom_left = 4
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_75mhk"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2awy5"]
bg_color = Color(0.247059, 0.466667, 0.807843, 1)
corner_radius_top_left = 25
corner_radius_top_right = 25
corner_radius_bottom_right = 25
corner_radius_bottom_left = 25
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hcg1v"]
bg_color = Color(0.309804, 0.517647, 0.839216, 1)
corner_radius_top_left = 25
corner_radius_top_right = 25
corner_radius_bottom_right = 25
corner_radius_bottom_left = 25
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7qwau"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0.184314, 0.184314, 0.184314, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
corner_detail = 6
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jecr6"]
content_margin_left = 5.0
bg_color = Color(0.6, 0.6, 0.6, 0)
@@ -155,6 +184,12 @@ CheckBox/icons/unchecked = ExtResource("1_75mhk")
CheckBox/icons/unchecked_disabled = ExtResource("4_c32on")
CheckBox/styles/focus = SubResource("StyleBoxEmpty_75mhk")
ColorPicker/icons/screen_picker = ExtResource("11_88j74")
HSlider/icons/grabber = ExtResource("3_88j74")
HSlider/icons/grabber_disabled = ExtResource("4_0an8v")
HSlider/icons/grabber_highlight = ExtResource("5_4akvr")
HSlider/styles/grabber_area = SubResource("StyleBoxFlat_2awy5")
HSlider/styles/grabber_area_highlight = SubResource("StyleBoxFlat_hcg1v")
HSlider/styles/slider = SubResource("StyleBoxFlat_7qwau")
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)

View File

@@ -1,11 +1,71 @@
[gd_scene load_steps=5 format=3 uid="uid://c7yay102a3b4c"]
[gd_scene load_steps=16 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"]
[ext_resource type="PackedScene" uid="uid://b6c1twaog7hui" path="res://addons/DatePicker/DateButton.tscn" id="3_a88g6"]
[ext_resource type="Texture2D" uid="uid://bxskuj6mjctt0" path="res://Assets/Icons/chevron-down_dark.svg" id="4_unki5"]
[ext_resource type="Texture2D" uid="uid://couf8n1thmgqk" path="res://Assets/Icons/chevron-down_grayscale.svg" id="5_unki5"]
[ext_resource type="Texture2D" uid="uid://cmdipq88xmc4a" path="res://Assets/Icons/chevron-up_dark.svg" id="6_3wmat"]
[ext_resource type="Texture2D" uid="uid://bbtfmtb4xxrpi" path="res://Assets/Icons/chevron-up_grayscale.svg" id="7_3wmat"]
[sub_resource type="ButtonGroup" id="ButtonGroup_06us3"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xxc4c"]
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
expand_margin_right = 28.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pi5h7"]
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
expand_margin_right = 28.0
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pi5h7"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xxc4c"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_unki5"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3wmat"]
[sub_resource type="Theme" id="Theme_poopw"]
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_xxc4c")
LineEdit/styles/normal = SubResource("StyleBoxFlat_pi5h7")
LineEdit/styles/read_only = null
SpinBox/colors/font_color = Color(0, 0, 0, 1)
SpinBox/colors/font_placeholder_color = Color(0, 0, 0, 0.6)
SpinBox/icons/down = ExtResource("4_unki5")
SpinBox/icons/down_hover = ExtResource("5_unki5")
SpinBox/icons/down_pressed = ExtResource("5_unki5")
SpinBox/icons/up = ExtResource("6_3wmat")
SpinBox/icons/up_hover = ExtResource("7_3wmat")
SpinBox/icons/up_pressed = ExtResource("7_3wmat")
SpinBox/styles/down_background_hovered = SubResource("StyleBoxEmpty_pi5h7")
SpinBox/styles/down_background_pressed = SubResource("StyleBoxEmpty_xxc4c")
SpinBox/styles/up_background_hovered = SubResource("StyleBoxEmpty_unki5")
SpinBox/styles/up_background_pressed = SubResource("StyleBoxEmpty_3wmat")
[node name="Input" type="Control"]
layout_mode = 3
anchors_preset = 15
@@ -57,6 +117,51 @@ offset_bottom = 35.0
toggle_mode = false
[node name="DateButton" parent="." instance=ExtResource("3_a88g6")]
visible = false
layout_mode = 0
[node name="HSlider" type="HSlider" parent="."]
layout_mode = 0
offset_right = 200.0
offset_bottom = 35.0
theme = ExtResource("2_theme")
value = 50.0
[node name="SpinBox" type="SpinBox" parent="."]
visible = false
layout_mode = 0
offset_right = 94.5625
offset_bottom = 35.0
theme = SubResource("Theme_poopw")
min_value = -99999.0
max_value = 99999.0
[node name="FileContainer" type="HBoxContainer" parent="."]
visible = false
layout_mode = 0
offset_right = 300.0
offset_bottom = 35.0
[node name="FileButton" type="Button" parent="FileContainer"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
theme = ExtResource("2_theme")
text = "Choose File"
[node name="FileLabel" type="Label" parent="FileContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_theme")
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "No file chosen"
vertical_alignment = 1
[node name="FileDialog" type="FileDialog" parent="FileContainer"]
title = "Open a File"
size = Vector2i(800, 600)
ok_button_text = "Open"
file_mode = 0
access = 2
use_native_dialog = true
[connection signal="popup_closed" from="ColorPickerButton" to="." method="_on_color_picker_popup_closed"]