simplify now that we can call zoomto*
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user