UI layout v2. (#908)

* UI layout v2.

All controls now act like containers.
Moved anchor/margin layout model to LayoutContainer

Implement basic WPF-like attached properties for the above LayoutContainer.

* Fix VV.
This commit is contained in:
Pieter-Jan Briers
2019-12-05 13:37:58 +01:00
committed by GitHub
parent 9b15070126
commit ab1f4fb0e7
47 changed files with 1461 additions and 1261 deletions

View File

@@ -211,7 +211,7 @@ namespace Robust.Client.Console.Commands
mgr.DebugDrawRays = !mgr.DebugDrawRays;
console.AddLine("Toggled showing rays to:" + mgr.DebugDrawRays.ToString(), Color.Green);
var indexSplit = args[0].Split(',');
mgr.DebugRayLifetime = TimeSpan.FromSeconds((double)int.Parse(indexSplit[0], CultureInfo.InvariantCulture));
mgr.DebugRayLifetime = TimeSpan.FromSeconds((double)int.Parse(indexSplit[0], CultureInfo.InvariantCulture));
return false;
}
}
@@ -466,7 +466,7 @@ namespace Robust.Client.Console.Commands
window.Contents.AddChild(tabContainer);
var scroll = new ScrollContainer();
tabContainer.AddChild(scroll);
scroll.SetAnchorAndMarginPreset(Control.LayoutPreset.Wide);
//scroll.SetAnchorAndMarginPreset(Control.LayoutPreset.Wide);
var vBox = new VBoxContainer();
scroll.AddChild(vBox);