This commit is contained in:
Eric Vande Voort
2025-01-07 16:10:03 -06:00
commit 7eb0dea424
147 changed files with 9096 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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)