/spacey

To get this branch, use:
bzr branch http://9ix.org/bzr/spacey

« back to all changes in this revision

Viewing changes to wrap_tile.lua

  • Committer: Josh C
  • Date: 2013-05-13 21:31:23 UTC
  • Revision ID: josh@9ix.org-20130513213123-n21tkmyb2u7xcjtz
monkey patch group to add onRemove hook.  remove mirrors on remove.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                  self.xMirror.x = mirrorX
39
39
                  self.xMirror.y = self.y
40
40
                  self.xMirror.rotation = self.rotation
41
 
                  self.xMirror.scale = self.scale
42
41
               elseif self.xMirror then
43
42
                  the.app.view:remove(self.xMirror)
44
43
                  self.xMirror = nil
56
55
                  self.yMirror.x = self.x
57
56
                  self.yMirror.y = mirrorY
58
57
                  self.yMirror.rotation = self.rotation
59
 
                  self.yMirror.scale = self.scale
60
58
               elseif self.yMirror then
61
59
                  the.app.view:remove(self.yMirror)
62
60
                  self.yMirror = nil
74
72
                  self.xyMirror.x = mirrorX
75
73
                  self.xyMirror.y = mirrorY
76
74
                  self.xyMirror.rotation = self.rotation
77
 
                  self.xyMirror.scale = self.scale
78
75
               elseif self.xyMirror then
79
76
                  the.app.view:remove(self.xyMirror)
80
77
                  self.xyMirror = nil