Skip to content

Commit

Permalink
Fix BSMLBoxTableCell formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Dec 9, 2023
1 parent 2ea2b48 commit a7af76a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BeatSaberMarkupLanguage/Components/BSMLBoxTableCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class BSMLBoxTableCell : TableCell

private Color highlightedColor0 = new(0f, 64f / 85f, 1f, 1f);

private Color highlightedColor1 = new(0f, 64f / 85f, 1f, 0f);
private Color highlightedColor1 = new(0f, 64f / 85f, 1f, 1f);

public ImageView CoverImage { get; private set; }

Expand Down
4 changes: 4 additions & 0 deletions BeatSaberMarkupLanguage/Components/CustomListTableData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public BSMLBoxTableCell InstantiateBoxTableCell(LevelPackCell levelPackTableCell
ImageView coverImage = levelPackTableCell._coverImage;
ImageView selectionImage = levelPackTableCell._selectionImage;

// the cover image isn't perfectly square
coverImage.rectTransform.sizeDelta = new Vector2(0, -1);
selectionImage.rectTransform.sizeDelta = new Vector2(9, 9);

foreach (Transform child in coverImage.transform)
{
Destroy(child.gameObject);
Expand Down

0 comments on commit a7af76a

Please sign in to comment.