blob: 1bd13666fedae745d16f31dc8a01893e03708c13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
extends Panel
var level_idx = 0
func _ready():
var level = Global.get_level(self.level_idx)
$ClearMark.text = ""
if level.cleared_by == Enum.PLAYER.FIRST:
$ClearMark.text = "X"
elif level.cleared_by == Enum.PLAYER.SECOND:
$ClearMark.text = "O"
$Time.text = String(level.time) + "s"
func set_rect_size(x, y):
self.rect_size.x = x
self.rect_size.y = y
$ClearMark.rect_size.x = x
$ClearMark.rect_size.y = y
|