Commands:Size commands
From SMTheming Wiki
Size commands allow you to resize an object as you see fit.
Shared commands
These commands are available in all StepMania versions since StepMania 3.9.
| Command | Arguments | Example | Effect |
|---|---|---|---|
zoom
| Float | zoom,2
| Defines how much the object will be stretched as a whole. the zoom is based on its width and multiplied. |
zoomx
| Float | zoomx,2
| Defines how much the object will be on the X axis only. |
zoomy
| Float | zoomy,2
| Defines how much the object will be on the Y axis only. |
zoomz
| Float | zoomz,2
| Defines how much the object will be stretched on the Z axis only. This is only useful for models as graphics and textures do not have Z depth. |
zoomtowidth
| Float | zoomtowidth,64
| Stretch the object on its X axis to match this pixel width. |
zoomtoheight
| Float | zoomtoheight,64
| Stretch the object on its Y axis to match this pixel height. |
stretchto
| Float(X), Float(Y) | stretchto,128,128
| Stretch the object to these values. Shrinking will not occur with this command if the values are smaller than the object itself. |
cropleft
| Float | cropleft,0.5<code>
| Crops the left side of the object by this percentage. 0.5 would designate half of the object. |
| <code>cropright | Float | cropright,0.5
| Crops the right side of the object by this percentage. 0.5 would designate half of the object. |
cropbottom
| Float | cropbottom,0.5
| Crops the bottom side of the object by this percentage. 0.5 would designate half of the object. |
croptop
| Float | croptop,0.5
| Crops the top side of the object by this percentage. 0.5 would designate half of the object. |
scaletocover
| Float(X),Float(Y) | scaletocover,256,80
| Scales the object to either shrink or enlarge to meet the co-ordinates. this will not crop the sides to match the co-ordinate. |
scaletofit
| Float(X),Float(Y) | scaletofit,256,80
| Scales the object to either shrink or enlarge to meet the co-ordinates. the object will be cropped on any edge to meet the co-ordinate size. |

