public void Render()
 {
     speechBubble.Render();
     character.Render();
     (commentLine[0]).Render();
     (commentLine[1]).Render();
 }
        public void RenderNewStyleWithTextures()
        {
            if (!noDimZob)
            {
            }

            backdrop.Render();
            //glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
            //glColor4f(myColour.cRed, myColour.cGreen, myColour.cBlue, 1.0f);
            if (text != null)
            {
                text.RenderSimple();
            }
            //glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
            //glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
            for (int i = 0; i < (int)QueryButton.kNumButtonsOnQuery; i++)
            {
                (button[i]).Render();
            }
        }
        public void Render()
        {
            infoBubbleBackground.Render();
            for (int i = 0; i < (int)Enum.kNumCommentLines; i++)
            {
                (commentLine[i]).Render();
            }

            speedObject.Render();
            sheepPic.Render();
            doneButton.Render();
        }
        public void RenderNewStyle()
        {
            (DrawManager.Instance()).Begin(atlas);
            if (!noDimZob)
            {
                dimZob.Render();//ToDrawArrays();
            }

            (DrawManager.Instance()).Flush();
            //glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
            //glColor4f(myColour.cRed, myColour.cGreen, myColour.cBlue, 1.0f);
            text.RenderSimple();
            //glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
            //glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
            for (int i = 0; i < numButtons; i++)
            {
                (button[i]).Render();
            }
            backdrop.RenderToDrawArrays();

            if (unityText != null)
            {
                if (Globals.g_world.DoesCurrentLanguageUseNSString())
                {
                    unityText.RenderNew();
                }
                else
                {
                    unityText.Render();
                }
            }

            for (int i = 0; i < numButtons; i++)
            {
                if (buttonText[i] != null)
                {
                    buttonText[i].Render();
                }
            }
        }
Esempio n. 5
0
        public void Render()
        {
            if (inTransition)
            {
                if ((int)type != (int)TransitionType.e_Invisible)
                {
                    zobject.Render();
                    //Debug.Log ("render transition " + zobject.texture.myMaterial.mainTexture.ToString());
                }

                if ((int)type == (int)TransitionType.e_WhirlingShape)
                {
                    spinningWord.Render();
                }
            }
        }
Esempio n. 6
0
        public void Render()
        {
            if ((int)type == (int)BarType.e_HealthBar)
            {
                //glPushMatrix();
                //glTranslatef(position.y, position.x, 0);
                backTexture.DrawAtPoint();
                float xPlus = 0;
                if (fillLevel > 0)
                {
                    xPlus = (-156 * ((100 - displayFillLevel) / 100));
                    //glTranslatef(0, xPlus, 0);
                    fillTexture.DrawAtPoint();
                }

                //glTranslatef(-2, -xPlus - 21, 0);
                borderTexture.DrawAtPoint();
                //glPopMatrix();
            }
            else if ((int)type == (int)BarType.e_MovingObject)
            {
                zobject.Render();
            }
        }
        public void Render()
        {
            if (zobject.atlas == null)
            {
                if (!this.IsOnScreen())
                {
                    this.StopRender();
                }
                else
                {
                    zobject.Render();
                    if (zobjectLabel != null)
                    {
                        CGPoint labePos = Utilities.CGPointMake(zobject.displayPosition.x + labelOffset.x, zobject.displayPosition.y + labelOffset.y);
                        zobjectLabel.SetScreenPosition(labePos);
                        zobjectLabel.Render();
                    }
                }
            }
            else
            {
                if (this.IsOnScreen())
                {
                    ////glEnableClientState (GL_COLOR_ARRAY);
                    (DrawManager.Instance()).Begin(zobject.atlas);
                    if (hangingButton != null)
                    {
                        zobject.SetRotation(hangingButton.UpdateRotation());
                        if (hangingButton != null)
                        {
                            hangingButton.Render(this, zobject.atlas);
                        }

                        if (hangingButton.hangingButtonScale != 1.0f)
                        {
                            zobject.SetShowScale(hangingButton.hangingButtonScale);
                        }

                        zobject.RenderToDrawArrays_Rotatable();
                    }
                    else
                    {
                        zobject.RenderToDrawArrays();
                    }

                    (DrawManager.Instance()).Flush();
                    if (zobjectLabel != null)
                    {
                        CGPoint labePos = Utilities.CGPointMake(zobject.displayPosition.x + labelOffset.x, zobject.displayPosition.y + labelOffset.y);
                        zobjectLabel.SetScreenPosition(labePos);
                        zobjectLabel.RenderFromAtlas();
                    }

                    ////glDisableClientState (GL_COLOR_ARRAY);
                }
                else
                {
                    this.StopRender();
                }
            }
        }
        public void Render()
        {
            if (newStyleQuery)
            {
                if (newStyleWithAtlas)
                {
                    this.RenderNewStyle();
                }
                else
                {
                    this.RenderNewStyleWithTextures();
                }

                if (unityText != null)
                {
                    if (Globals.g_world.DoesCurrentLanguageUseNSString())
                    {
                        unityText.RenderNew();
                    }
                    else
                    {
                        unityText.Render();
                    }
                }

                return;
            }

            if (!noDimZob)
            {
                dimZob.Render();
            }

            backdrop.Render();
            if (useActualText)
            {
                for (int i = 0; i < (int)Enum.kMaxFunnyWordsInQuery; i++)
                {
                    if (funnyWord[i] != null)
                    {
                        (funnyWord[i]).Render();
                    }
                }
            }
            else
            {
                text.Render();
            }

            for (int i = 0; i < (int)Enum.kMaxCentralButtonsInQuery; i++)
            {
                if (buttonText[i] != null)
                {
                    buttonText[i].Render();
                }
            }


            for (int i = 0; i < (int)QueryButton.kNumButtonsOnQuery; i++)
            {
                (button[i]).Render();
            }
        }