public GeneratorConfigScreenHeader(GeneratorConfigDialog <T> dialog) { // todo : need to think about is there any better way to place title and description in here if (Title is GeneratorConfigScreenTitle generatorConfigScreenTitle) { generatorConfigScreenTitle.SetTitleFromDialog(dialog); } }
public void SetTitleFromDialog(GeneratorConfigDialog <T> dialog) { Title = dialog.Title; Description = dialog.Description; IconTexture = "Icons/Hexacons/social"; }