Example #1
0
 override public string GetDescription()
 {
     return(base.GetDescription()
            + "\n\n<color=white>"
            + ControllerTextChanger.ReplaceText(instructions)
            + "</color>");
 }
Example #2
0
    public void RenderDialogueLine(DialogueLine line, bool hasMoreLines, bool fromCutscene = false)
    {
        anim.SetBool("IsSign", line.speakerImage == null);
        anim.SetBool("LastLine", !hasMoreLines);
        if (line.speakerImage != speakerImage.sprite && line.speakerName != speakerName.text && !fromCutscene)
        {
            nextImage = line.speakerImage;
            if (!switchingImage)
            {
                // anim.SetTrigger("SwitchSpeakerImage");
                SwitchSpeakerImage();
            }
        }
        else
        {
            speakerImage.sprite = line.speakerImage;
        }
        speakerName.text = line.speakerName;
        this.voiceIndex  = (int)line.voiceSound;
        string controllerFriendlyText = ControllerTextChanger.ReplaceText(line.lineText);

        StartSlowRender(controllerFriendlyText);

        if (line.gameFlag != GameFlag.None)
        {
            GlobalController.AddGameFlag(line.gameFlag);
        }
    }
Example #3
0
 public void GetItem(InventoryItem item)
 {
     this.abilityText.text     = item.itemName;
     this.descriptionText.text = item.itemDescription;
     this.instructionText.text = ControllerTextChanger.ReplaceText(item.instructions);
     this.abilityImage.sprite  = item.detailedIcon;
     GlobalController.ShowAbilityGetUI();
 }
Example #4
0
    void OnEnable()
    {
        Text t = GetComponentInChildren <Text>();

        if (string.IsNullOrEmpty(originalText))
        {
            originalText = t.text;
        }
        t.text = ControllerTextChanger.ReplaceText(originalText);
    }
Example #5
0
 void ShowItemInfo(InventoryItem item)
 {
     itemImage.sprite     = item.detailedIcon;
     itemTitle.text       = item.itemName.ToUpper();
     itemDescription.text = item.itemDescription;
     itemCost.text        = "$" + item.cost.ToString();
     if (item.IsAbility())
     {
         itemDescription.text += "\n\n<color=white>" + ControllerTextChanger.ReplaceText(item.instructions) + "</color>";
     }
 }
Example #6
0
    void ShowItemInfo(StoredItem s)
    {
        Item item = s.item;

        itemImage.color      = new Color(1, 1, 1, 1);
        itemImage.sprite     = item.detailedIcon;
        itemTitle.text       = item.name.ToUpper();
        itemDescription.text = item.GetDescription();
        itemCost.text        = "$" + item.cost.ToString();
        if (item.IsType(ItemType.ABILITY))
        {
            itemDescription.text +=
                "\n\n<color=white>"
                + ControllerTextChanger.ReplaceText(((AbilityItem)item).instructions)
                + "</color>";
        }
    }
Example #7
0
 public override void OnPlayerEnter()
 {
     GlobalController.OpenSign(ControllerTextChanger.ReplaceText(signText), this.transform.position + new Vector3(signOffset.x, signOffset.y));
 }
Example #8
0
 virtual public string GetDescription()
 {
     return(ControllerTextChanger.ReplaceText(description));
 }