diff options
| author | dam <dam@gudinoff> | 2022-03-29 16:41:32 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-03-29 16:41:32 +0000 |
| commit | 84524e46a378d3694ebee9ab541feefe01866219 (patch) | |
| tree | f6e595877126b09dc1923e5ebd455207da10130c /logic | |
| parent | 9083809865719e443b8c85af0f4a517e7b2742e1 (diff) | |
| download | surgery-log-84524e46a378d3694ebee9ab541feefe01866219.tar.zst surgery-log-84524e46a378d3694ebee9ab541feefe01866219.zip | |
WIP to add back button on popup.
Diffstat (limited to 'logic')
| -rw-r--r-- | logic/popup.gd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/popup.gd b/logic/popup.gd index 7526678..5a1c2a5 100644 --- a/logic/popup.gd +++ b/logic/popup.gd @@ -11,6 +11,11 @@ func _init(): anchor_right = 1.0 anchor_bottom = 1.0 + +func _ready(): + get_node("back").connect("pressed", self, "hide") + + func popup_control(title: String, item: Control): self.title.text = title control = item |
