From 60874b3743af181e712ea3103598399ed684b0a8 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 22 Mar 2008 02:56:30 +0000 Subject: [PATCH] simplify now that we can call zoomto* --- stepmania/Themes/default/metrics.ini | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index b28069cc99..127894b557 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -4417,23 +4417,19 @@ MeterSetCommand=%function(self,param) self:diffuse(DifficultyAndStepsTypeToColor ; a simple bar life meter: ; PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) local native_width=32; local zoomed_width=12; self:zoomx(zoomed_width/native_width); self:x((itemIndex-(numItems/2))*zoomed_width); end PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \ - local native_width=32; \ - local native_height=32; \ local zoomed_width=28; \ local zoomed_height=9; \ local spacing_x=11.3; \ - self:zoomx(zoomed_width/native_width); \ - self:zoomy(zoomed_height/native_height); \ + self:zoomtoheight(zoomed_height); \ self:x((itemIndex-(numItems/2))*spacing_x); \ local zoomed_width=0; \ if (itemIndex % 2) == 0 then \ - zoomed_width=24; \ + self:zoomtowidth(24); \ self:rotationz(90); \ else \ - zoomed_width=31; \ + self:zoomtowidth(31); \ self:rotationz(-58); \ end; \ - self:zoomx(zoomed_width/native_width); \ end TextureCoordScaleX=10 NumPills=20