using Godot; using System; using Cirno.Scripts.UI; using Godot.Collections; public partial class KeyRemapping : Container { [Export] public Dictionary KeysDict { get; private set; } = new(); [Export] public Container KeysContainer { get; private set; } [Export] public PackedScene ItemPrefab { get; private set; } public override void _Ready() { //var remap = GetNode("/root/Remap"); //InputEvent. foreach (var element in KeysDict) { var item = ItemPrefab.Instantiate(); item.KeyId = element.Key; item.KeyName = element.Value; KeysContainer.AddChild(item); } } }