private void DrawEntry(Rect entryRect, AssemblyBill bill, bool alternate) { try { Rect inRect = entryRect.ContractedBy(5f); if (alternate) { Widgets.DrawAltRect(entryRect); } GUI.BeginGroup(inRect); #region Label Rect labelRect = new Rect(0f, 0f, inRect.width / 2f, inRect.height); string label = "Blueprint".Translate() + ": " + bill.Blueprint.BpName + "\n" + "Name".Translate() + ": " + bill.Blueprint.Name; Text.Anchor = TextAnchor.MiddleCenter; Widgets.Label(labelRect, label); Text.Anchor = TextAnchor.UpperLeft; #endregion } finally { GUI.EndGroup(); } }
private void DeleteBill(AssemblyBill bill) { }
private void FinishBill(AssemblyBill bill) { }
public void AddBill(AssemblyBill bill) { _bills.Add(bill); }
private void DrawEntry(Rect entryRect, AssemblyBill bill, bool alternate) { try { Rect inRect = entryRect.ContractedBy(5f); if (alternate) Widgets.DrawAltRect(entryRect); GUI.BeginGroup(inRect); #region Label Rect labelRect = new Rect(0f, 0f, inRect.width / 2f, inRect.height); string label = "Blueprint".Translate() + ": " + bill.Blueprint.BpName + "\n" + "Name".Translate() + ": " + bill.Blueprint.Name; Text.Anchor=TextAnchor.MiddleCenter; Widgets.Label(labelRect, label); Text.Anchor=TextAnchor.UpperLeft; #endregion } finally { GUI.EndGroup(); } }