Beispiel #1
0
        protected override bool ShouldTriggerImplementation()
        {
            // collides, probably replace with UIElement (TODO you lazy)
            if (_element.LastRenderedBounds.Contains(MouseManagerEx.ToSystemPoint()))
            {
                return((MouseManager.MouseState & MouseStateTrigger) == MouseStateTrigger);
            }

            return(false);
        }
        private void Initialize()
        {
#if VMWare
            xSVGAIIDriver = new SvgaIIDriver();
#endif
            Mode = mode; // update mode with the thing OwO;
            Clear(Color.Bisque);
            _elements.Add(new EcoPlusLogo(this, new Point(0, 0), size: new Size(mode.Columns, mode.Rows)));
            _elements.Add(new ElPueblo(this, new Point(100, 55)));
            _mouseCursor = new MouseCursorElement(this);
            _elements.Add(_mouseCursor);
            //ElPueblo.Draw(this, new Point(100, 55));
            MouseManagerEx.SetDimensions(mode);
            UIElement.ElementDrawn = UIElementUpdated;
            Start();
        }