mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
first commit
This commit is contained in:
commit
fafcbd1530
223 changed files with 107395 additions and 0 deletions
7
Menu/Buttons/RestartButton.gd
Normal file
7
Menu/Buttons/RestartButton.gd
Normal file
|
@ -0,0 +1,7 @@
|
|||
extends TextureButton
|
||||
|
||||
|
||||
|
||||
func _on_RestartButton_pressed():
|
||||
GameStats.restart_level()
|
||||
disabled = true
|
19
Menu/Buttons/RestartButton.tscn
Normal file
19
Menu/Buttons/RestartButton.tscn
Normal file
|
@ -0,0 +1,19 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Icons/Replay/replayIcon3.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Menu/Icons/Replay/replayIcon2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Menu/Icons/Replay/replayIcon1.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Menu/Buttons/RestartButton.gd" type="Script" id=4]
|
||||
|
||||
[node name="RestartButton" type="TextureButton"]
|
||||
margin_right = 32.0
|
||||
margin_bottom = 34.0
|
||||
texture_normal = ExtResource( 3 )
|
||||
texture_pressed = ExtResource( 1 )
|
||||
texture_hover = ExtResource( 2 )
|
||||
script = ExtResource( 4 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="." to="." method="_on_RestartButton_pressed"]
|
Loading…
Add table
Add a link
Reference in a new issue