Example #1
0
    public void DisplayToolTip()
    {
        var display = new ToolTipEvent();


        foreach (var val in Tips)
        {
            if (Wellbeing)
            {
                if (Game.current.Self.GetWellbingStat(WellnessStat) >= val.Value)
                {
                    display = new ToolTipEvent(val);
                }
            }
            else
            {
                if (Game.current.Self.GetModifiedSocialStat(SocialStat) >= val.Value)
                {
                    display = new ToolTipEvent(val);
                }
            }
        }



        if (!Wellbeing)
        {
            if (Game.current.Self.GetModifiedSocialStat(SocialStat) != Game.current.Self.GetTrueSocialStat(SocialStat))
            {
                display.info  = display.info + Environment.NewLine + ModifiedStatText;
                display.color = ModifedStatColor;
            }

            if (Debug)
            {
                display.info = display.info + Environment.NewLine + " value: " + Game.current.Self.GetModifiedSocialStat(SocialStat);
            }
        }
        else
        {
            if (Debug)
            {
                display.info = display.info + Environment.NewLine + " value: " + Game.current.Self.GetWellbingStat(WellnessStat);
            }
        }

        Space.DispatchEvent(Events.Tooltip, display);
    }
Example #2
0
 public ToolTipEvent(ToolTipEvent copy)
 {
     info  = copy.info;
     color = copy.color;
     Value = copy.Value;
 }
Example #3
0
 void UpdateDisplay(ToolTipEvent eventdata)
 {
     text.text  = eventdata.info;
     text.color = eventdata.color;
 }