Browse Source

Fixed ModList's UI

pull/32/head
Anairkoen Schno 5 years ago
parent
commit
c3fd1b53e3
3 changed files with 5 additions and 2 deletions
  1. +2
    -2
      BSIPA-ModList/UI/ViewControllers/DownloadProgressViewController.cs
  2. +3
    -0
      BSIPA-ModList/UI/ViewControllers/ModListController.cs
  3. BIN
      Refs/BeatSaberCustomUI.dll

+ 2
- 2
BSIPA-ModList/UI/ViewControllers/DownloadProgressViewController.cs View File

@ -85,9 +85,9 @@ namespace BSIPA_ModList.UI.ViewControllers
viewport.SetParent(gobj.GetComponent<RectTransform>(), false);
gobj.GetComponent<ScrollRect>().viewport = viewport;
RectMask2D viewportMask = Instantiate(Resources.FindObjectsOfTypeAll<RectMask2D>().First(), _currentlyUpdatingTableView.transform, false);
/*RectMask2D viewportMask = Instantiate(Resources.FindObjectsOfTypeAll<RectMask2D>().First(), _currentlyUpdatingTableView.transform, false);
viewportMask.transform.DetachChildren();
_currentlyUpdatingTableView.GetComponentsInChildren<RectTransform>().First(x => x.name == "Content").transform.SetParent(viewportMask.rectTransform, false);
_currentlyUpdatingTableView.GetComponentsInChildren<RectTransform>().First(x => x.name == "Content").transform.SetParent(viewportMask.rectTransform, false);*/
(_currentlyUpdatingTableView.transform as RectTransform).anchorMin = new Vector2(0.3f, 0.5f);
(_currentlyUpdatingTableView.transform as RectTransform).anchorMax = new Vector2(0.7f, 0.5f);


+ 3
- 0
BSIPA-ModList/UI/ViewControllers/ModListController.cs View File

@ -85,6 +85,9 @@ namespace BSIPA_ModList.UI
rt.anchorMax = new Vector2(.9f, 1f);
_customListTableView.gameObject.GetComponent<ScrollRect>().scrollSensitivity = 0f;
var content = _customListTableView.contentTransform;
content.anchoredPosition = new Vector2(7f, 0f);
}
protected override void OnDestroy()


BIN
Refs/BeatSaberCustomUI.dll View File


Loading…
Cancel
Save