Rectangle texRec = new Rectangle(0, 0, 1, 1); //tex rec public AUI_Rectangle(int X, int Y, int W, int H, RecAnimType Type) { animType = Type; openedRec = new Int4(X, Y, W, H); if (animType == RecAnimType.WipeRight) { //setup wipe right anim targets openingRec = new Int4(X, Y, 0, H); closedRec = new Int4(X + W, Y, 0, H); } else if (animType == RecAnimType.WipeLeft) { //setup wipe left anim targets openingRec = new Int4(X + W, Y, 0, H); closedRec = new Int4(X, Y, 0, H); } //set draw to closed rec values drawRec.X = closedRec.X; drawRec.Y = closedRec.Y; drawRec.Width = closedRec.W; drawRec.Height = closedRec.H; }
public void SetAnimType(RecAnimType Type) { rec_bkg.animType = Type; rec_fore.animType = Type; }