in Editor/Window/Components/ProfileTable.cs [49:97]
public void UpdateGUI()
{
List<VisualElement> _allMembers = _tableParent.Children().ToList();
foreach (VisualElement child in _allMembers)
{
if (child.name != "table__header")
{
_tableParent.Remove(child);
}
}
IReadOnlyList<string> _allProfiles = _stateManager.AllProfiles;
foreach (string profile in _allProfiles)
{
UserProfile _fullProfile = _stateManager.getProfileByName(profile);
if (showRadioButtons)
{
VisualElement _tableMember = CreateTableMember(showRadioButtons, _fullProfile);
_tableParent.Add(_tableMember);
}
else
{
if (ProfileIsSelected(_fullProfile))
{
VisualElement _tableMember = CreateTableMember(showRadioButtons, _fullProfile);
_tableParent.Add(_tableMember);
}
}
}
if (showRadioButtons)
{
VisualElement _tableMember = new VisualElement();
_tableMember.AddToClassList("table__labels__footer");
VisualElement _nameContainer = new VisualElement();
_nameContainer.AddToClassList("table__labels__container");
Label _nameLabel = new Label("+ Add another profile");
_nameLabel.AddToClassList("table__labels__footer__text");
_nameLabel.name = "add__another__profile";
_nameContainer.Add(_nameLabel);
_tableMember.Add(_nameContainer);
_tableParent.Add(_tableMember);
}
SetupButtonCallbacks();
}