コード例 #1
0
ファイル: Listbox.cs プロジェクト: stupid-genius/ss13remake
        public override bool MouseDown(MouseInputEventArgs e)
        {
            if (ClientArea.Contains(new Point((int)e.Position.X, (int)e.Position.Y)))
            //change to clientAreaRight when theres a proper skin with an arrow to the right.
            {
                var UiMgr = IoCManager.Resolve <IUserInterfaceManager>();
                _dropDown.ToggleVisible();
                if (_dropDown.IsVisible())
                {
                    UiMgr.SetFocus(_dropDown);
                }
                return(true);
            }

            return(_dropDown.MouseDown(e));
        }