Example #1
0
        public override void FillInformation(ISystem sys, out string info, out string detailed)
        {
            info     = "";
            detailed = "";

            if (Items != null && Items.Length > 0)
            {
                info     += BaseUtils.FieldBuilder.Build("Items".T(EDTx.JournalMicroResources_Items) + ":; ", Items.Length, "< sell price ; cr;N0".T(EDTx.JournalEntry_sellprice), Price);
                detailed += "Items".T(EDTx.JournalMicroResources_Items) + ":" + MicroResource.List(Items);
            }
        }
        public override void FillInformation(ISystem sys, out string info, out string detailed)
        {
            info = "";
            detailed = "";

            if (Items != null && Items.Length > 0)
            {
                if (Items.Length > 10)
                    info += BaseUtils.FieldBuilder.Build("Count: ".T(EDTx.JournalEntry_Count), Items.Length);
                else
                    info += string.Join(", ", Items.Select(x => x.FriendlyName).ToArray());

                detailed += MicroResource.List(Items);
            }
        }
Example #3
0
        public override void FillInformation(ISystem sys, out string info, out string detailed)
        {
            info     = "";
            detailed = "";

            if (Items != null && Items.Length > 0)
            {
                if (Items.Length > 10)
                {
                    info = BaseUtils.FieldBuilder.Build("Items".T(EDTx.JournalMicroResources_Items) + ": ; ", Items.Length);
                }

                detailed = "Items".T(EDTx.JournalMicroResources_Items) + ": " + MicroResource.List(Items) + Environment.NewLine;
            }

            if (Components != null && Components.Length > 0)
            {
                info      = info.AppendPrePad(BaseUtils.FieldBuilder.Build("Components".T(EDTx.JournalMicroResources_Components) + ": ; ", Components.Length), "; ");
                detailed += "Components".T(EDTx.JournalMicroResources_Components) + ": " + MicroResource.List(Components) + Environment.NewLine;
            }

            if (Consumables != null && Consumables.Length > 0)
            {
                if (Items.Length > 10)
                {
                    info = info.AppendPrePad(BaseUtils.FieldBuilder.Build("Consumables".T(EDTx.JournalMicroResources_Consumables) + ": ; ", Consumables.Length), "; ");
                }
                else
                {
                    info = info.AppendPrePad(string.Join(", ", Consumables.Select(x => x.FriendlyName).ToArray()), "; ");
                }

                detailed += "Consumables".T(EDTx.JournalMicroResources_Consumables) + ": " + MicroResource.List(Consumables) + Environment.NewLine;
            }

            if (Data != null && Data.Length > 0)
            {
                info      = info.AppendPrePad(BaseUtils.FieldBuilder.Build("Data".T(EDTx.JournalMicroResources_Data) + ": ; ", Data.Length), "; ");
                detailed += "Data".T(EDTx.JournalMicroResources_Data) + ": " + MicroResource.List(Data);
            }
        }
Example #4
0
 public override void FillInformation(ISystem sys, out string info, out string detailed)
 {
     info     = BaseUtils.FieldBuilder.Build(" ", Received_FriendlyName, "; items".T(EDTx.JournalEntry_items), Count);
     detailed = MicroResource.List(Offered);
 }