/// <summary> /// 输出 /// </summary> /// <returns></returns> public string Output() { StringBuilder sb = new StringBuilder(); //sb.Append(Name); //sb.Append(Environment.NewLine); //sb.Append("\tWEIGHT\t\tH-arm\t%RC \tQUANZHONG" + Environment.NewLine); //sb.Append("\t"); //sb.Append(TakeoffFuel.ToString("#0.000") + "\t"); //sb.Append(Harm.ToString("#0.000") + "\t"); //sb.Append(RC.ToString("#0.000") + "\t"); //sb.Append(Quanzhong.ToString("#0.000")); //sb.Append(Environment.NewLine); sb.AppendFormat("{0,-14}", Name); sb.AppendFormat("{0,-10}", "WEIGHT"); sb.AppendFormat("{0,-10}", "H-arm"); sb.AppendFormat("{0,-10}", "%RC"); sb.AppendFormat("{0,-10}", "QUANZHONG"); sb.Append(Environment.NewLine); sb.AppendFormat("{0,-14}", ""); sb.AppendFormat("{0,-10}", Weight.ToString("#0.000")); sb.AppendFormat("{0,-10}", Harm.ToString("#0.000")); sb.AppendFormat("{0,-10}", RC.ToString("#0.000")); sb.AppendFormat("{0,-10}", Quanzhong.ToString("#0.000")); sb.Append(Environment.NewLine); return(sb.ToString()); }
/// <summary> /// 输出 /// </summary> /// <returns></returns> public string Output() { StringBuilder sb = new StringBuilder(); //sb.Append("DOW\t\tDOI\tH-arm\t%RC \tQUANZHONG" + Environment.NewLine); //sb.Append(DryOperationWeight.ToString("#0.000") + "\t"); //sb.Append(DryOperationIndex.ToString("#0.000") + "\t"); //sb.Append(Harm.ToString("#0.000") + "\t"); //sb.Append(RC.ToString("#0.000") + "\t"); //sb.Append(Quanzhong.ToString("#0.000")); //sb.Append(Environment.NewLine); sb.AppendFormat("{0,-12}", "DOW"); sb.AppendFormat("{0,-10}", "DOI"); sb.AppendFormat("{0,-10}", "H-arm"); sb.AppendFormat("{0,-10}", "%RC"); sb.AppendFormat("{0,-10}", "QUANZHONG"); sb.Append(Environment.NewLine); sb.AppendFormat("{0,-12}", DryOperationWeight.ToString("#0.000")); sb.AppendFormat("{0,-10}", DryOperationIndex.ToString("#0.000")); sb.AppendFormat("{0,-10}", Harm.ToString("#0.000")); sb.AppendFormat("{0,-10}", RC.ToString("#0.000")); sb.AppendFormat("{0,-10}", Quanzhong.ToString("#0.000")); sb.Append(Environment.NewLine); return(sb.ToString()); }
public BetterLettersMod(ModContentPack content) : base("legodude17.bletters", null, content, false) { Harm.Patch(AccessTools.Method(typeof(LetterStack), "ReceiveLetter", new[] { typeof(Letter), typeof(string) }), new HarmonyMethod(typeof(BetterLettersMod), "CheckForBlock")); ExtraLetterOptions.DoPatch(Harm); ArchiveSearchBar.DoPatches(Harm); Instance = this; }
public override void ApplySettings() { base.ApplySettings(); if (Settings.Blocking == null) { Settings.Blocking = new LetterBlocking(); } Harm.Unpatch(AccessTools.Method(typeof(LetterStack), "LettersOnGUI"), HarmonyPatchType.Transpiler, Harm.Id); if (Settings.SwapOrder) { LetterOrderSwap.DoPatch(Harm); } }