添加程序化动画
This commit is contained in:
parent
03321346e4
commit
0faf999071
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,33 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
namespace BITKit;
|
||||
[Tool]
|
||||
public partial class ProductionAnimation : ScriptableAnimation
|
||||
{
|
||||
[Export] protected ProgressBar progressBar;
|
||||
[Export] protected Godot.Collections.Array<NodePath> visibleNodes;
|
||||
protected override void OnSetValue(float newValue)
|
||||
{
|
||||
if (Engine.IsEditorHint()) return;
|
||||
if (progressBar is null)
|
||||
{
|
||||
throw new Exception($"ProgressBar is Null");
|
||||
}
|
||||
for (var i = 0; i < visibleNodes.Count; i++)
|
||||
{
|
||||
var currentNode =GetNode<Control>( visibleNodes[i]);
|
||||
var threshold = (i+1) / (float)visibleNodes.Count * 100;
|
||||
GD.Print($"当前Node:{currentNode.Name},阈值{threshold} / {newValue}");
|
||||
if (threshold <= newValue)
|
||||
{
|
||||
currentNode.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
currentNode.Hide();
|
||||
}
|
||||
}
|
||||
progressBar.Value = newValue;
|
||||
}
|
||||
}
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://c0p5mw7gbwwk6"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://c0p5mw7gbwwk6"]
|
||||
|
||||
[ext_resource type="VideoStream" path="res://Mods/工业数据采集与分析应用分享/Arts/Videos/生产过程模拟.ogv" id="1_n53dq"]
|
||||
[ext_resource type="Script" path="res://BITKit/Scripts/Components/RuntimeNode.cs" id="2_isay2"]
|
||||
[ext_resource type="Script" path="res://Mods/工业数据采集与分析应用分享/Scripts/ProductionAnimation.cs" id="3_6smad"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mmg2t"]
|
||||
content_margin_left = 8.0
|
||||
|
@ -114,39 +115,15 @@ tracks/0/keys = {
|
|||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("1:visible")
|
||||
tracks/1/path = NodePath("2:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("2:visible")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 4),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("3:visible")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 6),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mqq75"]
|
||||
_data = {
|
||||
|
@ -249,54 +226,6 @@ tracks/0/keys = {
|
|||
"update": 0,
|
||||
"values": [0.0, 90.0, 100.0]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("1:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("2:visible")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 4),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("3:visible")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 6),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("4:visible")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0, 8),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_br22x"]
|
||||
_data = {
|
||||
|
@ -354,18 +283,6 @@ tracks/3/keys = {
|
|||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("4:visible")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0, 10),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0dofc"]
|
||||
_data = {
|
||||
|
@ -373,7 +290,7 @@ _data = {
|
|||
}
|
||||
|
||||
[node name="生产模拟" type="ReferenceRect"]
|
||||
offset_right = 1280.0
|
||||
offset_right = 1368.0
|
||||
offset_bottom = 384.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
|
@ -392,102 +309,361 @@ autoplay = true
|
|||
expand = true
|
||||
script = ExtResource("2_isay2")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
|
||||
[node name="生产步骤" type="VBoxContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="Label2" type="Label" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderLarge"
|
||||
theme_override_colors/font_color = Color(0.133333, 0.133333, 0.133333, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_mmg2t")
|
||||
text = "执行生产操作"
|
||||
text = "生产步骤"
|
||||
|
||||
[node name="Button" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="Button" type="Button" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "创建订单"
|
||||
text = "原材料出库"
|
||||
|
||||
[node name="Button4" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="Button4" type="Button" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "注册订单标识"
|
||||
text = "底衬压装"
|
||||
|
||||
[node name="Button2" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="Button2" type="Button" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "注册设备标识"
|
||||
text = "笔记本装配"
|
||||
|
||||
[node name="Button3" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="Button3" type="Button" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "注册环境标识"
|
||||
text = "UV打印"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Button5" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||
[node name="Button5" type="Button" parent="HBoxContainer/生产步骤"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "对当前操作抛出异常"
|
||||
text = "交付/入库"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer"]
|
||||
[node name="生产过程" type="VBoxContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer2"]
|
||||
[node name="Label" type="Label" parent="HBoxContainer/生产过程"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderLarge"
|
||||
theme_override_colors/font_color = Color(0.133333, 0.133333, 0.133333, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_mmg2t")
|
||||
text = "生产过程"
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="HBoxContainer/VBoxContainer2"]
|
||||
[node name="TabContainer" type="TabContainer" parent="HBoxContainer/生产过程"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
clip_tabs = false
|
||||
tabs_visible = false
|
||||
|
||||
[node name="Default" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer"]
|
||||
[node name="Default" type="Label" parent="HBoxContainer/生产过程/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "在右侧列表中点击需要的指令"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="创建订单" type="VBoxContainer" parent="HBoxContainer/VBoxContainer2/TabContainer"]
|
||||
[node name="原材料出库" type="VBoxContainer" parent="HBoxContainer/生产过程/TabContainer" node_paths=PackedStringArray("progressBar")]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_isay2")
|
||||
script = ExtResource("3_6smad")
|
||||
progressBar = NodePath("ProgressBar")
|
||||
visibleNodes = Array[NodePath]([NodePath("0"), NodePath("1"), NodePath("2"), NodePath("3"), NodePath("4"), NodePath("5")])
|
||||
autoPlay = true
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
min_value = 28.3333
|
||||
value = 28.3333
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="0" type="Label" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
text = "出库笔记本壳"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
text = "出库笔记本纸张"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
text = "出库笔记本卡扣"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
text = "运输到装配区"
|
||||
|
||||
[node name="4" type="Label" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
text = "放在装配区等待装配"
|
||||
|
||||
[node name="5" type="Label" parent="HBoxContainer/生产过程/TabContainer/原材料出库"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"SuccessBox"
|
||||
text = "已完成"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="底衬压装" type="VBoxContainer" parent="HBoxContainer/生产过程/TabContainer" node_paths=PackedStringArray("progressBar")]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_6smad")
|
||||
progressBar = NodePath("ProgressBar")
|
||||
visibleNodes = Array[NodePath]([NodePath("0"), NodePath("1"), NodePath("2"), NodePath("3"), NodePath("4"), NodePath("5"), NodePath("6"), NodePath("SuccessBox")])
|
||||
autoPlay = true
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
value = 6.0
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "出库衬套"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "运送到冲压区"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "放置在冲压区"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "冲压"
|
||||
|
||||
[node name="4" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "取回衬套"
|
||||
|
||||
[node name="5" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "运输到装配区"
|
||||
|
||||
[node name="6" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
text = "放在装配区"
|
||||
|
||||
[node name="SuccessBox" type="Label" parent="HBoxContainer/生产过程/TabContainer/底衬压装"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"SuccessBox"
|
||||
text = "已完成"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="笔记本装配" type="VBoxContainer" parent="HBoxContainer/生产过程/TabContainer" node_paths=PackedStringArray("progressBar")]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_6smad")
|
||||
progressBar = NodePath("ProgressBar")
|
||||
visibleNodes = Array[NodePath]([NodePath("0"), NodePath("1"), NodePath("2"), NodePath("3"), NodePath("SuccessBox")])
|
||||
autoPlay = true
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/生产过程/TabContainer/笔记本装配"]
|
||||
layout_mode = 2
|
||||
min_value = 55.0
|
||||
value = 59.5
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/生产过程/TabContainer/笔记本装配"]
|
||||
layout_mode = 2
|
||||
text = "装配笔记本壳"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/生产过程/TabContainer/笔记本装配"]
|
||||
layout_mode = 2
|
||||
text = "装配卡扣"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/生产过程/TabContainer/笔记本装配"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "装配衬套"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/生产过程/TabContainer/笔记本装配"]
|
||||
layout_mode = 2
|
||||
text = "装配纸张"
|
||||
|
||||
[node name="SuccessBox" type="Label" parent="HBoxContainer/生产过程/TabContainer/笔记本装配"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"SuccessBox"
|
||||
text = "已完成"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="UV打印" type="VBoxContainer" parent="HBoxContainer/生产过程/TabContainer" node_paths=PackedStringArray("progressBar")]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_6smad")
|
||||
progressBar = NodePath("ProgressBar")
|
||||
visibleNodes = Array[NodePath]([NodePath("0"), NodePath("1"), NodePath("2"), NodePath("3"), NodePath("4"), NodePath("SuccessBox")])
|
||||
autoPlay = true
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
value = 8.31
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
text = "取回装配笔记本"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
text = "运输到打印区"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
text = "放置笔记本到打印区"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
text = "开始打印"
|
||||
|
||||
[node name="4" type="Label" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
text = "取回打印笔记本"
|
||||
|
||||
[node name="SuccessBox" type="Label" parent="HBoxContainer/生产过程/TabContainer/UV打印"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"SuccessBox"
|
||||
text = "已完成"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="入库" type="VBoxContainer" parent="HBoxContainer/生产过程/TabContainer" node_paths=PackedStringArray("progressBar")]
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_6smad")
|
||||
progressBar = NodePath("ProgressBar")
|
||||
visibleNodes = Array[NodePath]([NodePath("0"), NodePath("1"), NodePath("SuccessBox")])
|
||||
autoPlay = true
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/生产过程/TabContainer/入库"]
|
||||
layout_mode = 2
|
||||
value = 12.0
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/生产过程/TabContainer/入库"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
text = "运输到交付区"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/生产过程/TabContainer/入库"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
text = "放置笔记本到交付区"
|
||||
|
||||
[node name="SuccessBox" type="Label" parent="HBoxContainer/生产过程/TabContainer/入库"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"SuccessBox"
|
||||
text = "已完成"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="注册操作" type="VBoxContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label2" type="Label" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderLarge"
|
||||
theme_override_colors/font_color = Color(0.133333, 0.133333, 0.133333, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_mmg2t")
|
||||
text = "注册操作"
|
||||
|
||||
[node name="Button" type="Button" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "创建订单"
|
||||
|
||||
[node name="Button4" type="Button" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "注册订单标识"
|
||||
|
||||
[node name="Button2" type="Button" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "注册设备标识"
|
||||
|
||||
[node name="Button3" type="Button" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "注册环境标识"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Button5" type="Button" parent="HBoxContainer/注册操作"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Flat"
|
||||
text = "对当前操作抛出异常"
|
||||
|
||||
[node name="注册过程" type="VBoxContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label" type="Label" parent="HBoxContainer/注册过程"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderLarge"
|
||||
theme_override_colors/font_color = Color(0.133333, 0.133333, 0.133333, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_mmg2t")
|
||||
text = "生产过程"
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="HBoxContainer/注册过程"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
tabs_visible = false
|
||||
|
||||
[node name="Default" type="Label" parent="HBoxContainer/注册过程/TabContainer"]
|
||||
layout_mode = 2
|
||||
text = "在右侧列表中点击需要的指令"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="创建订单" type="VBoxContainer" parent="HBoxContainer/注册过程/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_isay2")
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
layout_mode = 2
|
||||
min_value = 28.3333
|
||||
value = 28.3333
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
layout_mode = 2
|
||||
text = "正在创建订单"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="1" type="Label" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_631sk")
|
||||
text = "已创建标识为88.123.64/20230704170401订单"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="2" type="Label" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "正在生成订单号"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="3" type="Label" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_631sk")
|
||||
text = "已生成订单号:20230704170401"
|
||||
|
||||
[node name="4" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="4" type="Label" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
@ -495,38 +671,38 @@ theme_type_variation = &"SuccessBox"
|
|||
text = "已创建订单并下发到MES系统"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/VBoxContainer2/TabContainer/创建订单"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/注册过程/TabContainer/创建订单"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_0nmby")
|
||||
}
|
||||
|
||||
[node name="注册订单标识" type="VBoxContainer" parent="HBoxContainer/VBoxContainer2/TabContainer"]
|
||||
[node name="注册订单标识" type="VBoxContainer" parent="HBoxContainer/注册过程/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_isay2")
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识"]
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/注册过程/TabContainer/注册订单标识"]
|
||||
layout_mode = 2
|
||||
min_value = 55.0
|
||||
value = 55.0
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识"]
|
||||
[node name="0" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册订单标识"]
|
||||
layout_mode = 2
|
||||
text = "正在请求注册订单标识"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识"]
|
||||
[node name="1" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册订单标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_631sk")
|
||||
text = "已提交订单号20230704170401"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识"]
|
||||
[node name="2" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册订单标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "正在等待返回提交结果"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识"]
|
||||
[node name="3" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册订单标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
@ -534,48 +710,48 @@ theme_type_variation = &"SuccessBox"
|
|||
text = "订单已注册到标识"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/注册过程/TabContainer/注册订单标识"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_mqq75")
|
||||
}
|
||||
|
||||
[node name="注册设备标识" type="VBoxContainer" parent="HBoxContainer/VBoxContainer2/TabContainer"]
|
||||
[node name="注册设备标识" type="VBoxContainer" parent="HBoxContainer/注册过程/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_isay2")
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="0" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
layout_mode = 2
|
||||
text = "正在注册参与生产的设备"
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="1" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "正在注册装配机械臂SR7C1L"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="2" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "正在注册AGV电流与电量"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="3" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "正在注册AGV机械臂"
|
||||
|
||||
[node name="4" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="4" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "正在注册SR夹爪"
|
||||
|
||||
[node name="5" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="5" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
@ -583,81 +759,81 @@ theme_type_variation = &"SuccessBox"
|
|||
text = "已注册参与生产的设备"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/注册过程/TabContainer/注册设备标识"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_t4po5")
|
||||
}
|
||||
|
||||
[node name="注册环境标识" type="VBoxContainer" parent="HBoxContainer/VBoxContainer2/TabContainer"]
|
||||
[node name="注册环境标识" type="VBoxContainer" parent="HBoxContainer/注册过程/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_isay2")
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="0" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="0" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "正在连接到传感器"
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="1" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderMedium"
|
||||
text = "已获取温度:42℃"
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="2" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderMedium"
|
||||
text = "已获取湿度:50%"
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="3" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "正在提交温湿度标识到解析节点"
|
||||
|
||||
[node name="4" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="4" type="Label" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"SuccessBox"
|
||||
text = "已提交温湿度数据到解析节点"
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/注册过程/TabContainer/注册环境标识"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_br22x")
|
||||
}
|
||||
|
||||
[node name="对当前操作抛出异常" type="VBoxContainer" parent="HBoxContainer/VBoxContainer2/TabContainer"]
|
||||
[node name="对当前操作抛出异常" type="VBoxContainer" parent="HBoxContainer/注册过程/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_isay2")
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常"]
|
||||
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="1" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常"]
|
||||
[node name="1" type="Label" parent="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
text = "正在提交数据到标识解析节点..."
|
||||
|
||||
[node name="2" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常"]
|
||||
[node name="2" type="Label" parent="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
theme_type_variation = &"AccentBox"
|
||||
text = "提交失败,正在自动校正数据..."
|
||||
|
||||
[node name="3" type="Label" parent="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常"]
|
||||
[node name="3" type="Label" parent="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
text = "正在提交数据到标识解析节点..."
|
||||
|
||||
[node name="4" type="RichTextLabel" parent="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常"]
|
||||
[node name="4" type="RichTextLabel" parent="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
@ -668,7 +844,7 @@ text = "[b]Oops[/b]
|
|||
但仍然提交失败
|
||||
你可以手动提交数据到解析节点"
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_0dofc")
|
||||
}
|
||||
|
@ -678,28 +854,37 @@ libraries = {
|
|||
[connection signal="draw" from="HBoxContainer/VideoStreamPlayer" to="HBoxContainer/VideoStreamPlayer" method="Enable"]
|
||||
[connection signal="finished" from="HBoxContainer/VideoStreamPlayer" to="HBoxContainer/VideoStreamPlayer" method="play"]
|
||||
[connection signal="hidden" from="HBoxContainer/VideoStreamPlayer" to="HBoxContainer/VideoStreamPlayer" method="Disable"]
|
||||
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Button" to="HBoxContainer/VBoxContainer2/TabContainer" method="set_current_tab" binds= [1]]
|
||||
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Button4" to="HBoxContainer/VBoxContainer2/TabContainer" method="set_current_tab" binds= [2]]
|
||||
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Button2" to="HBoxContainer/VBoxContainer2/TabContainer" method="set_current_tab" binds= [3]]
|
||||
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Button3" to="HBoxContainer/VBoxContainer2/TabContainer" method="set_current_tab" binds= [4]]
|
||||
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Button5" to="HBoxContainer/VBoxContainer2/TabContainer" method="set_current_tab" binds= [5]]
|
||||
[connection signal="OnDisable" from="HBoxContainer/VBoxContainer2/TabContainer/创建订单" to="HBoxContainer/VBoxContainer2/TabContainer/创建订单/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/VBoxContainer2/TabContainer/创建订单" to="HBoxContainer/VBoxContainer2/TabContainer/创建订单/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/VBoxContainer2/TabContainer/创建订单" to="HBoxContainer/VBoxContainer2/TabContainer/创建订单" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/VBoxContainer2/TabContainer/创建订单" to="HBoxContainer/VBoxContainer2/TabContainer/创建订单" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/VBoxContainer2/TabContainer/注册订单标识" to="HBoxContainer/VBoxContainer2/TabContainer/创建订单" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册设备标识" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识" to="HBoxContainer/VBoxContainer2/TabContainer/注册环境标识" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常" to="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常" to="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常" to="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常" to="HBoxContainer/VBoxContainer2/TabContainer/对当前操作抛出异常" method="Disable"]
|
||||
[connection signal="pressed" from="HBoxContainer/生产步骤/Button" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab"]
|
||||
[connection signal="pressed" from="HBoxContainer/生产步骤/Button4" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab"]
|
||||
[connection signal="pressed" from="HBoxContainer/生产步骤/Button2" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab"]
|
||||
[connection signal="pressed" from="HBoxContainer/生产步骤/Button3" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab"]
|
||||
[connection signal="pressed" from="HBoxContainer/生产步骤/Button5" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab"]
|
||||
[connection signal="draw" from="HBoxContainer/生产过程/TabContainer/UV打印" to="HBoxContainer/生产过程/TabContainer/UV打印" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/生产过程/TabContainer/UV打印" to="HBoxContainer/生产过程/TabContainer/UV打印" method="Disable"]
|
||||
[connection signal="draw" from="HBoxContainer/生产过程/TabContainer/入库" to="HBoxContainer/生产过程/TabContainer/入库" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/生产过程/TabContainer/入库" to="HBoxContainer/生产过程/TabContainer/入库" method="Disable"]
|
||||
[connection signal="pressed" from="HBoxContainer/注册操作/Button" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab" binds= [1]]
|
||||
[connection signal="pressed" from="HBoxContainer/注册操作/Button4" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab" binds= [2]]
|
||||
[connection signal="pressed" from="HBoxContainer/注册操作/Button2" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab" binds= [3]]
|
||||
[connection signal="pressed" from="HBoxContainer/注册操作/Button3" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab" binds= [4]]
|
||||
[connection signal="pressed" from="HBoxContainer/注册操作/Button5" to="HBoxContainer/注册过程/TabContainer" method="set_current_tab" binds= [5]]
|
||||
[connection signal="OnDisable" from="HBoxContainer/注册过程/TabContainer/创建订单" to="HBoxContainer/注册过程/TabContainer/创建订单/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/注册过程/TabContainer/创建订单" to="HBoxContainer/注册过程/TabContainer/创建订单/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/注册过程/TabContainer/创建订单" to="HBoxContainer/注册过程/TabContainer/创建订单" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/注册过程/TabContainer/创建订单" to="HBoxContainer/注册过程/TabContainer/创建订单" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/注册过程/TabContainer/注册订单标识" to="HBoxContainer/注册过程/TabContainer/注册订单标识/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/注册过程/TabContainer/注册订单标识" to="HBoxContainer/注册过程/TabContainer/注册订单标识/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/注册过程/TabContainer/注册订单标识" to="HBoxContainer/注册过程/TabContainer/注册订单标识" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/注册过程/TabContainer/注册订单标识" to="HBoxContainer/注册过程/TabContainer/创建订单" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/注册过程/TabContainer/注册设备标识" to="HBoxContainer/注册过程/TabContainer/注册设备标识/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/注册过程/TabContainer/注册设备标识" to="HBoxContainer/注册过程/TabContainer/注册设备标识/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/注册过程/TabContainer/注册设备标识" to="HBoxContainer/注册过程/TabContainer/注册设备标识" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/注册过程/TabContainer/注册设备标识" to="HBoxContainer/注册过程/TabContainer/注册设备标识" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/注册过程/TabContainer/注册环境标识" to="HBoxContainer/注册过程/TabContainer/注册环境标识/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/注册过程/TabContainer/注册环境标识" to="HBoxContainer/注册过程/TabContainer/注册环境标识/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/注册过程/TabContainer/注册环境标识" to="HBoxContainer/注册过程/TabContainer/注册环境标识" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/注册过程/TabContainer/注册环境标识" to="HBoxContainer/注册过程/TabContainer/注册环境标识" method="Disable"]
|
||||
[connection signal="OnDisable" from="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常" to="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常/AnimationPlayer" method="stop" binds= [false]]
|
||||
[connection signal="OnEnable" from="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常" to="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常/AnimationPlayer" method="play" binds= ["Start"]]
|
||||
[connection signal="draw" from="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常" to="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常" method="Enable"]
|
||||
[connection signal="hidden" from="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常" to="HBoxContainer/注册过程/TabContainer/对当前操作抛出异常" method="Disable"]
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
using Godot;
|
||||
using System;
|
||||
using System.Net.WebSockets;
|
||||
|
||||
namespace BITKit;
|
||||
[Tool]
|
||||
public partial class ScriptableAnimation : Node
|
||||
{
|
||||
[Export(PropertyHint.Range,"0,1")]
|
||||
public float Value
|
||||
{
|
||||
get => _value;
|
||||
set => SetValue(value);
|
||||
}
|
||||
private float _value;
|
||||
[Export] protected bool autoPlay;
|
||||
private void SetValue(float newValue)
|
||||
{
|
||||
_value =Math.Clamp(newValue,0,1);
|
||||
OnSetValue(newValue);
|
||||
}
|
||||
protected virtual void OnSetValue(float newValue)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (autoPlay)
|
||||
{
|
||||
Value = (Value + (float)delta)%1;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue