public override void Initialize() { base.Initialize(); CharBucket = new CharacterBucket(Left, Top); KeyboardEvents = new KeyboardEvents(this); MouseEvent.onMouseOut += (sender, args) => { Selected = false; }; Active = true; }
void LoadAttributes() { base.Setup(); CharBucket = new CharacterBucket(Left, Top); _scrollBar = new ScrollBar(); _scrollBar.Parent = this; _scrollBar.Initialize(); _scrollBar.Setup(); _scrollBar.Position = new Point(Right - _scrollBar.Width, Top); TextColor = Color.Black; }