Setup basic GUI and scanner selection
This commit was merged in pull request #4.
This commit is contained in:
14
scripts/gui/scanner_modes.gd
Normal file
14
scripts/gui/scanner_modes.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Control
|
||||
|
||||
signal scanner_selected
|
||||
|
||||
func _on_scanner_select_item_selected(index):
|
||||
var scannerType : Scanners.Type
|
||||
|
||||
match index:
|
||||
0: scannerType = Scanners.Type.NoScanner
|
||||
1: scannerType = Scanners.Type.Water
|
||||
2: scannerType = Scanners.Type.Fertility
|
||||
3: scannerType = Scanners.Type.Presence
|
||||
|
||||
emit_signal("scanner_selected", scannerType)
|
||||
Reference in New Issue
Block a user