Преглед изворни кода

Fix resize song ui, remove unncessary mods. Comment out until we add delete button back.

Halsafar пре 4 година
родитељ
комит
265b9a9708
1 измењених фајлова са 3 додато и 15 уклоњено
  1. 3 15
      SongBrowserPlugin/UI/Browser/SongBrowserUI.cs

+ 3 - 15
SongBrowserPlugin/UI/Browser/SongBrowserUI.cs

@@ -157,9 +157,8 @@ namespace SongBrowser.UI
 
 
                 this.InstallHandlers();
                 this.InstallHandlers();
 
 
-                // TODO v1.12.1 - Just need to figure out the placement, size, etc
                 this.ModifySongStatsPanel();
                 this.ModifySongStatsPanel();
-                //this.ResizeSongUI();
+                this.ResizeSongUI();
 
 
                 _uiCreated = true;
                 _uiCreated = true;
 
 
@@ -436,20 +435,9 @@ namespace SongBrowser.UI
         /// </summary>
         /// </summary>
         public void ResizeSongUI()
         public void ResizeSongUI()
         {
         {
-            // Reposition the table view a bit
-            _beatUi.LevelCollectionTableViewTransform.anchoredPosition = new Vector2(0f, -2.5f);
-
-            // Move the page up/down buttons a bit
-            TableView tableView = ReflectionUtil.GetPrivateField<TableView>(_beatUi.LevelCollectionTableView, "_tableView");
-            RectTransform pageUpButton = _beatUi.TableViewPageUpButton.transform as RectTransform;
-            RectTransform pageDownButton = _beatUi.TableViewPageDownButton.transform as RectTransform;
-            pageUpButton.anchoredPosition = new Vector2(pageUpButton.anchoredPosition.x, pageUpButton.anchoredPosition.y - 1f);
-            pageDownButton.anchoredPosition = new Vector2(pageDownButton.anchoredPosition.x, pageDownButton.anchoredPosition.y + 1f);
-
             // shrink play button container
             // shrink play button container
-            RectTransform playContainerRect = _beatUi.StandardLevelDetailView.GetComponentsInChildren<RectTransform>().First(x => x.name == "PlayContainer");
-            RectTransform playButtonsRect = playContainerRect.GetComponentsInChildren<RectTransform>().First(x => x.name == "PlayButtons");
-            playButtonsRect.localScale = new Vector3(0.825f, 0.825f, 0.825f);
+            //RectTransform playButtonsRect = Resources.FindObjectsOfTypeAll<RectTransform>().First(x => x.name == "ActionButtons");
+            //playButtonsRect.localScale = new Vector3(0.825f, 0.825f, 0.825f);
         }
         }
 
 
         /// <summary>
         /// <summary>