예제 #1
0
 public Mark(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, PPDEditorSkin skin, ButtonType type, float x, float y, float time, float angle, uint id) : base(device)
 {
     this.x               = x;
     this.y               = y;
     this.angle           = angle;
     this.time            = time;
     this.skin            = skin;
     this.resourceManager = resourceManager;
     parameters           = new Dictionary <string, string>();
     mark = new PictureObject(device, resourceManager, skin.GetMarkImagePath(type), true)
     {
         Position = new Vector2(x, y)
     };
     markc = new PictureObject(device, resourceManager, skin.GetMarkColorImagePath(type))
     {
         Position = new Vector2(x, y)
     };
     jiku = new PictureObject(device, resourceManager, skin.GetClockAxisImagePath(), true)
     {
         Position = new Vector2(x, y)
     };
     this.m     = Matrix.Transformation2D(Vector2.Zero, 0, Vector2.One, new Vector2(this.x, this.y), -angle, Vector2.Zero);
     Hidden     = true;
     mark.Scale = Vector2.One;
     this.type  = type;
     this.ID    = id;
 }
예제 #2
0
파일: ExMark.cs 프로젝트: KHCmaster/PPD
 public ExMark(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, PPDEditorSkin skin, ButtonType type, float x, float y, float starttime, float endtime, float angle, Vector2[] circlepoints, uint id)
     : base(device, resourceManager, skin, type, x, y, starttime, angle, id)
 {
     this.endtime      = endtime;
     this.circlepoints = circlepoints;
     skin.GetLongNoteCircleInfo(out PathObject filename, out float a, out float b);
     outcircle = new PictureObject(device, resourceManager, filename, true)
     {
         Position = new Vector2(x, y)
     };
     outjiku = new PictureObject(device, resourceManager, skin.GetCircleAxisImagePath(), true)
     {
         Position = new Vector2(x, y)
     };
     trace = new PictureObject(device, resourceManager, skin.GetTraceImagePath(type), false)
     {
         Position = new Vector2(x, y)
     };
     skin.GetHoldInfo(out filename, out a, out b);
     hold = new PictureObject(device, resourceManager, filename, true)
     {
         Position = new Vector2(x + a, y + b)
     };
     holdoffset = new Vector2(a, b);
 }