-
Notifications
You must be signed in to change notification settings - Fork 1
/
ImageStatusMini.gd
40 lines (34 loc) · 1.19 KB
/
ImageStatusMini.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
extends Panel
class_name ImageStatusMini
@export var have_metadata:bool = false
@export var have_index_report:bool = false
@export var have_vuln_report:bool = false
@export var have_signatures:bool = false
@export var have_sigverification:bool = true
@export var have_error:bool = false
@onready var metadata_pill = $MetadataPill
@onready var index_report_pill = $IndexReportPill
@onready var vuln_report_pill = $VulnReportPill
@onready var signatures_pill = $SignaturesPill
@onready var signatures_verification_pill = $SignaturesVerificationPill
@onready var error = $Error
func clone() -> ImageStatusMini:
var dupe = self.duplicate()
dupe.have_metadata = have_metadata
dupe.have_index_report = have_index_report
dupe.have_vuln_report = have_vuln_report
dupe.have_signatures = have_signatures
dupe.have_sigverification = have_sigverification
dupe.have_error = have_error
return dupe
func _ready():
_sync()
func _process(_delta):
_sync()
func _sync():
metadata_pill.active=have_metadata
index_report_pill.active=have_index_report
vuln_report_pill.active=have_vuln_report
signatures_pill.active=have_signatures
signatures_verification_pill.active=have_sigverification
error.visible=have_error