Esempio n. 1
0
        public void Init(int nodenum, bool bSelect)
        {
            backBuffer  = new Bitmap(this.Width, this.Height);
            graphic     = Graphics.FromImage(backBuffer);
            pannum      = nodenum;
            bSelectable = bSelect;
            radius      = this.ClientSize.Width;
            if (radius > this.ClientSize.Height)
            {
                radius = this.ClientSize.Height;
            }

            radius    = radius / 2;
            innradius = radius / 3;
            vibradius = radius / 5;
            outradius = radius * 3 / 5;
            center    = new Point(radius, radius);

            node_texts = new string[nodenum];
            node_stats = new PanStatus[nodenum];
            for (int i = 0; i < nodenum; i++)
            {
                node_texts[i] = "";
                node_stats[i] = PanStatus.IDLE;
            }
        }
Esempio n. 2
0
    void CompleteCooking()
    {
        Status = PanStatus.Norm;
        Raw.SetActive(false);
        Norm.SetActive(true);

        RedProgress.StartTimer(BurnTime, CompleteBurning);
    }
Esempio n. 3
0
 public void SetStatus(string item, byte node, PanStatus status)
 {
     if (item == "weightbar" && node <= pannum)
     {
         node_stats[node - 1] = status;
     }
     if (item == "passbar" && node <= pannum)
     {
         node_stats[node - 1] = status;
     }
     if (item == "packer" && node <= pannum)
     {
         pack_stat = status;
     }
     this.Invalidate();
 }
Esempio n. 4
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (Status == PanStatus.Norm)
     {
         if (SetOfPlates.PutFilling())
         {
             Status = PanStatus.Empty;
             Norm.SetActive(false);
             RedProgress.Stop();
         }
     }
     else if (Status == PanStatus.Burn && eventData.clickCount == 2)
     {
         Burn.SetActive(false);
         Status = PanStatus.Empty;
     }
 }
Esempio n. 5
0
        public void Init(int nodenum)
        {
            pannum = nodenum;

            radius = this.ClientSize.Width;
            if (radius > this.ClientSize.Height)
            {
                radius = this.ClientSize.Height;
            }
            radius    = radius / 2;
            innradius = radius / 3;
            outradius = radius * 3 / 5;
            center    = new Point(radius, radius);

            node_texts = new string[nodenum];
            node_stats = new PanStatus[nodenum];
            for (int i = 0; i < nodenum; i++)
            {
                node_texts[i] = "";
                node_stats[i] = PanStatus.IDLE;
            }
        }
Esempio n. 6
0
        public void Init(int nodenum, bool bSelect)
        {
            backBuffer = new Bitmap(this.Width, this.Height);
            graphic = Graphics.FromImage(backBuffer);
            pannum = nodenum;
            bSelectable = bSelect;
            radius = this.ClientSize.Width;
            if (radius > this.ClientSize.Height)
                radius = this.ClientSize.Height;

            radius = radius / 2;
            innradius = radius / 3;
            vibradius = radius / 5;
            outradius = radius *3 / 5;
            center = new Point(radius, radius);

            node_texts = new string[nodenum];
            node_stats = new PanStatus[nodenum];
            for (int i = 0; i < nodenum; i++)
            {
                node_texts[i] = "";
                node_stats[i] = PanStatus.IDLE;
            }
        }
Esempio n. 7
0
 public void SetStatus(string item, byte node, PanStatus status,bool refresh)
 {
     if (item == "weightbar" && node <= pannum)
     {
         node_stats[node-1] = status;
     }
     if (item == "passbar" && node <= pannum)
     {
         node_stats[node-1] = status;
     }
     if (item == "packer" && node <= pannum)
     {
         pack_stat = status;
     }
     if(refresh)
         this.Invalidate();
 }
Esempio n. 8
0
 void CompleteBurning()
 {
     Status = PanStatus.Burn;
     Norm.SetActive(false);
     Burn.SetActive(true);
 }
Esempio n. 9
0
 public void PutMeat()
 {
     Raw.SetActive(true);
     GreenProgress.StartTimer(CookingTime, CompleteCooking);
     Status = PanStatus.Raw;
 }