29 lines
831 B
C#
29 lines
831 B
C#
using System;
|
|
using Godot;
|
|
|
|
public partial class TaskInfoItem : PanelContainer {
|
|
private Button _btn;
|
|
private Label _lbl;
|
|
private ProgressBar _pb;
|
|
|
|
private TextureRect _tr;
|
|
|
|
[Export] public Texture2D Icon { get; set; }
|
|
|
|
[Export] public string LabelText { get; set; }
|
|
|
|
[Export] public float Progress { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
// 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) { }
|
|
} |