public override void OnInitialize() { base.OnInitialize(); placement = new Vector2(480, 35); XPBar = new XPBar(120, 26); XPBar.Left.Set(placement.X, 0f); XPBar.Top.Set(placement.Y, 0f); XPBar.SetSnapPoint("origin", 0, placement); base.Append(XPBar); visible = true; }
public override void OnDeactivate() { base.OnDeactivate(); XPBar = null; }