Ejemplo n.º 1
0
    //  A////////////////////////////////////////////////     A///////////////////////A    Creation    ~~~~~~X
    public AmBoxArea(string name, float[] pRange, bool pVert, AmBoxArea pCont = null)
    {
        mName      = name;
        Xrange [0] = pRange [0];
        Xrange [1] = pRange [1];
        Yrange [0] = pRange [2];
        Yrange [1] = pRange [3];
        mVert      = pVert;

        myDirect = pVert ? new Vector3(0, 1, 0) : new Vector3(1, 0, 0);
        //myOption = pOption;

        Container = pCont;
        if (pCont == null)
        {
            return;
        }

        if (mVert)
        {
            mMinAlign = Yrange [0] == Container.Yrange [0];
        }
        else
        {
            mMinAlign = Xrange [0] == Container.Xrange [0];
        }
    }
Ejemplo n.º 2
0
    public UITileManager(int pX, int pY, AmBoxArea pRange, float pDiagDist, bool?pVert, string pName, UITouchManager pTouchMan,
                         bool reverse = false, bool pSwitchLock = false, bool pLimit2Inside = false, bool pEnableScrl = true) :
        base(pDiagDist, pVert, pTouchMan, pEnableScrl)
    {
        muiSwitchLock    = pSwitchLock;
        mName            = pName;
        muiWagu          = pRange;
        muiWagu.dicCell  = dicCell;
        muiWagu.myOption = muiOption;

        mTileObj = new AgTile(null, pX, pY, new Vector3(muiWagu.Container.Xmin, muiWagu.Container.Ymin, 0),
                              new Vector3(muiWagu.Container.Xmax, muiWagu.Container.Ymax, 0), pVert.Value, reverse);
        muiLimit2Inside = pLimit2Inside;
    }
Ejemplo n.º 3
0
    public void AddUiManager(AmBoxArea pWagu, int xN, int yN, bool?scrVert, bool reverse, string pName,
                             bool pSwitchLock = false, bool pLimit2Inside = true, bool pEnableScrl = true)
    {
        UITileManager tileMan = new UITileManager(xN, yN, pWagu, muiDiagonalDist, scrVert, pName, this,
                                                  reverse: reverse, pSwitchLock: pSwitchLock, pLimit2Inside: pLimit2Inside, pEnableScrl: pEnableScrl);

        arrMan.Add(tileMan);

        tileMan.EventSetAlienToTouchManager += gObj => {
            string theName = (gObj == null)? " Null " : gObj.name;
            Ag.LogIntenseWord(" >>>>>    UI_Touch_Manager ::  Got the Alien " + theName);
            muiHoveringObj = gObj;
        };
    }