Ejemplo n.º 1
0
 public void SetInstructions(string text)
 {
     instructions.text = text;
     instructions.x    = SHGUI.current.resolutionX - 5;
     instructions.GoFromRight();
     //instructions.ForcedFadeIn (.7f);
 }
Ejemplo n.º 2
0
 private void UpdateInstructions(string newtext)
 {
     if (instructions.text != newtext)
     {
         instructions.PunchIn(0f);
     }
     instructions.text = newtext;
     instructions.x    = instructionsAnchorX;
     instructions.y    = lines + 1;
     instructions.GoFromRight();
 }
Ejemplo n.º 3
0
    private void UpdateInstructions()
    {
        if (subElement == null)
        {
            return;
        }

        string lastInstructions = subElement.text;

        if (showInstructions && !textElement.IsFinished())
        {
            if (textElement.manualUpdate)
            {
                if (textElement.IsAlmostFinished())
                {
                    subElement.text = LocalizationManager.Instance.GetLocalized("ENTER_TO_SEND_INPUT");
                }
                else
                {
                    subElement.text = LocalizationManager.Instance.GetLocalized("TYPE_TO_HACK_INPUT");
                }
            }
            else
            {
                //if (!leftright)
                subElement.text = "WAIT";
            }
            subElement.x = width - 2;
            subElement.y = height - 1;
            subElement.GoFromRight();

            if (lastInstructions != subElement.text)
            {
                subElement.PunchIn(.6f);
            }
        }
        else
        {
            //this could backfire and null maybe?
            subElement.Kill();
        }

        if (textElement.IsFinished())
        {
            subElement.Kill();
        }
    }
Ejemplo n.º 4
0
    private void SetChatQuitInstructions(string newtext)
    {
        if (chatQuitInstructions == null)
        {
            return;
        }

        chatQuitInstructions.color = 'z';

        if (chatQuitInstructions.text != newtext)
        {
            chatQuitInstructions.PunchIn(0f);
        }

        chatQuitInstructions.text = newtext;
        chatQuitInstructions.x    = SHGUI.current.resolutionX - 5;
        chatQuitInstructions.GoFromRight();
    }