Files
MisguidedLaunch/scripts/module_selector.gd
Eric Vande Voort 7eb0dea424 init
2025-01-07 16:10:03 -06:00

19 lines
585 B
GDScript

extends VBoxContainer
class_name ModuleSelector
@onready var location_label = %LocationLabel
@onready var module_selector_option = %ModuleSelectorOption
@onready var module_texture = %ModuleTexture
@onready var description_label = %DescriptionLabel
var _location: GameData.ModuleType
var modules_list: Array
func with_location_data(location: GameData.ModuleType, _mid_index: int = 0) -> ModuleSelector:
_location = location
return self
func _ready():
modules_list = DataHandler.get_modules_for_location(_location)
location_label.text = GameData.get_module_type_name(_location)