diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index 3344007cc4..a269dde2a4 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -1667,17 +1667,20 @@ LockedInitialVelocity=7 ScrollBarHeight=300 ScrollBarOnCommand=x,-142;y,10 ; linear wheel example: -; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:y(offsetFromCenter*38); end +; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \ +; self:y(offsetFromCenter*38); \ +; end; ; 3D wheel example: -; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) -; local curve = math.pi; -; local NUM_WHEEL_ITEMS = 11; -; local WHEEL_3D_RADIUS = 245; -; local rotationx_radians = scale(offsetFromCenter,-NUM_WHEEL_ITEMS/2.0f,+NUM_WHEEL_ITEMS/2.0f,-curve/2.f,+curve/2.f) ); -; self:x( 1 - math.cos(offsetFromCenter/math.pi) ); -; self:y( WHEEL_3D_RADIUS * math.sin(rotationx_radians) ); -; self:z( -100 + WHEEL_3D_RADIUS * math.cos(rotationx_radians) ); -; self:rotationx( rotationx_radians * 180/math.pi ); -- to degrees end +; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) +; local curve = math.pi; \ +; local NUM_WHEEL_ITEMS = 11; \ +; local WHEEL_3D_RADIUS = 245; \ +; local rotationx_radians = scale(offsetFromCenter,-NUM_WHEEL_ITEMS/2,NUM_WHEEL_ITEMS/2,-curve/2,curve/2) ); \ +; self:x( 0 - math.cos(offsetFromCenter/math.pi) ); \ +; self:y( WHEEL_3D_RADIUS * math.sin(rotationx_radians) ); \ +; self:z( -100 + WHEEL_3D_RADIUS * math.cos(rotationx_radians) ); \ +; self:rotationx( rotationx_radians * 180/math.pi ); --[[ to degrees end]] \ +; end; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:x( (1-math.cos(offsetFromCenter/math.pi))*44 ); self:y( offsetFromCenter*38 ); end NumWheelItems=11 MusicWheelSortOnCommand= @@ -1797,7 +1800,7 @@ NumTicks=10 MaxTicks=14 TicksX=0 TicksY=0 -TicksOnCommand=shadowlength,0;stoke +TicksOnCommand=shadowlength,0;stroke TicksSetCommand=%function(self,param) self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)) if param.Meter > 9 then self:glowshift() else self:stopeffect() end end ShowTicks=false ShowMeter=true