-
Notifications
You must be signed in to change notification settings - Fork 2
/
metaverse.gd
83 lines (58 loc) · 1.78 KB
/
metaverse.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# tool
# class_name
# extends
extends Panel
## A brief description of your script.
##
## A more detailed description of the script.
##
## @tutorial: http://the/tutorial1/url.com
## @tutorial(Tutorial2): http://the/tutorial2/url.com
# ----- signals
signal download_metaverse_requested(
software_name, mapod4d_ver, sysop, tmp_dir, destination, which)
# ----- enums
# ----- constants
# ----- exported variables
# ----- public variables
# ----- private variables
# ----- onready variables
@onready var info = $Info
@onready var info1 = $Info1
# ----- optional built-in virtual _init method
# ----- built-in virtual _ready method
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# ----- remaining built-in virtual methods
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
pass # Replace with function body.
# ----- public methods
func update_download_info(data):
#print("{info} BS {bs} DB {db} P {perc} BRS {bricks} BR {brick}".format(
# data))
info.set_text(
"BS {bs} DB {db} P {perc} BRS {bricks} BR {brick}".format(data))
info1.set_text(
"BS {bs} DB {db} P {perc} BRS {bricks} BR {brick}".format(data))
func update_merge_info(data):
# "file_name" "brick" "bricks" "chunk" "chunks"
info.set_text("{file_name} {brick} {bricks} {chunk} {chunks}".format(data))
info1.set_text("{file_name} {brick} {bricks} {chunk} {chunks}".format(data))
func update_msg(msg_data):
#print(str(msg_data))
info.set_text(str(msg_data))
info1.set_text(str(msg_data))
# ----- private methods
func _on_download_pressed():
info.text = ""
emit_signal(
"download_metaverse_requested",
"metaversetest",
"002000000002",
"sysop",
"files/tmp",
"files/test_merged",
self
)