mirror of
https://github.com/Relintai/pmlpp_sample.git
synced 2025-01-31 15:49:20 +01:00
13 lines
250 B
GDScript
13 lines
250 B
GDScript
extends Reference
|
|
class_name Bar
|
|
|
|
var rect: Rect2
|
|
var value: Pair
|
|
|
|
func _init(rect: Rect2, value: Pair = Pair.new()) -> void:
|
|
self.value = value
|
|
self.rect = rect
|
|
|
|
func _to_string() -> String:
|
|
return "Value: %s\nRect: %s" % [self.value, self.rect]
|