mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
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:
committed by
GitHub
parent
9b15070126
commit
ab1f4fb0e7
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user