deleted demo task and added placable extractors
Build Godot Project (Linux) / build-linux (push) Successful in 28s
Build Godot Project (Linux) / build-linux (push) Successful in 28s
This commit is contained in:
+12
@@ -3,8 +3,12 @@ extends Sprite2D
|
||||
var output_value: int
|
||||
|
||||
func setup(output_value):
|
||||
$tooltip.hide()
|
||||
print("Producer spawned physically with a value of: ", output_value)
|
||||
$text_value.text = str(output_value)
|
||||
$tooltip.text = "Placed at: (%s, %s)" % [self.global_position[0], self.global_position[1]]
|
||||
print($tooltip.size )
|
||||
$tooltip.size = Vector2i(100, 100)
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
@@ -14,3 +18,11 @@ func _ready() -> void:
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_control_mouse_entered() -> void:
|
||||
$tooltip.show()
|
||||
|
||||
|
||||
func _on_control_mouse_exited() -> void:
|
||||
$tooltip.hide()
|
||||
|
||||
Reference in New Issue
Block a user