示例#1
0
 public SingleKey(RpBaseHitObjectType.Shape type, RpBaseHitObjectType.Coop coop, Key key, string name)
 {
     Key  = key;
     Coop = coop;
     Name = name;
     Type = type;
 }
示例#2
0
        public CoopHint(RpBaseHitObjectType.Coop coop)
        {
            _coop      = coop;
            _rectangle = new RectanglePiece(500, 1000)
            {
                Colour = RpTextureColorManager.GetCoopLayoutColor(_coop),
                Alpha  = 0.5f
            };

            Children = new Drawable[]
            {
                _rectangle
            };
        }
        /// <summary>
        ///     get the layout JudgementLine color
        /// </summary>
        /// <returns></returns>
        public static Color4 GetCoopJudgementLineColor(RpBaseHitObjectType.Coop coop)
        {
            switch (coop)
            {
            case RpBaseHitObjectType.Coop.Both:    //Both
                return(new Color4(100, 100, 100, 255));

            case RpBaseHitObjectType.Coop.LeftOnly:    //Left : blue
                return(new Color4(70, 192, 206, 255));

            case RpBaseHitObjectType.Coop.RightOnly:    //Right : purple
                return(new Color4(224, 80, 178, 255));
            }
            return(new Color4(255, 255, 255, 255));
        }