simplify now that we can call zoomto*

This commit is contained in:
Chris Danford
2008-03-22 02:56:30 +00:00
parent b83972c6f6
commit 60874b3743
+3 -7
View File
@@ -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