private FlowLayoutPanel createMagickPanel(int magick) { FlowLayoutPanel magickPanel = createAuxPannel( String.Format("magickPanel{0}", magick), 94); magickPanel.Controls.Add(CreateFancyLabel( Magick.names[magick], AppFontSize.Big, 200, 60)); ElemPictureBox magickImg = new ElemPictureBox(); magickImg.Size = new Size(90, 90); magickImg.SetStyle(); magickImg.Image = ImageLoader.magicksPictures[magick]; magickPanel.Controls.Add(magickImg); return(magickPanel); }
private FlowLayoutPanel createElementPanel(int magick) { FlowLayoutPanel imgPanel = createAuxPannel( String.Format("elemPanel{0}", magick), 70); imgPanel.Padding = new Padding( 8 + (5 - Magick.magicks[magick].Count) * 27, 0, 0, 0); for (int i = 0; i < Magick.magicks[magick].Count; i++) { ElemPictureBox elemImg = new ElemPictureBox(); elemImg.Size = new Size(54, 54); elemImg.SetStyle(); elemImg.Image = ImageLoader.elemPictures[Magick.magicks[magick][i]]; imgPanel.Controls.Add(elemImg); } return(imgPanel); }