Browse Source

Fixed UI spacing

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
e264b06841
5 changed files with 5 additions and 4 deletions
  1. +3
    -2
      BSIPA-ModList/UI/ViewControllers/DownloadProgressViewController.cs
  2. +1
    -1
      BSIPA-ModList/UI/ViewControllers/ModListController.cs
  3. +1
    -1
      BSIPA-ModList/manifest.json
  4. BIN
      Refs/BeatSaberCustomUI.dll
  5. BIN
      Refs/UnityEngine.CoreModule.Net4.dll

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

@ -29,7 +29,7 @@ namespace BSIPA_ModList.UI.ViewControllers
private Button _pageDownButton;
private TableViewScroller _scroller;
private const float TableXOffset = -20f;
private const float TableXOffset = 0f;
private const float ButtonXOffset = 36f;
private static readonly Vector2 ButtonSize = new Vector2(40f, 10f);
@ -92,7 +92,7 @@ namespace BSIPA_ModList.UI.ViewControllers
(_currentlyUpdatingTableView.transform as RectTransform).anchorMin = new Vector2(0.3f, 0.5f);
(_currentlyUpdatingTableView.transform as RectTransform).anchorMax = new Vector2(0.7f, 0.5f);
(_currentlyUpdatingTableView.transform as RectTransform).sizeDelta = new Vector2(0f, 60f);
(_currentlyUpdatingTableView.transform as RectTransform).anchoredPosition = new Vector3(TableXOffset, -3f);
(_currentlyUpdatingTableView.transform as RectTransform).anchoredPosition = new Vector3(TableXOffset, -20f);
ReflectionUtil.SetPrivateField(_currentlyUpdatingTableView, "_pageUpButton", _pageUpButton);
ReflectionUtil.SetPrivateField(_currentlyUpdatingTableView, "_pageDownButton", _pageDownButton);
@ -103,6 +103,7 @@ namespace BSIPA_ModList.UI.ViewControllers
_currentlyUpdatingTableView.dataSource = this; // calls Init
_scroller = gobj.GetComponent<TableViewScroller>();
gobj.SetActive(true);
gobj.GetComponent<ScrollRect>().content.anchorMax = new Vector2(.6f, 1f);
_currentlyUpdatingTableView.RefreshScrollButtons();


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

@ -81,7 +81,7 @@ namespace BSIPA_ModList.UI
private new void DidActivate(bool first, ActivationType type)
{
var rt = _customListTableView.transform as RectTransform;
rt.anchorMin = new Vector2(.1f, 0f);
rt.anchorMin = new Vector2(0f, 0f);
rt.anchorMax = new Vector2(.9f, 1f);
_customListTableView.gameObject.GetComponent<ScrollRect>().scrollSensitivity = 0f;


+ 1
- 1
BSIPA-ModList/manifest.json View File

@ -11,7 +11,7 @@
"gameVersion": "1.3.0",
"id": "BSIPA Mod List",
"name": "BSIPA Mod List",
"version": "1.3.1",
"version": "1.3.2",
"icon": "BSIPA_ModList.Icons.self.png",
"dependsOn": {
"BSIPA": ">=3.13.0 <3.14.0",


BIN
Refs/BeatSaberCustomUI.dll View File


BIN
Refs/UnityEngine.CoreModule.Net4.dll View File


Loading…
Cancel
Save