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; } }
void CompleteCooking() { Status = PanStatus.Norm; Raw.SetActive(false); Norm.SetActive(true); RedProgress.StartTimer(BurnTime, CompleteBurning); }
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(); }
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; } }
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; } }
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; } }
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(); }
void CompleteBurning() { Status = PanStatus.Burn; Norm.SetActive(false); Burn.SetActive(true); }
public void PutMeat() { Raw.SetActive(true); GreenProgress.StartTimer(CookingTime, CompleteCooking); Status = PanStatus.Raw; }