示例#1
0
 public SsRect(SsRect r)
 {
     Left   = r.Left;
     Top    = r.Top;
     Right  = r.Right;
     Bottom = r.Bottom;
 }
示例#2
0
	static public SsRect[] CreateArray(int num)
	{
		var a = new SsRect[num];
		for (int i = 0; i < a.Length; ++i)
			a[i] = new SsRect();
		return a;
	}
示例#3
0
    SsPartRes()
    {
        Name         = null;
        PicArea      = new SsRect();
        InheritState = new SsInheritanceState();

        // create individual key frame list
        PosXKeys          = new List <SsIntKeyFrame>();
        PosYKeys          = new List <SsIntKeyFrame>();
        AngleKeys         = new List <SsFloatKeyFrame>();
        ScaleXKeys        = new List <SsFloatKeyFrame>();
        ScaleYKeys        = new List <SsFloatKeyFrame>();
        TransKeys         = new List <SsFloatKeyFrame>();
        PrioKeys          = new List <SsIntKeyFrame>();
        FlipHKeys         = new List <SsBoolKeyFrame>();
        FlipVKeys         = new List <SsBoolKeyFrame>();
        HideKeys          = new List <SsBoolKeyFrame>();
        PartsColKeys      = new List <SsColorBlendKeyFrame>();
        PartsPalKeys      = new List <SsPaletteKeyFrame>();
        VertexKeys        = new List <SsVertexKeyFrame>();
        UserKeys          = new List <SsUserDataKeyFrame>();
        SoundKeys         = new List <SsSoundKeyFrame>();
        ImageOffsetXKeys  = new List <SsIntKeyFrame>();
        ImageOffsetYKeys  = new List <SsIntKeyFrame>();
        ImageOffsetWKeys  = new List <SsIntKeyFrame>();
        ImageOffsetHKeys  = new List <SsIntKeyFrame>();
        OriginOffsetXKeys = new List <SsIntKeyFrame>();
        OriginOffsetYKeys = new List <SsIntKeyFrame>();
    }
示例#4
0
    static public SsRect[] CreateArray(int num)
    {
        var a = new SsRect[num];

        for (int i = 0; i < a.Length; ++i)
        {
            a[i] = new SsRect();
        }
        return(a);
    }
示例#5
0
 public SsUserDataKeyValue(SsUserDataKeyValue r)
 {
     IsNum       = r.IsNum;
     Num         = r.Num;
     IsRect      = r.IsRect;
     this.Rect   = r.Rect.Clone();
     IsPoint     = r.IsPoint;
     this.Point  = r.Point.Clone();
     IsString    = r.IsString;
     this.String = System.String.Copy(r.String);
 }
示例#6
0
 _GetRect(
     SsRect o,
     XmlNode n,
     string path)
 {
     if (path != null)
     {
         n = _SelectSingleNode(n, path);
     }
     o.Top    = _ToInt(_GetNodeValue(n, "./cur:Top"));
     o.Left   = _ToInt(_GetNodeValue(n, "./cur:Left"));
     o.Bottom = _ToInt(_GetNodeValue(n, "./cur:Bottom"));
     o.Right  = _ToInt(_GetNodeValue(n, "./cur:Right"));
 }
示例#7
0
	public SsRect(SsRect r)
	{
		Left = r.Left;
		Top = r.Top;
		Right = r.Right;
		Bottom = r.Bottom;
	}
示例#8
0
	public SsInterpolatable GetInterpolated(SsCurveParams curve, float time, SsInterpolatable start, SsInterpolatable end, int startTime, int endTime)
	{
		var v = new SsRect();
		return v.Interpolate(curve, time, start, end, startTime, endTime);
	}
示例#9
0
 _GetRect(SsRect o, XmlNode n)
 {
     _GetRect(o, n, null);
 }
示例#10
0
    public SsInterpolatable GetInterpolated(SsCurveParams curve, float time, SsInterpolatable start, SsInterpolatable end, int startTime, int endTime)
    {
        var v = new SsRect();

        return(v.Interpolate(curve, time, start, end, startTime, endTime));
    }