DrawCountOnGraphics() 공개 정적인 메소드

public static DrawCountOnGraphics ( Graphics gr, int itemCount, int offset_x, int offset_y ) : void
gr Graphics
itemCount int
offset_x int
offset_y int
리턴 void
예제 #1
0
 private static void RenderItemCount(Graphics gr, Tuple <Item, int> item, Rectangle region)
 {
     if (region.Width > 28)
     {
         RenderImageResized(gr, item.Item1.GetImage(), region);
         if (item.Item1.stackable || item.Item2 > 1)
         {
             LootDropForm.DrawCountOnGraphics(gr, item.Item2, region.X + region.Width - 1, region.Y + region.Height - 1);
         }
     }
     else
     {
         RenderImageResized(gr, (item.Item1.stackable || item.Item2 > 1) ? LootDropForm.DrawCountOnItem(item.Item1, item.Item2) : item.Item1.GetImage(), region);
     }
 }