отладка панели

This commit is contained in:
2025-02-11 20:01:26 +03:00
parent b686c0f137
commit 4ec99ce481
7 changed files with 171 additions and 6 deletions

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=53 format=3 uid="uid://cvor2jm4xk3ha"] [gd_scene load_steps=55 format=3 uid="uid://cvor2jm4xk3ha"]
[ext_resource type="Script" path="res://scripts/PRD.gd" id="1_v273n"] [ext_resource type="Script" path="res://scripts/PRD.gd" id="1_v273n"]
[ext_resource type="Texture2D" uid="uid://cdxdluvyb5uei" path="res://table/on.png" id="2_dv7xx"] [ext_resource type="Texture2D" uid="uid://cdxdluvyb5uei" path="res://table/on.png" id="2_dv7xx"]
[ext_resource type="Script" path="res://table/table.gd" id="2_vmbyo"] [ext_resource type="Script" path="res://table/table.gd" id="2_vmbyo"]
[ext_resource type="Shader" path="res://Shaders/gradient.gdshader" id="2_vn1it"]
[ext_resource type="Material" uid="uid://s6xe8igevnv2" path="res://Shaders/shader_edu.tres" id="3_3syd3"] [ext_resource type="Material" uid="uid://s6xe8igevnv2" path="res://Shaders/shader_edu.tres" id="3_3syd3"]
[ext_resource type="Texture2D" uid="uid://cfktmk2rowmul" path="res://table/off.png" id="3_qvuyu"] [ext_resource type="Texture2D" uid="uid://cfktmk2rowmul" path="res://table/off.png" id="3_qvuyu"]
[ext_resource type="Shader" path="res://Shaders/ray.gdshader" id="4_uy5o2"] [ext_resource type="Shader" path="res://Shaders/ray.gdshader" id="4_uy5o2"]
@@ -73,6 +74,11 @@ TabContainer/styles/tab_focus = SubResource("StyleBoxTexture_d322q")
TabContainer/styles/tab_selected = SubResource("StyleBoxTexture_8j02b") TabContainer/styles/tab_selected = SubResource("StyleBoxTexture_8j02b")
TabContainer/styles/tabbar_background = SubResource("StyleBoxTexture_ls6vm") TabContainer/styles/tabbar_background = SubResource("StyleBoxTexture_ls6vm")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3q35w"]
shader = ExtResource("2_vn1it")
shader_parameter/outerRadius = 8.258
shader_parameter/MainAlpha = 0.653
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pxarn"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pxarn"]
bg_color = Color(0.356863, 0.278431, 0.356863, 1) bg_color = Color(0.356863, 0.278431, 0.356863, 1)
@@ -137,12 +143,12 @@ shader_parameter/ring_radius = 0.2
shader_parameter/num_points = 8 shader_parameter/num_points = 8
shader_parameter/gap_ratio = 0.102 shader_parameter/gap_ratio = 0.102
shader_parameter/all_dots_same_size = false shader_parameter/all_dots_same_size = false
shader_parameter/dot_color_start = Color(0.5, 0, 0.5, 1) shader_parameter/dot_color_start = Color(0.893646, 0.893797, 0.859099, 1)
shader_parameter/dot_color_end = Color(0.8, 0.5, 1, 1) shader_parameter/dot_color_end = Color(0.888169, 0.740534, 1, 1)
shader_parameter/enable_shadow = true shader_parameter/enable_shadow = true
shader_parameter/shadow_color = Color(0, 0, 0, 0.35) shader_parameter/shadow_color = Color(0, 0, 0, 0.35)
shader_parameter/shadow_offset = Vector2(0.03, 0.01) shader_parameter/shadow_offset = Vector2(0.03, 0.01)
shader_parameter/rotation_speed = 1.5 shader_parameter/rotation_speed = 4.995
shader_parameter/icon_size = 0.15 shader_parameter/icon_size = 0.15
shader_parameter/enable_icon_rotation = false shader_parameter/enable_icon_rotation = false
shader_parameter/reverse_icon_rotation = false shader_parameter/reverse_icon_rotation = false
@@ -185,11 +191,21 @@ 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
[node name="gradient" type="ColorRect" parent="Background"]
material = SubResource("ShaderMaterial_3q35w")
layout_mode = 0
offset_left = -1149.0
offset_top = -31.0
offset_right = 3008.0
offset_bottom = 1103.0
metadata/_edit_lock_ = true
[node name="side_panel" type="ColorRect" parent="Background"] [node name="side_panel" type="ColorRect" parent="Background"]
layout_mode = 0 layout_mode = 0
offset_right = 216.0 offset_right = 216.0
offset_bottom = 988.0 offset_bottom = 988.0
color = Color(0.586231, 0.481877, 0.585869, 1) color = Color(0.6, 0.5, 0.6, 0.9)
metadata/_edit_lock_ = true
[node name="select_prd" type="Button" parent="Background/side_panel"] [node name="select_prd" type="Button" parent="Background/side_panel"]
layout_mode = 0 layout_mode = 0

11
Shaders/gradient.gdshader Normal file
View File

@@ -0,0 +1,11 @@
shader_type canvas_item;
uniform float outerRadius : hint_range(0.0, 900.0) = 1.0;
uniform float MainAlpha : hint_range(0.0, 1.0) = 1.0;
void fragment() {
float x = abs(UV.x-.5)*2.0;
float y = abs(UV.y-.5)*2.0;
float v = (sqrt((x*x)+(y*y))/outerRadius);
COLOR = vec4(0,0,0,v*MainAlpha);
}

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://671got5vbput"
path="res://.godot/imported/бургер.png-a4597b7e50068e8e31a811680c5fcb22.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://pictures/бургер.png"
dest_files=["res://.godot/imported/бургер.png-a4597b7e50068e8e31a811680c5fcb22.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://didrk0pcfgirg"
path="res://.godot/imported/клад.png-9e9ce66d03446d5f22e89a61ca4eb967.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://pictures/клад.png"
dest_files=["res://.godot/imported/клад.png-9e9ce66d03446d5f22e89a61ca4eb967.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckvwvec0hop37"
path="res://.godot/imported/контролер.png-05a38fc04c4e4ced2b9f7faad6a4134d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://pictures/контролер.png"
dest_files=["res://.godot/imported/контролер.png-05a38fc04c4e4ced2b9f7faad6a4134d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cxn1guhi7lg3i"
path="res://.godot/imported/серпимолот.png-2793ea1f438c319da5ed90b40bb55968.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://pictures/серпимолот.png"
dest_files=["res://.godot/imported/серпимолот.png-2793ea1f438c319da5ed90b40bb55968.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -215,7 +215,9 @@ func _on_read_isa(unit_isa_ports: Dictionary) -> void:
if len(Constants.EMS_G_PORT_DATA_HOLDER) == 32: if len(Constants.EMS_G_PORT_DATA_HOLDER) == 32:
emit_signal('read_ems_g_finish') emit_signal('read_ems_g_finish')
$ISA.text = 'ISA: ' + str(len(Constants.EMS_G_PORT_DATA_HOLDER)) $ISA.text = 'ISA: ' + str(len(Constants.EMS_G_PORT_DATA_HOLDER))
$TabContainer/EMS_G/load_boadr/win_load.material.set('shader_parameter/dot_color_end', Color(0.8, 0.5, 1.0, 1.0 - 0.05 * len(Constants.EMS_G_PORT_DATA_HOLDER)))
if isa_data.has(Constants.BASE_PORTS.UG+6): if isa_data.has(Constants.BASE_PORTS.UG+6):
if (isa_data[Constants.BASE_PORTS.UG+6] & 0x7) < 7: if (isa_data[Constants.BASE_PORTS.UG+6] & 0x7) < 7:
$TabContainer/PRD/body_grid/litera_2_4_6/yau07b_control.get_node2(1, 3).select(isa_data[Constants.BASE_PORTS.UG+6] & 0x7) $TabContainer/PRD/body_grid/litera_2_4_6/yau07b_control.get_node2(1, 3).select(isa_data[Constants.BASE_PORTS.UG+6] & 0x7)