Selaa lähdekoodia

Align Fav button to PlayButton

Stephen Damm 6 vuotta sitten
vanhempi
commit
92b1485170
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      SongBrowserPlugin/UI/SongBrowserUI.cs

+ 1 - 1
SongBrowserPlugin/UI/SongBrowserUI.cs

@@ -183,7 +183,7 @@ namespace SongBrowserPlugin.UI
                 // Creaate Add to Favorites Button
                 _log.Debug("Creating add to favorites button...");                
                 _addFavoriteButton = UIBuilder.CreateUIButton(otherButtonTransform, otherButtonTemplate);
-                (_addFavoriteButton.transform as RectTransform).anchoredPosition = new Vector2(40f, 5.75f);
+                (_addFavoriteButton.transform as RectTransform).anchoredPosition = new Vector2(40f, (sortButtonTemplate.transform as RectTransform).anchoredPosition.y);
                 (_addFavoriteButton.transform as RectTransform).sizeDelta = new Vector2(10f, 10f);
                 UIBuilder.SetButtonText(ref _addFavoriteButton, _addFavoriteButtonText);
                 UIBuilder.SetButtonTextSize(ref _addFavoriteButton, fontSize);