Fix wheel examples and correct a typo.
This commit is contained in:
@@ -1667,17 +1667,20 @@ LockedInitialVelocity=7
|
|||||||
ScrollBarHeight=300
|
ScrollBarHeight=300
|
||||||
ScrollBarOnCommand=x,-142;y,10
|
ScrollBarOnCommand=x,-142;y,10
|
||||||
; linear wheel example:
|
; 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:
|
; 3D wheel example:
|
||||||
; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems)
|
; ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems)
|
||||||
; local curve = math.pi;
|
; local curve = math.pi; \
|
||||||
; local NUM_WHEEL_ITEMS = 11;
|
; local NUM_WHEEL_ITEMS = 11; \
|
||||||
; local WHEEL_3D_RADIUS = 245;
|
; 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) );
|
; local rotationx_radians = scale(offsetFromCenter,-NUM_WHEEL_ITEMS/2,NUM_WHEEL_ITEMS/2,-curve/2,curve/2) ); \
|
||||||
; self:x( 1 - math.cos(offsetFromCenter/math.pi) );
|
; self:x( 0 - math.cos(offsetFromCenter/math.pi) ); \
|
||||||
; self:y( WHEEL_3D_RADIUS * math.sin(rotationx_radians) );
|
; self:y( WHEEL_3D_RADIUS * math.sin(rotationx_radians) ); \
|
||||||
; self:z( -100 + WHEEL_3D_RADIUS * math.cos(rotationx_radians) );
|
; self:z( -100 + WHEEL_3D_RADIUS * math.cos(rotationx_radians) ); \
|
||||||
; self:rotationx( rotationx_radians * 180/math.pi ); -- to degrees end
|
; 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
|
ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:x( (1-math.cos(offsetFromCenter/math.pi))*44 ); self:y( offsetFromCenter*38 ); end
|
||||||
NumWheelItems=11
|
NumWheelItems=11
|
||||||
MusicWheelSortOnCommand=
|
MusicWheelSortOnCommand=
|
||||||
@@ -1797,7 +1800,7 @@ NumTicks=10
|
|||||||
MaxTicks=14
|
MaxTicks=14
|
||||||
TicksX=0
|
TicksX=0
|
||||||
TicksY=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
|
TicksSetCommand=%function(self,param) self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)) if param.Meter > 9 then self:glowshift() else self:stopeffect() end end
|
||||||
ShowTicks=false
|
ShowTicks=false
|
||||||
ShowMeter=true
|
ShowMeter=true
|
||||||
|
|||||||
Reference in New Issue
Block a user