everything can be a little better
This commit is contained in:
parent
8b399bc69c
commit
771a83c718
9 changed files with 45 additions and 177 deletions
|
@ -1,19 +1,13 @@
|
|||
extends Control
|
||||
var background:TextureRect
|
||||
|
||||
func _ready():
|
||||
visible = false
|
||||
background = get_node("Background")
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event is InputEventKey and event.pressed:
|
||||
match(event.keycode):
|
||||
KEY_ESCAPE:
|
||||
visible = not visible
|
||||
if visible:
|
||||
background.self_modulate.a = 1
|
||||
KEY_TAB:
|
||||
background.self_modulate.a = abs(background.self_modulate.a - 1)
|
||||
|
||||
if visible:
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
extends GL_Node
|
||||
|
||||
@export var identification : String
|
||||
@export var visual_name : String
|
||||
@export var names : PackedStringArray
|
||||
@export var types : PackedStringArray
|
||||
|
||||
func _ready():
|
||||
super._ready()
|
||||
_set_title(identification)
|
||||
_set_title(visual_name)
|
||||
for i in names.size():
|
||||
match(types[i].to_lower()):
|
||||
"float":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue