add license, move folders

This commit is contained in:
Nordup 2024-05-04 00:14:24 +04:00
parent 185cc74060
commit 271c4a46a1
132 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,25 @@
extends Control
@export var gate_events: GateEvents
@export var image: TextureRect
@export var title: Label
@export var description: RichTextLabel
var gate: Gate
func _ready() -> void:
gate_events.gate_info_loaded.connect(display_info)
gate_events.gate_error.connect(on_gate_error)
func display_info(_gate: Gate, _is_cached: bool) -> void:
gate = _gate
title.text = "Unnamed" if gate.title.is_empty() else gate.title
description.text = "No description" if gate.description.is_empty() else gate.description
image.texture = FileTools.load_external_tex(gate.image)
func on_gate_error(_code: GateEvents.GateError) -> void:
description.set_text("")