示例#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
 protected virtual void UpdateMarkImage()
 {
     mark = new PictureObject(device, resourceManager, skin.GetMarkImagePath(GetButtonType()), true)
     {
         Position = new Vector2(x, y)
     };
     markc = new PictureObject(device, resourceManager, skin.GetMarkColorImagePath(GetButtonType()))
     {
         Position = new Vector2(x, y)
     };
 }