Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 private void DeleteBill(AssemblyBill bill)
 {
 }
Exemplo n.º 3
0
 private void FinishBill(AssemblyBill bill)
 {
 }
Exemplo n.º 4
0
 public void AddBill(AssemblyBill bill)
 {
     _bills.Add(bill);
 }
 private void FinishBill(AssemblyBill bill)
 {
 }
 private void DeleteBill(AssemblyBill bill)
 {
 }
 public void AddBill(AssemblyBill bill)
 {
     _bills.Add(bill);
 }
Exemplo n.º 8
0
        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();
            }
        }