Sidebar button style pass.

This commit is contained in:
Dean Herbert
2017-01-31 19:58:38 +09:00
parent 86b61cab8e
commit 6803b1a8db
4 changed files with 22 additions and 15 deletions

View File

@ -29,14 +29,14 @@ namespace osu.Game.Overlays
public const float TRANSITION_LENGTH = 600;
public const float SIDEBAR_WIDTH = OptionsSidebar.default_width;
public const float SIDEBAR_WIDTH = Sidebar.default_width;
private const float width = 400;
private const float sidebar_padding = 10;
private ScrollContainer scrollContainer;
private OptionsSidebar sidebar;
private Sidebar sidebar;
private SidebarButton[] sidebarButtons;
private OptionsSection[] sections;
private float lastKnownScroll;
@ -110,7 +110,7 @@ namespace osu.Game.Overlays
}
}
},
sidebar = new OptionsSidebar
sidebar = new Sidebar
{
Width = SIDEBAR_WIDTH,
Children = sidebarButtons = sections.Select(section =>