краска кнопок

This commit is contained in:
2025-02-06 19:34:48 +03:00
parent 529bc8a2d6
commit 7b23507d40
8 changed files with 70 additions and 57 deletions

View File

@@ -150,8 +150,8 @@ CheckBox/font_sizes/font_size = 14
script = ExtResource("1_v273n") script = ExtResource("1_v273n")
[node name="Background" type="ColorRect" parent="."] [node name="Background" type="ColorRect" parent="."]
offset_right = 1941.0 offset_right = 3025.0
offset_bottom = 988.0 offset_bottom = 1060.0
theme = SubResource("Theme_k5ur4") theme = SubResource("Theme_k5ur4")
color = Color(0.356863, 0.278431, 0.356863, 1) color = Color(0.356863, 0.278431, 0.356863, 1)
metadata/_edit_lock_ = true metadata/_edit_lock_ = true
@@ -329,6 +329,7 @@ script = ExtResource("2_vmbyo")
metadata/_edit_lock_ = true metadata/_edit_lock_ = true
[node name="PSK" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_2_4_6"] [node name="PSK" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_2_4_6"]
modulate = Color(1, 1, 0.941176, 0.588235)
material = ExtResource("3_3syd3") material = ExtResource("3_3syd3")
position = Vector2(914, 5) position = Vector2(914, 5)
scale = Vector2(0.247968, 0.234167) scale = Vector2(0.247968, 0.234167)
@@ -386,6 +387,7 @@ script = ExtResource("2_vmbyo")
metadata/_edit_lock_ = true metadata/_edit_lock_ = true
[node name="PSK2" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_3_5_7"] [node name="PSK2" type="Sprite2D" parent="TabContainer/PRD/body_grid/litera_3_5_7"]
modulate = Color(1, 1, 0.941176, 0.588235)
material = ExtResource("3_3syd3") material = ExtResource("3_3syd3")
position = Vector2(914, -6) position = Vector2(914, -6)
scale = Vector2(0.247968, 0.234167) scale = Vector2(0.247968, 0.234167)
@@ -796,12 +798,11 @@ metadata/_edit_lock_ = true
[node name="table1" type="GridContainer" parent="TabContainer/EMS_G"] [node name="table1" type="GridContainer" parent="TabContainer/EMS_G"]
layout_mode = 2 layout_mode = 2
offset_left = 27.0 offset_left = 35.0
offset_top = 148.0 offset_top = 60.0
offset_right = 27.0 offset_right = 35.0
offset_bottom = 148.0 offset_bottom = 60.0
script = ExtResource("2_vmbyo") script = ExtResource("2_vmbyo")
metadata/_edit_lock_ = true
[node name="load_boadr" type="ColorRect" parent="TabContainer/EMS_G"] [node name="load_boadr" type="ColorRect" parent="TabContainer/EMS_G"]
layout_mode = 0 layout_mode = 0

View File

@@ -47,9 +47,9 @@ func _ready() -> void:
draw_tabl(node_select_yau_07b, Constants.ROWS_YAU_07B_1, Constants.ROWS_YAU_07B_1.size()) draw_tabl(node_select_yau_07b, Constants.ROWS_YAU_07B_1, Constants.ROWS_YAU_07B_1.size())
node_select_yau_07b.set_columns_min_size([160, 120]) node_select_yau_07b.set_columns_min_size([160, 120])
node_select_yau_07b.set_node_text(0, 0, 'ПРД-Н') node_select_yau_07b.set_node_text(0, 0, 'ПРД-Н')
node_select_yau_07b.set_node_text(1, 0, 'Литера_2') node_select_yau_07b.set_node_text(1, 0, 'Литера 2')
node_select_yau_07b.set_node_text(0, 1, 'Запрет СИ_2') node_select_yau_07b.set_node_text(0, 1, 'Запрет СИ 2')
node_select_yau_07b.set_node_text(0, 2, 'Модуляция УМ_2') node_select_yau_07b.set_node_text(0, 2, 'Модуляция УМ 2')
node_select_yau_07b.set_node_text(0, 3, 'Положение луча') node_select_yau_07b.set_node_text(0, 3, 'Положение луча')
node_select_yau_07b.set_node_text(0, 4, 'Аттенюатор') node_select_yau_07b.set_node_text(0, 4, 'Аттенюатор')
node_select_yau_07b.set_node_text(0, 6, 'СИ 2 в УФ') node_select_yau_07b.set_node_text(0, 6, 'СИ 2 в УФ')
@@ -58,9 +58,9 @@ func _ready() -> void:
draw_tabl(node_select_yau_07b_2, Constants.ROWS_YAU_07B_2, Constants.ROWS_YAU_07B_2.size()) draw_tabl(node_select_yau_07b_2, Constants.ROWS_YAU_07B_2, Constants.ROWS_YAU_07B_2.size())
node_select_yau_07b_2.set_columns_min_size([160, 120]) node_select_yau_07b_2.set_columns_min_size([160, 120])
node_select_yau_07b_2.set_node_text(0, 0, 'ПРД-Н') node_select_yau_07b_2.set_node_text(0, 0, 'ПРД-Н')
node_select_yau_07b_2.set_node_text(1, 0, 'Литера_3') node_select_yau_07b_2.set_node_text(1, 0, 'Литера 3')
node_select_yau_07b_2.set_node_text(0, 1, 'Запрет СИ_3') node_select_yau_07b_2.set_node_text(0, 1, 'Запрет СИ 3')
node_select_yau_07b_2.set_node_text(0, 2, 'Модуляция УМ_3') node_select_yau_07b_2.set_node_text(0, 2, 'Модуляция УМ 3')
node_select_yau_07b_2.set_node_text(0, 3, 'Положение луча') node_select_yau_07b_2.set_node_text(0, 3, 'Положение луча')
node_select_yau_07b_2.set_node_text(0, 4, 'Аттенюатор') node_select_yau_07b_2.set_node_text(0, 4, 'Аттенюатор')
node_select_yau_07b_2.set_node_text(0, 5, 'ФГОЗ 3') node_select_yau_07b_2.set_node_text(0, 5, 'ФГОЗ 3')
@@ -71,12 +71,14 @@ func _ready() -> void:
draw_tabl(node_select_fs_1, Constants.ROWS_FS, Constants.ROWS_FS.size()) draw_tabl(node_select_fs_1, Constants.ROWS_FS, Constants.ROWS_FS.size())
node_select_fs_1.set_columns_min_size([120, 120, 150]) node_select_fs_1.set_columns_min_size([120, 120, 150])
node_select_fs_1.set_node_text(0, 0, 'Модуль ФС') node_select_fs_1.set_node_text(0, 0, 'Модуль ФС')
node_select_fs_1.set_node_text(1, 0, 'Литера_2') node_select_fs_1.set_node_text(1, 0, 'Литера 2')
node_select_fs_1.set_node_text(0, 1, 'Состояние') node_select_fs_1.set_node_text(0, 1, 'Состояние')
node_select_fs_1.set_node_text(0, 2, 'Частота') node_select_fs_1.set_node_text(0, 2, 'Частота')
#node_select_fs_1.get_node2(1, 2).placeholder_text = '500' node_select_fs_1.get_node2(1, 2).placeholder_text = 'в МГц'
node_select_fs_1.get_node2(1, 2).editable = true
node_select_fs_1.set_node_text(0, 3, 'Аттенюатор') node_select_fs_1.set_node_text(0, 3, 'Аттенюатор')
#node_select_fs_1.get_node2(1, 3).editable = true node_select_fs_1.get_node2(1, 3).placeholder_text = 'в dB'
node_select_fs_1.get_node2(1, 3).editable = true
node_select_fs_1.set_node_text(0, 4, 'Генератор') node_select_fs_1.set_node_text(0, 4, 'Генератор')
node_select_fs_1.set_node_text(0, 5, 'fpga') node_select_fs_1.set_node_text(0, 5, 'fpga')
node_select_fs_1.set_node_text(0, 6, 'СИ 2 от ФС') node_select_fs_1.set_node_text(0, 6, 'СИ 2 от ФС')
@@ -85,7 +87,7 @@ func _ready() -> void:
draw_tabl(node_select_fs_2, Constants.ROWS_FS, Constants.ROWS_FS.size()) draw_tabl(node_select_fs_2, Constants.ROWS_FS, Constants.ROWS_FS.size())
node_select_fs_2.set_columns_min_size([120, 120, 150]) node_select_fs_2.set_columns_min_size([120, 120, 150])
node_select_fs_2.set_node_text(0, 0, 'Модуль ФС') node_select_fs_2.set_node_text(0, 0, 'Модуль ФС')
node_select_fs_2.set_node_text(1, 0, 'Литера_3') node_select_fs_2.set_node_text(1, 0, 'Литера 3')
node_select_fs_2.set_node_text(0, 1, 'Состояние') node_select_fs_2.set_node_text(0, 1, 'Состояние')
node_select_fs_2.set_node_text(0, 2, 'Частота') node_select_fs_2.set_node_text(0, 2, 'Частота')
#node_select_fs_2.get_node2(1, 2).placeholder_text = '500' #node_select_fs_2.get_node2(1, 2).placeholder_text = '500'

View File

@@ -108,14 +108,14 @@ const RAY_DICT: Array = [
' Контроль', ' Контроль',
] ]
const ATT_DICT: Array = [ const ATT_DICT: Array = [
' 0 db', ' 0 dB',
' 0.5 db', ' 0.5 dB',
' 2 db', ' 2 dB',
' 2.5 db', ' 2.5 dB',
' 8 db', ' 8 dB',
' 8.5 db', ' 8.5 dB',
' 10 db', ' 10 dB',
' 10.5 db', ' 10.5 dB',
] ]
const SIGNS_PRD: Array = [ const SIGNS_PRD: Array = [
## ПРК-К ## ПРК-К

View File

@@ -36,7 +36,7 @@ func _on_data_received(data_from_yau_07):
## SOCKETS BOARDS ## SOCKETS BOARDS
for i in 4: for i in 4:
var sockets_ind = [$soc_y5/ref_A26/light_ind, var sockets_ind = [ $soc_y5/ref_A26/light_ind,
$soc_y5/ref_A27/light_ind, $soc_y5/ref_A27/light_ind,
$soc_y5/ref_A28/light_ind, $soc_y5/ref_A28/light_ind,
$soc_y5/ref_A29/light_ind] $soc_y5/ref_A29/light_ind]

View File

@@ -1,19 +1,17 @@
[gd_scene load_steps=2 format=3 uid="uid://ch14g46swx74h"] [gd_scene load_steps=2 format=3 uid="uid://ch14g46swx74h"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2thpi"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2thpi"]
bg_color = Color(0.611765, 0.109804, 0.262745, 0.615686) bg_color = Color(0.455894, 0.0685824, 0.187642, 0.945098)
corner_radius_top_left = 2 corner_radius_top_left = 5
corner_radius_top_right = 2 corner_radius_top_right = 2
corner_radius_bottom_right = 2 corner_radius_bottom_right = 5
corner_radius_bottom_left = 2 corner_radius_bottom_left = 5
shadow_size = 2
shadow_offset = Vector2(2, 2)
[node name="heder" type="Label"] [node name="heder" type="Label"]
custom_minimum_size = Vector2(0, 30) custom_minimum_size = Vector2(0, 30)
offset_right = 128.0 offset_right = 128.0
offset_bottom = 23.0 offset_bottom = 23.0
theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(1, 1, 0.941176, 1)
theme_override_font_sizes/font_size = 15 theme_override_font_sizes/font_size = 15
theme_override_styles/normal = SubResource("StyleBoxFlat_2thpi") theme_override_styles/normal = SubResource("StyleBoxFlat_2thpi")
horizontal_alignment = 1 horizontal_alignment = 1

View File

@@ -2,24 +2,35 @@
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q1ixs"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q1ixs"]
bg_color = Color(0, 0, 0, 0.490196) bg_color = Color(0, 0, 0, 0.490196)
border_width_bottom = 2 corner_radius_top_left = 5
border_color = Color(0.223529, 0.168627, 0.223529, 1) corner_radius_top_right = 5
corner_radius_top_left = 3 corner_radius_bottom_right = 5
corner_radius_top_right = 3 corner_radius_bottom_left = 5
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[node name="Label" type="LineEdit"] [node name="Label" type="LineEdit"]
offset_right = 70.75 texture_filter = 2
offset_bottom = 32.0 texture_repeat = 2
focus_mode = 0 clip_contents = true
theme_override_colors/font_uneditable_color = Color(1, 1, 1, 1) layout_direction = 2
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -103.0
offset_right = 75.0
offset_bottom = 137.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_colors/font_uneditable_color = Color(1, 1, 0.941176, 1)
theme_override_font_sizes/font_size = 17 theme_override_font_sizes/font_size = 17
theme_override_styles/read_only = SubResource("StyleBoxFlat_q1ixs")
theme_override_styles/normal = SubResource("StyleBoxFlat_q1ixs") theme_override_styles/normal = SubResource("StyleBoxFlat_q1ixs")
alignment = 1 alignment = 1
caret_blink = true
caret_blink_interval = 0.5 caret_blink_interval = 0.5
[node name="ColorRect" type="ColorRect" parent="."] [node name="Color_Ems_g" type="ColorRect" parent="."]
layout_mode = 0 layout_mode = 0
offset_right = 1933.0 offset_right = 1933.0
offset_bottom = 1088.0 offset_bottom = 1088.0

View File

@@ -6,12 +6,10 @@
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q1ixs"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q1ixs"]
bg_color = Color(0, 0, 0, 0.490196) bg_color = Color(0, 0, 0, 0.490196)
border_width_bottom = 2 corner_radius_top_left = 5
border_color = Color(0.223529, 0.168627, 0.223529, 1) corner_radius_top_right = 5
corner_radius_top_left = 3 corner_radius_bottom_right = 5
corner_radius_top_right = 3 corner_radius_bottom_left = 5
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[sub_resource type="SpriteFrames" id="SpriteFrames_a7q1i"] [sub_resource type="SpriteFrames" id="SpriteFrames_a7q1i"]
animations = [{ animations = [{
@@ -34,18 +32,17 @@ animations = [{
}] }]
[node name="PanelContainer" type="PanelContainer"] [node name="PanelContainer" type="PanelContainer"]
custom_minimum_size = Vector2(50, 35)
offset_left = -3.0 offset_left = -3.0
offset_right = 319.0 offset_right = 119.0
offset_bottom = 66.0 offset_bottom = 35.0
theme_override_styles/panel = SubResource("StyleBoxFlat_q1ixs") theme_override_styles/panel = SubResource("StyleBoxFlat_q1ixs")
metadata/_edit_lock_ = true
[node name="ColorRect" type="ColorRect" parent="."] [node name="Color_ems_g" type="ColorRect" parent="."]
layout_mode = 2 layout_mode = 2
color = Color(0, 0, 0, 0.195) color = Color(1, 1, 1, 0)
[node name="SZI_x" type="AnimatedSprite2D" parent="."] [node name="SZI_x" type="AnimatedSprite2D" parent="."]
position = Vector2(40, 11) position = Vector2(59, 18)
scale = Vector2(1.2, 1.2) scale = Vector2(1.2, 1.2)
sprite_frames = SubResource("SpriteFrames_a7q1i") sprite_frames = SubResource("SpriteFrames_a7q1i")
metadata/_edit_lock_ = true

View File

@@ -3,6 +3,10 @@
[ext_resource type="Script" path="res://scripts/switch.gd" id="1_h0k6p"] [ext_resource type="Script" path="res://scripts/switch.gd" id="1_h0k6p"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r5cym"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r5cym"]
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_b6sp7"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_b6sp7"]