thomasahle / TrinityProject

A mindblowing trainbased game for entire family
http://thomasahle.github.com/TrinityProject/
GNU General Public License v3.0
8 stars 3 forks source link

Fix hit test for inserting a component. #33

Closed MattPellegrini closed 12 years ago

MattPellegrini commented 12 years ago

So if an ID component is added either side of a component on insert, the best way to do this would be to have the insert component added to where the ID component clicked on was, then have an ID component either side.

so clicking on ID.1 below

[START] [ID.1] [BOX] [ID.2]

would give

[START] [ID] [FLIP] [ID] [BOX] [ID.2]

if we were inserting a flip.

thomasahle commented 12 years ago

This is sort of how it works, but I think there is a good point of then translating the UILavel so it also looks that way.