瀏覽代碼

Left justify all buttons.

Stephen Damm 6 年之前
父節點
當前提交
13fcc8b41e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SongBrowserPlugin/UI/SongBrowserUI.cs

+ 2 - 2
SongBrowserPlugin/UI/SongBrowserUI.cs

@@ -155,7 +155,7 @@ namespace SongBrowserPlugin.UI
                 float fontSize = 2.5f;
                 float buttonWidth = 14.0f;
                 float buttonHeight = 5.0f;
-                float buttonX = 68.0f;
+                float buttonX = -68;
                 float buttonY = 74.5f;
 
                 string[] buttonNames = new string[]
@@ -177,7 +177,7 @@ namespace SongBrowserPlugin.UI
                 for (int i = 0; i < buttonNames.Length; i++)
                 {
                     _sortButtonGroup.Add(UIBuilder.CreateSortButton(sortButtonTransform, sortButtonTemplate, arrowIcon, buttonNames[i], fontSize, buttonX, buttonY, buttonWidth, buttonHeight, sortModes[i], onClickEvents[i]));
-                    buttonX -= buttonWidth;
+                    buttonX += buttonWidth;
                 }
 
                 // Create Add to Favorites Button