Refactoring UI and Tile logic (to allow for Hotseat/LAN/Online multiplayer)
This commit is contained in:
parent
1ed0ec226d
commit
d688eaf9c6
17 changed files with 591 additions and 17 deletions
27
TestUI.gd
Normal file
27
TestUI.gd
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
extends TextureButton
|
||||
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
#position.x = 500
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
|
||||
func _on_mouse_entered():
|
||||
var tween = get_tree().create_tween()
|
||||
|
||||
tween.tween_property(self, "position:x", 64, 0.5)
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_mouse_exited():
|
||||
var tween = get_tree().create_tween()
|
||||
|
||||
tween.tween_property(self, "position:x", 0, 0.5)
|
||||
Loading…
Add table
Add a link
Reference in a new issue