Ejemplo n.º 1
0
        public override string GetInspectString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (this.IsActive())
            {
                stringBuilder.AppendLine("Shield: " + this.FieldIntegrity_Current + "/" + this.m_FieldIntegrity_Max);
            }
            else if (this.CurrentStatus == enumShieldStatus.Initilising)
            {
                //stringBuilder.AppendLine("Initiating shield: " + ((warmupTicks * 100) / recoverWarmup) + "%");
                stringBuilder.AppendLine("Ready in " + Math.Round(GenTicks.TicksToSeconds(m_WarmupTicksRemaining)) + " seconds.");
                //stringBuilder.AppendLine("Ready in " + m_warmupTicksCurrent + " seconds.");
            }
            else
            {
                stringBuilder.AppendLine("Shield disabled!");
            }

            if (m_Power != null)
            {
                string text = m_Power.CompInspectStringExtra();
                if (!text.NullOrEmpty())
                {
                    stringBuilder.AppendLine(text);
                }
            }

            return(stringBuilder.ToString());
        }
Ejemplo n.º 2
0
        public override string GetInspectString()
        {
            StringBuilder _StringBuilder = new StringBuilder();

            if (_PowerComp != null)
            {
                if (this._PowerComp.PowerOn)
                {
                    _StringBuilder.AppendLine("Drill Status: Online");
                }
                else
                {
                    _StringBuilder.AppendLine("Drill Status: Low Power");
                }
            }
            else
            {
                _StringBuilder.AppendLine("Drill Status: Low Power");
            }

            _StringBuilder.Append("Drill Work Remaining: " + this.drillWork);

            if (_PowerComp != null)
            {
                string _Text = _PowerComp.CompInspectStringExtra();
                if (!_Text.NullOrEmpty())
                {
                    _StringBuilder.AppendLine("");
                    _StringBuilder.Append(_Text);
                }
            }

            return(_StringBuilder.ToString());
        }
        public override string GetInspectString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            string text;

            if (this.active)
            {
                if (powerComp != null)
                {
                    if (this.powerComp.PowerOn)
                    {
                        text = "Fill Status: Online";
                    }
                    else
                    {
                        text = "Fill Status: Low Power";
                    }
                }
                else
                {
                    text = "Fill Status: Low Power";
                }
            }
            else
            {
                text = "No Steam Geyser found";
            }


            stringBuilder.AppendLine(text);

            text = "Fill Work Remaining: " + this.drillWork;
            stringBuilder.AppendLine(text);

            if (powerComp != null)
            {
                text = powerComp.CompInspectStringExtra();
                if (!text.NullOrEmpty())
                {
                    stringBuilder.AppendLine(text);
                }
            }


            return(stringBuilder.ToString());
        }
Ejemplo n.º 4
0
        public override string GetInspectString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            string inspectorStatus = null;

            if (ParentHolder != null && !(ParentHolder is Map))
            {
                // If minified, don't show computer and feedstock check Inspector messages
            }
            else
            {
                stringBuilder.AppendInNewLine(powerComp.CompInspectStringExtra());

                if (def.building.bed_humanlike)
                {
                    if (ForPrisoners)
                    {
                        stringBuilder.AppendInNewLine("ForPrisonerUse".Translate());
                    }
                    else
                    {
                        stringBuilder.AppendInNewLine("ForColonistUse".Translate());
                    }
                }

                if (!powerComp.PowerOn)
                {
                    inspectorStatus = "MedPod_InspectorStatus_NoPower".Translate();
                }
                else
                {
                    switch (status)
                    {
                    case MedPodStatus.DiagnosisStarted:
                        float diagnosingProgress = (float)(MaxDiagnosingTicks - DiagnosingTicks) / MaxDiagnosingTicks * 100;
                        inspectorStatus = "MedPod_InspectorStatus_DiagnosisProgress".Translate((int)diagnosingProgress);
                        break;

                    case MedPodStatus.DiagnosisFinished:
                        inspectorStatus = "MedPod_InspectorStatus_DiagnosisComplete".Translate();
                        break;

                    case MedPodStatus.HealingStarted:
                    case MedPodStatus.HealingFinished:
                        float healingProgress = (float)ProgressHealingTicks / TotalHealingTicks * 100;
                        inspectorStatus = "MedPod_InspectorStatus_HealingProgress".Translate((int)healingProgress);
                        break;

                    case MedPodStatus.PatientDischarged:
                        inspectorStatus = "MedPod_InspectorStatus_PatientDischarged".Translate();
                        break;

                    case MedPodStatus.Idle:
                    default:
                        inspectorStatus = "MedPod_InspectorStatus_Idle".Translate();
                        break;
                    }
                }

                stringBuilder.AppendInNewLine(inspectorStatus);
            }

            return(stringBuilder.ToString());
        }
        public override string GetInspectString()
        {
            StringBuilder stringBuilder = new StringBuilder();


            if (this.m_ChargeMode)
            {
                switch (this.m_ErrorMode)
                {
                case Modes.Normal:

                    stringBuilder.AppendLine("Charing, remaining: " + this.m_TicksRemaining.ToString());
                    break;

                case Modes.Low_Power:
                    stringBuilder.AppendLine("Charing - Low Power.");
                    break;

                case Modes.NoCell:
                    stringBuilder.AppendLine("Charing - No Uncharged Cell.");
                    break;

                case Modes.FlickedOff:
                    stringBuilder.AppendLine("Charing - Flicked Off.");
                    break;
                }
            }
            else
            {
                switch (this.m_ErrorMode)
                {
                case Modes.Normal:

                    stringBuilder.AppendLine("Discharing, remaining: " + this.m_TicksRemaining.ToString());
                    break;

                case Modes.Low_Power:
                    stringBuilder.AppendLine("Discharing - Low Power.");
                    break;

                case Modes.NoCell:
                    stringBuilder.AppendLine("Discharing - No Uncharged Cell.");
                    break;

                case Modes.FlickedOff:
                    stringBuilder.AppendLine("Discharing - Flicked Off.");
                    break;
                }
            }

            if (m_Power != null)
            {
                string text = m_Power.CompInspectStringExtra();
                if (!text.NullOrEmpty())
                {
                    stringBuilder.AppendLine(text);
                }
            }

            return(stringBuilder.ToString());
        }