Esempio n. 1
0
        // Constructors:
        #region Constructors

        public ISVObjectInCustomItemGrabMenu(ICustomItemGrabMenuItem hostMenuItem,
                                             Rectangle bounds,
                                             StardewValley.Object svObject,
                                             Boolean svObjectDrawShadow = false,
                                             Single svObjectScale       = -1.0f,
                                             String componentName       = "",
                                             EventHandler <ICustomMenu.MouseStateEx> onMouseClick = null,
                                             String hoverText           = "",
                                             Colours textureTintColours = null)
            : base(hostMenuItem, bounds, true, componentName, onMouseClick, hoverText, textureTintColours)
        {
            this.objectDrawShadow = svObjectDrawShadow;
            this.objectScale      = svObjectScale;

            this.SVObject = svObject;
        }
Esempio n. 2
0
 public BasicComponent(ICustomItemGrabMenuItem hostMenuItem, Point point, Boolean raiseMouseClickEventOnRelease = true, String componentName = "", EventHandler <ICustomMenu.MouseStateEx> onMouseClickHandler = null, String hoverText = "", Colours textureTintColours = null) : this(hostMenuItem, new Rectangle(point.X, point.Y, -1, -1), raiseMouseClickEventOnRelease, componentName, onMouseClickHandler, hoverText, textureTintColours)
 {
 }
Esempio n. 3
0
            // Constructors:
            #region Constructors

            public BasicComponent(ICustomItemGrabMenuItem hostMenuItem, Rectangle bounds, Boolean raiseMouseClickEventOnRelease = true, String componentName = "", EventHandler <ICustomMenu.MouseStateEx> onMouseClickHandler = null, String hoverText = "", Colours textureTintColours = null) : base(hostMenuItem, bounds, raiseMouseClickEventOnRelease, componentName, onMouseClickHandler, hoverText, textureTintColours)
            {
                this.HostMenuItem = hostMenuItem;
            }