Verb icon tiling (#8457)

This commit is contained in:
Leon Friedrich
2022-05-26 12:41:03 +12:00
committed by GitHub
parent ddddaceeff
commit 71a9ddc5f4
3 changed files with 10 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ namespace Content.Client.ContextMenu.UI
/// <summary>
/// This is the main body of the menu. The menu entries should be added to this object.
/// </summary>
public BoxContainer MenuBody = new() { Orientation = LayoutOrientation.Vertical };
public GridContainer MenuBody = new();
private ContextMenuPresenter _presenter;
@@ -41,6 +41,7 @@ namespace Content.Client.ContextMenu.UI
_presenter = presenter;
ParentElement = parentElement;
// TODO xaml controls now have the access options -> re-xamlify all this.
//XAML controls are private. So defining and adding MenuBody here instead.
Scroll.AddChild(MenuBody);