コード例 #1
0
        private DynamicDropDownMenu CreateMenu(Direction direction = Direction.Down)
        {
            DropDownMenuFactory menuFactory = new DropDownMenuFactory();

            menuFactory.normalFillColor  = this.normalFillColor;
            menuFactory.hoverFillColor   = this.hoverFillColor;
            menuFactory.pressedFillColor = this.pressedFillColor;
            menuFactory.pressedFillColor = this.pressedFillColor;

            menuFactory.normalBorderColor   = this.normalBorderColor;
            menuFactory.hoverBorderColor    = this.hoverBorderColor;
            menuFactory.pressedBorderColor  = this.pressedBorderColor;
            menuFactory.disabledBorderColor = this.disabledBorderColor;

            menuFactory.normalTextColor   = this.normalTextColor;
            menuFactory.hoverTextColor    = this.hoverTextColor;
            menuFactory.pressedTextColor  = this.pressedTextColor;
            menuFactory.disabledTextColor = this.disabledTextColor;

            DynamicDropDownMenu menu = menuFactory.Generate(direction: direction);

            menu.Height           = FixedHeight;
            menu.BorderColor      = normalBorderColor;
            menu.HoverArrowColor  = this.hoverTextColor;
            menu.NormalArrowColor = this.normalTextColor;
            menu.BackgroundColor  = normalFillColor;

            return(menu);
        }
コード例 #2
0
		private DynamicDropDownMenu CreateMenu(Direction direction = Direction.Down)
		{
			DropDownMenuFactory menuFactory = new DropDownMenuFactory();

			menuFactory.normalFillColor = this.normalFillColor;
			menuFactory.hoverFillColor = this.hoverFillColor;
			menuFactory.pressedFillColor = this.pressedFillColor;
			menuFactory.pressedFillColor = this.pressedFillColor;

			menuFactory.normalBorderColor = this.normalBorderColor;
			menuFactory.hoverBorderColor = this.hoverBorderColor;
			menuFactory.pressedBorderColor = this.pressedBorderColor;
			menuFactory.disabledBorderColor = this.disabledBorderColor;

			menuFactory.normalTextColor = this.normalTextColor;
			menuFactory.hoverTextColor = this.hoverTextColor;
			menuFactory.pressedTextColor = this.pressedTextColor;
			menuFactory.disabledTextColor = this.disabledTextColor;

			DynamicDropDownMenu menu = menuFactory.Generate(direction: direction);

			menu.Height = FixedHeight;
			menu.BorderColor = normalBorderColor;
			menu.HoverArrowColor = this.hoverTextColor;
			menu.NormalArrowColor = this.normalTextColor;
			menu.BackgroundColor = normalFillColor;

			return menu;
		}