Author Topic: [SOLVED] Determine items in grid ?  (Read 1943 times)

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
[SOLVED] Determine items in grid ?
« on: April 15, 2013, 11:08:17 PM »
Pls help, how to determine items which inside(showing items) and outside(clipped items) of grid ?
thanks
« Last Edit: April 16, 2013, 05:14:16 AM by PoN »
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Determine items in grid ?
« Reply #1 on: April 16, 2013, 03:32:40 AM »
Math.

You can calculate all of this from the cliprange, the localposition of the draggablepanel's transform and the grid size/position.

I'm not sure if there's some premade methods for it though.

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Re: Determine items in grid ?
« Reply #2 on: April 16, 2013, 05:13:00 AM »
Yea, i have done it,
thanks for your reply Nicki.
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.