blob: aa7c9bd08e81610f6ad875de4522e52b22548e36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
extends MarginContainer
var task_id
func populate(data):
task_id = data.id
$"%Name".text = data.name
$"%Length".text = "%d min" % data.estimated_length
var freq = $"%Frequency"
freq.text = DataHelpers.frequency(data.frequency)
if freq.text.length() > 10:
freq["custom_fonts/font"] = freq["custom_fonts/font"].duplicate()
freq["custom_fonts/font"].size /= 2
func _on_Button_button_up():
$"/root/Main".nav_screen("Task", Task, "get_by_id", [task_id])
|