add optbtn

This commit is contained in:
2024-12-13 09:01:01 +03:00
parent 7bc5aa8e3d
commit 3fa0b072bf
8 changed files with 174 additions and 66 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=43 format=3 uid="uid://cvor2jm4xk3ha"]
[gd_scene load_steps=54 format=3 uid="uid://cvor2jm4xk3ha"]
[ext_resource type="Script" path="res://scripts/PRD.gd" id="1_v273n"]
[ext_resource type="Script" path="res://table/table.gd" id="2_vmbyo"]
@@ -45,6 +45,39 @@ data = {
[sub_resource type="ImageTexture" id="ImageTexture_7imsd"]
image = SubResource("Image_ye5as")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w1th4"]
bg_color = Color(0.00176745, 0.0018535, 0.00195493, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jd0we"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qeshs"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_l3dyq"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bvo7a"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gooip"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lqhgx"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_148rs"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i0vx1"]
bg_color = Color(0.782378, 0.411862, 0.935049, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ldbvf"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cfhjb"]
bg_color = Color(0.0811369, 0.690685, 0.641033, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_h8aei"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_d322q"]
@@ -59,6 +92,18 @@ Button/styles/hover = SubResource("StyleBoxFlat_o0too")
Button/styles/normal = SubResource("StyleBoxFlat_dm3xa")
Button/styles/pressed = SubResource("StyleBoxFlat_h7n4k")
CheckButton/icons/unchecked = SubResource("ImageTexture_7imsd")
CheckButton/styles/focus = SubResource("StyleBoxFlat_w1th4")
CheckButton/styles/hover = SubResource("StyleBoxFlat_jd0we")
CheckButton/styles/hover_pressed = SubResource("StyleBoxFlat_qeshs")
CheckButton/styles/normal = SubResource("StyleBoxFlat_l3dyq")
CheckButton/styles/pressed = SubResource("StyleBoxFlat_bvo7a")
OptionButton/font_sizes/font_size = 17
OptionButton/styles/focus = SubResource("StyleBoxFlat_gooip")
OptionButton/styles/hover = SubResource("StyleBoxFlat_lqhgx")
OptionButton/styles/normal = SubResource("StyleBoxFlat_148rs")
OptionButton/styles/normal_mirrored = SubResource("StyleBoxFlat_i0vx1")
OptionButton/styles/pressed = SubResource("StyleBoxFlat_ldbvf")
OptionButton/styles/pressed_mirrored = SubResource("StyleBoxFlat_cfhjb")
TabContainer/styles/panel = SubResource("StyleBoxTexture_h8aei")
TabContainer/styles/tab_focus = SubResource("StyleBoxTexture_d322q")
TabContainer/styles/tab_selected = SubResource("StyleBoxTexture_8j02b")
@@ -226,7 +271,7 @@ metadata/_edit_lock_ = true
[node name="TabContainer" type="TabContainer" parent="."]
offset_left = 216.0
offset_top = 39.0
offset_right = 1989.0
offset_right = 2420.0
offset_bottom = 917.0
theme = SubResource("Theme_k5ur4")
theme_override_colors/font_unselected_color = Color(0, 0, 0, 0.0392157)
@@ -241,7 +286,6 @@ theme_override_styles/tab_unselected = SubResource("StyleBoxTexture_17le6")
tab_alignment = 2
current_tab = 1
tab_focus_mode = 0
metadata/_edit_lock_ = true
[node name="ControlPanel" type="Panel" parent="TabContainer"]
visible = false
@@ -258,39 +302,37 @@ offset_right = 1867.0
offset_bottom = 734.0
color = Color(0.390334, 0.227948, 0.288326, 1)
[node name="control_dev" type="ScrollContainer" parent="TabContainer/ControlPanel"]
[node name="control_tbl" type="GridContainer" parent="TabContainer/ControlPanel"]
layout_mode = 2
offset_left = 240.0
offset_top = 50.0
offset_right = 575.0
offset_bottom = 634.0
[node name="control_tbl" type="GridContainer" parent="TabContainer/ControlPanel/control_dev"]
layout_mode = 2
offset_right = 240.0
offset_bottom = 50.0
script = ExtResource("2_vmbyo")
metadata/_edit_lock_ = true
[node name="SZI_x" type="AnimatedSprite2D" parent="TabContainer/ControlPanel/control_dev"]
position = Vector2(284, 404)
[node name="SZI_x" type="AnimatedSprite2D" parent="TabContainer/ControlPanel"]
position = Vector2(524, 454)
sprite_frames = SubResource("SpriteFrames_vex4t")
metadata/_edit_lock_ = true
[node name="SZI_x2" type="AnimatedSprite2D" parent="TabContainer/ControlPanel/control_dev"]
position = Vector2(284, 432)
[node name="SZI_x2" type="AnimatedSprite2D" parent="TabContainer/ControlPanel"]
position = Vector2(524, 482)
sprite_frames = SubResource("SpriteFrames_vex4t")
metadata/_edit_lock_ = true
[node name="SZI_x3" type="AnimatedSprite2D" parent="TabContainer/ControlPanel/control_dev"]
position = Vector2(284, 460)
[node name="SZI_x3" type="AnimatedSprite2D" parent="TabContainer/ControlPanel"]
position = Vector2(524, 510)
sprite_frames = SubResource("SpriteFrames_vex4t")
metadata/_edit_lock_ = true
[node name="SZI_x4" type="AnimatedSprite2D" parent="TabContainer/ControlPanel/control_dev"]
position = Vector2(284, 488)
[node name="SZI_x4" type="AnimatedSprite2D" parent="TabContainer/ControlPanel"]
position = Vector2(524, 538)
sprite_frames = SubResource("SpriteFrames_vex4t")
metadata/_edit_lock_ = true
[node name="SZI_x5" type="AnimatedSprite2D" parent="TabContainer/ControlPanel/control_dev"]
position = Vector2(284, 517)
[node name="SZI_x5" type="AnimatedSprite2D" parent="TabContainer/ControlPanel"]
position = Vector2(524, 567)
sprite_frames = SubResource("SpriteFrames_vex4t")
metadata/_edit_lock_ = true
@@ -487,14 +529,12 @@ script = ExtResource("9_g1wia")
metadata/_tab_index = 2
metadata/_edit_lock_ = true
[node name="scroll1" type="ScrollContainer" parent="TabContainer/EMS_G"]
[node name="table1" type="GridContainer" parent="TabContainer/EMS_G"]
layout_mode = 2
offset_left = 91.0
offset_top = 156.0
offset_right = 1505.0
offset_bottom = 855.0
[node name="table1" type="GridContainer" parent="TabContainer/EMS_G/scroll1"]
layout_mode = 2
offset_right = 91.0
offset_bottom = 156.0
script = ExtResource("2_vmbyo")
metadata/_edit_lock_ = true