using Godot; using System; using System.Collections; using System.Collections.Generic; using System.Linq; public partial class row : Control { [Export] private Color _RowColor; public Color RowColor { get => _RowColor; set { _RowColor = value; if (IsNodeReady()) PropogateColor(); } } [Export] private Vector2 _CardSize; public Vector2 CardSize { get => _CardSize; set { _CardSize = value; if (IsNodeReady()) PropogateCardSize(); } } [Export] private string _RowText; public string RowText { get => _RowText; set { _RowText = value; if (IsNodeReady()) PropogateRowText(); } } private string _RowId; [Export] public string RowId { get => _RowId; set { _RowId = value; if (IsNodeReady()) PropogateRowId(); } } public IEnumerable Cards => GetNode("%RowCardContainer").GetChildren().OfType(); private void PropogateColor() { GetNode("%RowGrid").RowColor = _RowColor; } private void PropogateCardSize() { //CustomMinimumSize = new Vector2(0, _CardSize.Y); GetNode("%RowGrid").CardSize = _CardSize; GetNode("%RowTitleBoxBackground").CustomMinimumSize = _CardSize; } private void PropogateRowText() { GetNode