-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoubt_pass.gd
More file actions
35 lines (23 loc) · 780 Bytes
/
Copy pathdoubt_pass.gd
File metadata and controls
35 lines (23 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
extends Control
#in progress!!
#the parts of the scene, which re just two buttons and a message currently
@onready var doubtButt = $"Doubt or Pass/DPbuttons/doubt"
@onready var passButt = $"Doubt or Pass/DPbuttons/pass"
@onready var DPUI = $"Doubt or Pass"
signal DorP(Doubt)
@export var Doubt = 0
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func start(): #shows buttons
DPUI.show()
func _on_doubt_pressed(): #adds 1 to the doubt count
DPUI.hide()
Doubt = 1
DorP.emit(Doubt)
func _on_pass_pressed(): #just hides buttons and doesn't change the doubt count
DPUI.hide()
DorP.emit(Doubt)