コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: AUI_Window.cs プロジェクト: wisniewski94/AUI
 public void SetAnimType(RecAnimType Type)
 {
     rec_bkg.animType  = Type;
     rec_fore.animType = Type;
 }