示例#1
0
    public void Show(Paperwork pendingPaperwork, EPaperworkMarkType pendingMarkType, PaperworkMark pendingMark)
    {
        PendingPaperwork = pendingPaperwork;
        if (PendingPaperwork.GetProfile() == GameManager.instance.GrimReaperPaperworkProfile)
        {
            if (pendingMarkType == EPaperworkMarkType.Die)
            {
                TextPrompt.text = TextSelfie;
            }
            else
            {
                TextPrompt.text = TextSelfieLive;
            }
        }
        else if (PendingPaperwork.GetProfile() == GameManager.instance.FatePaperworkProfile)
        {
            if (pendingMarkType == EPaperworkMarkType.Die)
            {
                TextPrompt.text = TextUsurpator;
            }
            else
            {
                TextPrompt.text = TextUsurpatorLive;
            }
        }
        else
        {
            TextPrompt.text = TextDefault;
        }
        PendingMarkType = pendingMarkType;
        PendingMark     = pendingMark;

        if (SaveManager.instance.CurrentOptions.SkipMarkPopUp)
        {
            ToggleOptOut.gameObject.SetActive(false);
        }
        else
        {
            ToggleOptOut.isOn = false;
            ToggleOptOut.gameObject.SetActive(true);
        }

        gameObject.SetActive(true);
        Cursor.visible = true;
    }
示例#2
0
    public string GetHoverText()
    {
        if (PaperworkParent.IsMarked())
        {
            if (Eraser.instance.IsPickedUp())
            {
                switch (MarkType)
                {
                case EPaperworkMarkType.Live:
                    if (ImageMark.enabled)
                    {
                        return(PaperworkParent.TextName.text + ", SORRY SORRY SORRY.");
                    }
                    else
                    {
                        return("I could erase the mark and change my mind...");
                    }

                case EPaperworkMarkType.Die:
                    if (ImageMark.enabled)
                    {
                        return(PaperworkParent.TextName.text + ", I'm not done with you yet.");
                    }
                    else
                    {
                        return("I could erase the mark and change my mind...");
                    }
                }
                return("You should not be seeing this hover text! ERROR!");
            }
            else if (Eraser.instance.gameObject.activeSelf)
            {
                if (ImageMark.enabled)
                {
                    return("I could erase this if I wanted to...");
                }
                else
                {
                    return("I could erase the mark and change my mind...");
                }
            }
            else
            {
                return("No way back now. Unless I find something to erase this with...");
            }
        }

        if (MarkerOfDeath.instance.IsPickedUp())
        {
            switch (MarkType)
            {
            case EPaperworkMarkType.Live:
                if (PaperworkParent.GetProfile() == GameManager.instance.GrimReaperPaperworkProfile)
                {
                    return("?????");
                }
                else if (PaperworkParent.GetProfile() == GameManager.instance.FatePaperworkProfile)
                {
                    return("After all this time?");
                }
                else
                {
                    return(PaperworkParent.TextName.text + ", you will live.");
                }

            case EPaperworkMarkType.Die:
                if (PaperworkParent.GetProfile() == GameManager.instance.GrimReaperPaperworkProfile)
                {
                    return("?!?!?");
                }
                else if (PaperworkParent.GetProfile() == GameManager.instance.FatePaperworkProfile)
                {
                    return("It would take such a little amount of effort...");
                }
                else
                {
                    return(PaperworkParent.TextName.text + ", you will die.");
                }
            }
        }
        else if (Eraser.instance.IsPickedUp())
        {
            return("Nothing to erase here!");
        }
        else
        {
            if (PaperworkParent.Status == EPaperworkStatus.FOCUS)
            {
                return("I need to pick up the Marker of Death first...");
            }
            else
            {
                return(PaperworkParent.GetHoverText());
            }
            //switch (MarkType)
            //{
            //    case EPaperworkMarkType.Live:
            //        return PaperworkParent.TextName.text + ", you will live.";
            //    case EPaperworkMarkType.Die:
            //        return PaperworkParent.TextName.text + ", you will die.";
            //}
        }

        return("");
    }