supervisor-simulator/scenes/ui-elements/TaskInfoItem.cs
2025-12-10 00:11:39 +08:00

35 lines
770 B
C#

using Godot;
using System;
public partial class TaskInfoItem : PanelContainer
{
[Export]
public Texture2D Icon {get; set;}
[Export]
public string LabelText {get; set;}
[Export]
public float Progress {get; set;}
public Guid Id {get; set;}
private TextureRect _tr;
private Label _lbl;
private ProgressBar _pb;
private Button _btn;
// Called when the node enters the scene tree for the first time.
public override void _Ready() {
_tr = GetNode<TextureRect>("H1/TextureRect");
_lbl = GetNode<Label>("H1/V1/H2/Label");
_pb = GetNode<ProgressBar>("H1/V1/ProgressBar");
_btn = GetNode<Button>("H1/CC/Button");
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}