Skip to content

Commit

Permalink
Set object name on cells & modals
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Dec 18, 2023
1 parent c03128b commit f7c3655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BeatSaberMarkupLanguage/Components/CustomListTableData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public LevelListTableCell GetTableCell()
}

tableCell._notOwned = false;

tableCell.name = $"BSML{nameof(LevelListTableCell)}";
tableCell.reuseIdentifier = reuseIdentifier;
return tableCell;
}
Expand All @@ -84,6 +84,7 @@ public BSMLBoxTableCell GetBoxTableCell()
tableCell = InstantiateBoxTableCell(levelPackTableCellInstance);
}

tableCell.name = nameof(BSMLBoxTableCell);
tableCell.reuseIdentifier = reuseIdentifier;
return tableCell;
}
Expand Down Expand Up @@ -125,6 +126,7 @@ public SimpleTextTableCell GetSimpleTextTableCell()
tableCell = Instantiate(simpleTextTableCellInstance);
}

tableCell.name = $"BSML{nameof(SimpleTextTableCell)}";
tableCell.reuseIdentifier = reuseIdentifier;
return tableCell;
}
Expand Down
1 change: 1 addition & 0 deletions BeatSaberMarkupLanguage/Tags/ModalTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public override GameObject CreateObject(Transform parent)
}

ModalView modalView = DiContainer.InstantiatePrefabForComponent<ModalView>(modalViewTemplate, parent);
modalView.name = "BSMLModal";
modalView._presentPanelAnimations = modalViewTemplate._presentPanelAnimations;
modalView._dismissPanelAnimation = modalViewTemplate._dismissPanelAnimation;

Expand Down

0 comments on commit f7c3655

Please sign in to comment.