21 lines
468 B
GDScript
21 lines
468 B
GDScript
extends Control
|
|
|
|
var size_x = 192
|
|
var size_y = 164
|
|
var text = "button"
|
|
var config
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _enter_tree() -> void:
|
|
%button.size = Vector2(size_x,size_y)
|
|
%button.text = text
|
|
custom_minimum_size = %button.size
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(_delta: float) -> void:
|
|
pass
|
|
|
|
|
|
func _on_button_pressed() -> void:
|
|
pass # Replace with function body.
|