Hey guys, I’m not sure if this is an issue with sublime, or corona, but whenever I do a reindent, all of my elseif statements are 1 indent deeper than the last, for the same if statement, so it looks like this:
if(self.index ==1) then --doing nothing, trying to avoid the bug where clicking on the first map level breaks everything -- it works! self.circ:setFillColor(0,0,1,1) elseif(self.index \< currLoc) then self.circ:setFillColor(0,1,0,1) group.isVisible = true self.isTouchEnabled = true group.xScale = config.xScale or self.xScaleInit group.yScale = config.yScale or self.yScaleInit elseif(self.index == currLoc) then self.circ:setFillColor(0,0,.8,1) group.isVisible = true self.isTouchEnabled = true group.xScale = config.xScale or self.xScaleInit group.yScale = config.yScale or self.yScaleInit elseif(self.index\>currLoc)then self.circ:setFillColor(1,0,0,1) group.isVisible = true
I’m just wondering if I’m doing something wrong, or what? I doesn’t seem to negatively affect anything other than readability.