Esempio n. 1
0
        public void Show(float waitToShow)
        {
            state = ZscoreState.e_Shown;
            for (int i = 0; i < numDigits; i++)
            {
                if (timeBetweenShowingDigits > 0.0f)
                {
                    (zobject[i]).SetWaitToShow(waitToShow + (((float)i) * timeBetweenShowingDigits));
                }

                (zobject[i]).Show();
            }
        }
Esempio n. 2
0
        public void Disappear()
        {
            if (state == (int)ZscoreState.e_Hidden)
            {
                return;
            }

            for (int i = 0; i < numDigits; i++)
            {
                (zobject[i]).Disappear();
            }

            state = ZscoreState.e_Hidden;
        }
Esempio n. 3
0
        public void Hide()
        {
            if (state == (int)ZscoreState.e_Hidden)
            {
                return;
            }

            for (int i = 0; i < numDigits; i++)
            {
                if ((zobject[i]).state != ZobjectState.kZobjectThrobbing)
                {
                    (zobject[i]).Hide();
                }
            }

            state = ZscoreState.e_Hidden;
        }
Esempio n. 4
0
        }                                                  ////@property(readwrite,assign) ZAtlas* myAtlas;

        public Zscore()
        {
            //  //if (!base.init()) return null;

            myAtlas           = null;
            orientationButton = null;
            positionButton    = null;
            for (int i = 0; i < (int)Enum.kMaxNumScoreDigits; i++)
            {
                zobject[i] = new Zobject();
            }

            rotationWholeWord        = 0.0f;
            scale                    = 1;
            state                    = ZscoreState.e_Hidden;
            prevScore                = -1;
            decimalPoint             = -1;
            digitWidth               = 31;
            defaultColour            = Constants.kColourWhite;
            dontDisplayLeadingZeros  = false;
            xDigit[0]                = 10.5f;
            xDigit[1]                = 6.5f;
            xDigit[2]                = 10.0f;
            xDigit[3]                = 10.0f;
            xDigit[4]                = 10.0f;
            xDigit[5]                = 10.0f;
            xDigit[6]                = 10.0f;
            xDigit[7]                = 8.5f;
            xDigit[8]                = 10.0f;
            xDigit[9]                = 10.0f;
            xDigit[10]               = 6.0f;
            timeBetweenShowingDigits = 0.05f;
            for (int i = 0; i < 11; i++)
            {
                xDigit[i] *= 3.0f;
            }

            //    //return this;
        }
Esempio n. 5
0
        }                                                   ///@property(readwrite,assign) int numDigits;

        public void SetState(ZscoreState inThing)
        {
            state = inThing;
        }                                                   ///@property(readwrite,assign) ZscoreState state;