private void Adjust() { Positioner.Init(_notSprite) .Margin(Settings.GameWindowSprite, new Vector2(10, 10), Positioner.MarginFrom.BottomRight); Positioner.Init(_notFont) .Margin(_notSprite, new Vector2(28, 6), Positioner.MarginFrom.TopLeft); }
// Here is being draw with 1.0F of zoom already public void Adjust(float zoomBefore) { Positioner.Init(_inputChat) .Margin(Settings.GameWindowInitialSprite, new Vector2(7 * zoomBefore, 6 * zoomBefore), Positioner.MarginFrom.BottomLeft); Positioner.Init(_chatLinesFont) .SideBy(_inputChat, Positioner.SideFrom.Top) .Margin(_chatLinesFont, new Vector2(4 * zoomBefore, 4 * zoomBefore), Positioner.MarginFrom.BottomLeft); // Get position to recalculate every frame _initialLinePos = _chatLinesFont.Position; }
private void Adjust() { Positioner.Init(_loginContentBg) .Margin(Settings.GameWindowSprite, new Vector2(0, 10), Positioner.MarginFrom.TopLeft) .CenterTo(Settings.GameWindowSprite, Positioner.CenterType.Horizontally); Positioner.Init(_btnLogin) .Margin(_loginContentBg, new Vector2(10, 10), Positioner.MarginFrom.BottomRight); Positioner.Init(_inputName) .Margin(_loginContentBg, new Vector2(10, 10), Positioner.MarginFrom.TopLeft); Positioner.Init(_inputPassword) .Margin(_inputName, new Vector2(0, _inputName.BoundingBox.Height + 10), Positioner.MarginFrom.TopLeft); }
public ObjectCreateEvent(int c, Vector2 p, float a, int fc) { frameCode = fc; code = 1; objCode = c; pos = p; angle = a; marker = Test.instance.CreateMarker(0).GetComponent <Positioner>(); marker.Init(frameCode); marker.target = this; MarkerUpdate(); }
public void Adjust() { Positioner.Init(_overlayContent).CenterTo(Settings.GameWindowSprite, Positioner.CenterType.Both); Positioner.Init(_connText).CenterTo(Settings.GameWindowSprite, Positioner.CenterType.Both); }
public void Adjust() { Positioner.Init(_lobbyChatBg).Margin(Settings.GameWindowSprite, new Vector2(7, 6), Positioner.MarginFrom.BottomLeft); }
public void Adjust() { Positioner.Init(_lobbyChatBg).Margin(Settings.GameWindowSprite, Vector2.Zero, Positioner.MarginFrom.BottomLeft); Positioner.Init(_lobbyTitle).Margin(_lobbyChatBg, new Vector2(21, 7), Positioner.MarginFrom.TopLeft); Positioner.Init(_lobbyBg2).SideBy(_lobbyBg1, Positioner.SideFrom.Bottom); }