setPosition() public method

public setPosition ( Vector2 pos ) : void
pos Vector2
return void
Beispiel #1
0
 private void positionThumbs(List <ImageButton> thumbs)
 {
     for (int i = 0; i < thumbs.Count; i++)
     {
         ImageButton thumb = thumbs[i];
         thumb.setPosition(new Vector2(200 * (i % THUMBROWSIZE), (float)Math.Floor((i / 8f)) * 120 + 600));
     }
 }
Beispiel #2
0
 private void positionThumbs(List <ImageButton> thumbs)
 {
     for (int i = 0; i < thumbs.Count; i++)
     {
         ImageButton thumb = thumbs[i];
         thumb.setPosition(new Vector2(200 * (i % THUMBROWSIZE) + 601, (i / THUMBROWSIZE) * 200 + 278));
     }
 }