Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: plugins/pogplugin/pogplugin.py
- ===================================================================
- --- plugins/pogplugin/pogplugin.py (revision 500)
- +++ plugins/pogplugin/pogplugin.py (working copy)
- @@ -128,12 +128,16 @@
- selection = rggSystem.showPopupMenuAtAbs([x, y], ['Center', hide, 'Resize', lock, 'Change Layer', 'Delete'])
- if selection == 0:
- + print rggSystem.cameraPosition()
- + print rggSystem.cameraSize()
- camsiz = rggSystem.cameraSize()
- pospog = specificItem.getPog().position
- pogw = specificItem.getPog()._tile.getW()
- pogh = specificItem.getPog()._tile.getH()
- - newpos = (pospog[0] - camsiz[0]/2 + pogw/2, pospog[1] - camsiz[1]/2 + pogh/2)
- + newpos = (-pospog[0] + camsiz[0]/2 - pogw/2, -pospog[1] + camsiz[1]/2 - pogh/2)
- rggSystem.setCameraPosition(newpos)
- + print rggSystem.cameraPosition()
- + print rggSystem.cameraSize()
- elif selection == 1:
- for item in items:
- pog = item.getPog()
Add Comment
Please, Sign In to add comment