public override void Anchor(AnchorPoint anchorPoint, GUIManager.ScreenPoint screenPoint, float xScreenRatioOffset, float yScreenRatioOffset) { int xOffset = GUIManager.ScreenRatioX(xScreenRatioOffset); int yOffset = GUIManager.ScreenRatioY(yScreenRatioOffset); Anchor(anchorPoint, screenPoint, new Vector2(xOffset, yOffset)); }
public override void Anchor(AnchorPoint anchorPoint, GUIManager.ScreenPoint screenPoint, Vector2 offset) { Vector2 topLeftDiff = GetAnchorOffset(anchorPoint); Vector2 screenAnchor = SystemCore.GUIManager.GetScreenPoint(screenPoint); screenAnchor += topLeftDiff; screenAnchor += offset; Rect = new Rectangle((int)screenAnchor.X, (int)screenAnchor.Y, Rect.Width, Rect.Height); }
public virtual void Anchor(AnchorPoint anchorPoint, GUIManager.ScreenPoint screenPoint, float xScreenRatioOffset, float yScreenRatioOffset) { }
public virtual void Anchor(AnchorPoint anchorPoint, GUIManager.ScreenPoint screenPoint, Vector2 offset) { }