コード例 #1
0
        protected override string RequirementText()
        {
            string title = StringBuilderCache.Format("<color=#{0}>{1}</color>", MissionControlUI.RequirementHighlightColor, ContractTitle());

            if (cooldownDuration.Value > 0.0)
            {
                return(Localizer.Format(invertRequirement ? "#cc.req.CompleteContract.cooldown.x" : "#cc.req.CompleteContract.cooldown", title, cooldownDuration.ToString()));
            }
            else
            {
                return(Localizer.Format(invertRequirement ? "#cc.req.CompleteContract.x" : "#cc.req.CompleteContract", title));
            }
        }