public override void Initialize() { base.Initialize(); portraitContainer = new ImageContainer(canvasPosition, canvas.SourceRectangle.Value); portraitContainer.SetDefaultPosition(this.GetType()); portraitContainer.Initialize(); }
public override void Initialize() { base.Initialize(); portraitContainer = new ImageContainer(canvasPosition, canvas.SourceRectangle.Value); portraitContainer.Initialize(); portraitContainer.SetDefaultPosition(this.GetType()); okayButtonPosition = new Vector2(canvasPosition.X + PortraitButtonOffset.X, canvasPosition.Y + canvas.SourceRectangle.Value.Height / 2 - OkayButtonYArea / 2 + PortraitButtonOffset.Y); }