Esempio n. 1
0
 // Token: 0x06000038 RID: 56 RVA: 0x00003EBC File Offset: 0x000020BC
 public Gizmo_CrafterPawnInfo(IPawnCrafter crafter)
 {
     this.crafter = crafter;
     defaultLabel = crafter.PawnBeingCrafted().Name.ToStringFull;
     defaultDesc  = description.Translate();
     icon         = emptyIcon;
 }
Esempio n. 2
0
        public Gizmo_PrinterPawnInfo(IPawnCrafter printer)
        {
            this.printer = printer;

            //Start
            defaultLabel = printer.PawnBeingCrafted().Name.ToStringFull;
            defaultDesc = description.Translate();
            icon = emptyIcon;
        }
Esempio n. 3
0
        public Gizmo_TogglePrinting(IPawnCrafter printer)
        {
            this.printer = printer;

            if (printer.PawnCrafterStatus() == CrafterStatus.Idle)
            {
                //Start
                defaultLabel = labelStart.Translate();
                defaultDesc  = descriptionStart.Translate();
                icon         = startIcon;
            }
            else if (printer.PawnCrafterStatus() == CrafterStatus.Crafting || printer.PawnCrafterStatus() == CrafterStatus.Filling)
            {
                //Stop
                defaultLabel = labelStop.Translate();
                defaultDesc  = descriptionStop.Translate();
                icon         = stopIcon;
            }
        }
Esempio n. 4
0
        // Token: 0x0600003C RID: 60 RVA: 0x00003FF0 File Offset: 0x000021F0
        public Gizmo_ToggleCrafting(IPawnCrafter crafter)
        {
            this.crafter = crafter;
            if (crafter.PawnCrafterStatus() == CrafterStatus.Idle)
            {
                defaultLabel = labelStart.Translate();
                defaultDesc  = descriptionStart.Translate();
                icon         = startIcon;
                return;
            }

            if (crafter.PawnCrafterStatus() != CrafterStatus.Crafting &&
                crafter.PawnCrafterStatus() != CrafterStatus.Filling)
            {
                return;
            }

            defaultLabel = labelStop.Translate();
            defaultDesc  = descriptionStop.Translate();
            icon         = stopIcon;
        }