Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this is the worst code in the history of stepmania, just because there is no toboolean, nor cmd("") with string support or Command("","");
- function StringToCmd(self, CallFunction, t1, t2)
- for c in string.gmatch(CallFunction(t1,t2), "(.-);*") do
- if not string.find(c, "#") then
- b = string.match(c, "(w-),");
- b2 = string.match(c, "w-,(w-)");
- b3 = string.match(c, "w-,w-,(w-)");
- b4 = string.match(c, "w-,w-,w-,(w-)");
- b5 = string.match(c, "w-,w-,w-,w-,(w-)");
- if b == "accelerate" then --accelerate
- self:accelerate(b2);
- elseif b == "addrotationx" then --addrotationx
- self:addrotationx(b2);
- elseif b == "addrotationy" then --addrotationy
- self:addrotationy(b2);
- elseif b == "addrotationz" then --addrotationz
- self:addrotationz(b2);
- elseif b == "addx" then --addx
- self:addx(b2);
- elseif b == "addy" then --addy
- self:addy(b2);
- elseif b == "addz" then --addz
- self:addz(b2);
- elseif b == "align" then --align
- self:align(b2,b3);
- elseif b == "animate" then --animate
- self:animate(b2);
- elseif b == "aux" then --aux
- self:aux(b2);
- elseif b == "backfacecull" then --backfacecull
- self:backfacecull(b2);
- elseif b == "basealpha" then --basealpha
- self:basealpha(b2);
- elseif b == "baserotationx" then --baserotationx
- self:baserotationx(b2);
- elseif b == "baserotationy" then --baserotationy
- self:baserotationy(b2);
- elseif b == "baserotationz" then --baserotationz
- self:baserotationz(b2);
- elseif b == "basezoom" then --basezoom
- self:basezoom(b2);
- elseif b == "basezoomx" then --basezoomx
- self:basezoomx(b2);
- elseif b == "basezoomy" then --basezoomy
- self:basezoomy(b2);
- elseif b == "basezoomz" then --basezoomz
- self:basezoomz(b2);
- elseif b == "bezier" then --bezier
- self:bezier();
- elseif b == "blend" then --blend
- self:blend( BlendMode mode )
- elseif b == "bob" then --bob
- self:bob();
- elseif b == "bounce" then --bounce
- self:bounce();
- elseif b == "bouncebegin" then --bouncebegin
- self:bouncebegin(b2);
- elseif b == "bounceend" then --bounceend
- self:bounceend(b2);
- elseif b == "Center" then --Center
- self:Center();
- elseif b == "CenterX" then --CenterX
- self:CenterX();
- elseif b == "CenterY" then --CenterY
- self:CenterY();
- elseif b == "clearzbuffer" then --clearzbuffer
- self:clearzbuffer(b2);
- elseif b == "compound" then --compound
- b3 = string.match(c, "w-,w-,(.+)");
- self:compound(b2,b3);
- elseif b == "cropbottom" then --cropbottom
- self:cropbottom(b2);
- elseif b == "cropleft" then --cropleft
- self:cropleft(b2);
- elseif b == "cropright" then --cropright
- self:cropright(b2);
- elseif b == "croptop" then --croptop
- self:croptop(b2);
- elseif b == "cullmode" then --cullmode
- self:cullmode(b2);
- elseif b == "decelerate" then --decelerate
- self:decelerate(b2);
- elseif b == "delseiffuse" then --delseiffuse
- self:delseiffuse(b2);
- elseif b == "delseiffusealpha" then --delseiffusealpha
- self:delseiffusealpha(b2);
- elseif b == "delseiffuseblink" then --delseiffuseblink
- self:delseiffuseblink(b2);
- elseif b == "delseiffusebottomedge" then --delseiffusebottomedge
- self:delseiffusebottomedge(b2);
- elseif b == "delseiffusecolor" then --delseiffusecolor
- self:delseiffusecolor(b2);
- elseif b == "delseiffuseleftedge" then --delseiffuseleftedge
- self:delseiffuseleftedge(b2);
- elseif b == "delseiffuselowerleft" then --delseiffuselowerleft
- self:delseiffuselowerleft(b2);
- elseif b == "delseiffuselowerright" then --delseiffuselowerright
- self:delseiffuselowerright(b2);
- elseif b == "delseiffuseramp" then --delseiffuseramp
- self:delseiffuseramp();
- elseif b == "delseiffuserightedge" then --delseiffuserightedge
- self:delseiffuserightedge(b2);
- elseif b == "delseiffuseshelseift" then --delseiffuseshelseift
- self:delseiffuseshelseift();
- elseif b == "delseiffusetopedge" then --delseiffusetopedge
- self:delseiffusetopedge(b2);
- elseif b == "delseiffuseupperleft" then --delseiffuseupperleft
- self:delseiffuseupperleft(b2);
- elseif b == "delseiffuseupperright" then --delseiffuseupperright
- self:delseiffuseupperright(b2);
- elseif b == "Draw" then --Draw
- self:Draw();
- elseif b == "draworder" then --draworder
- self:draworder(b2);
- elseif b == "drop" then --drop
- self:drop(b2);
- elseif b == "ease" then --ease
- self:ease(b2,b3);
- elseif b == "effectclock" then --effectclock
- self:effectclock(b2);
- elseif b == "effectcolor1" then --effectcolor1
- self:effectcolor1(b2);
- elseif b == "effectcolor2" then --effectcolor2
- self:effectcolor2(b2);
- elseif b == "effectmagnitude" then --effectmagnitude
- self:effectmagnitude(b2,b3,b4);
- elseif b == "effectoffset" then --effectoffset
- self:effectoffset(b2);
- elseif b == "effectperiod" then --effectperiod
- self:effectperiod(b2);
- elseif b == "effecttiming" then --effecttiming
- self:effecttiming(b2,b3,b4,b5)
- elseif b == "fadebottom" then --fadebottom
- self:fadebottom(b2);
- elseif b == "fadeleft" then --fadeleft
- self:fadeleft(b2);
- elseif b == "faderight" then --faderight
- self:faderight(b2);
- elseif b == "fadetop" then --fadetop
- self:fadetop(b2);
- elseif b == "finishtweening" then --finishtweening
- self:finishtweening();
- elseif b == "FullScreen" then --FullScreen
- self:FullScreen();
- elseif b == "glow" then --glow
- self:glow(b2);
- elseif b == "glowblink" then --glowblink
- self:glowblink();
- elseif b == "glowramp" then --glowramp
- self:glowramp();
- elseif b == "glowshelseift" then --glowshelseift
- self:glowshelseift();
- elseif b == "halign" then --halign
- self:halign(b2);
- elseif b == "heartbeat" then --heartbeat
- self:heartbeat(b2);
- elseif b == "hibernate" then --hibernate
- self:hibernate(b2);
- elseif b == "hide_if" then --hide_if
- self:hide_if(b2);
- elseif b == "horizalign" then --horizalign
- self:horizalign(b2);
- elseif b == "hurrytweening" then --hurrytweening
- self:hurrytweening(b2);
- elseif b == "linear" then --linear
- self:linear(b2);
- elseif b == "MaskDest" then --MaskDest
- self:MaskDest();
- elseif b == "MaskSource" then --MaskSource
- self:MaskSource();
- elseif b == "pause" then --pause
- self:pause();
- elseif b == "play" then --play
- self:play();
- elseif b == "player" then --player
- self:player(b2);
- elseif b == "pulse" then --pulse
- self:pulse();
- elseif b == "rainbow" then --rainbow
- self:rainbow();
- elseif b == "Real" then --Real
- self:Real(b2);
- elseif b == "RealInverse" then --RealInverse
- self:RealInverse(b2);
- elseif b == "rotationx" then --rotationx
- self:rotationx(b2);
- elseif b == "rotationy" then --rotationy
- self:rotationy(b2);
- elseif b == "rotationz" then --rotationz
- self:rotationz(b2);
- elseif b == "scale_or_crop_background" then --scale_or_crop_background
- self:scale_or_crop_background();
- elseif b == "scaletocover" then --scaletocover
- self:scaletocover(b2,b3,b4,b5);
- elseif b == "scaletofit" then --scaletofit
- self:scaletofit(b2,b3,b4,b5);
- elseif b == "SetHeight" then --SetHeight
- self:SetHeight(b2);
- elseif b == "SetSize" then --SetSize
- self:SetSize(b2,b3);
- elseif b == "setsize" then --setsize
- self:setsize(b2,b3);
- elseif b == "setstate" then --setstate
- self:setstate(b2);
- elseif b == "SetTextureFiltering" then --SetTextureFiltering
- self:SetTextureFiltering(b2);
- elseif b == "SetWidth" then --SetWidth
- self:SetWidth(b2);
- elseif b == "shadowcolor" then --shadowcolor
- self:shadowcolor(b2);
- elseif b == "shadowlength" then --shadowlength
- self:shadowlength(b2);
- elseif b == "shadowlengthx" then --shadowlengthx
- self:shadowlengthx(b2);
- elseif b == "shadowlengthy" then --shadowlengthy
- self:shadowlengthy(b2);
- elseif b == "skewx" then --skewx
- self:skewx(b2);
- elseif b == "skewy" then --skewy
- self:skewy(b2);
- elseif b == "sleep" then --sleep
- self:sleep(b2);
- elseif b == "smooth" then --smooth
- self:smooth(b2);
- elseif b == "spin" then --spin
- self:spin();
- elseif b == "stopeffect" then --stopeffect
- self:stopeffect();
- elseif b == "stoptweening" then --stoptweening
- self:stoptweening();
- elseif b == "stretchto" then --stretchto
- self:stretchto(b2,b3,b4,b5);
- elseif b == "texturewrapping" then --texturewrapping
- self:texturewrapping(b2);
- elseif b == "thump" then --thump
- self:thump(b2);
- elseif b == "valign" then --valign
- self:valign(b2);
- elseif b == "vertalign" then --vertalign
- self:vertalign(b2);
- elseif b == "vibrate" then --vibrate
- self:vibrate();
- elseif b == "visible" then --visible
- self:visible(b2);
- elseif b == "wag" then --wag
- self:wag();
- elseif b == "x" then --x
- self:x(b2);
- elseif b == "xy" then --xy
- self:xy(b2);
- elseif b == "y" then --y
- self:y(b2);
- elseif b == "z" then --z
- self:z(b2);
- elseif b == "zbias" then --zbias
- self:zbias(b2);
- elseif b == "zbuffer" then --zbuffer
- self:zbuffer(b2);
- elseif b == "zoom" then --zoom
- self:zoom(b2);
- elseif b == "zoomto" then --zoomto
- self:zoomto(b2,b3);
- elseif b == "zoomtoheight" then -- zoomtoheight
- self:zoomtoheight(b2);
- elseif b == "zoomtowidth" then --zoomtowidth
- self:zoomtowidth(b2);
- elseif b == "zoomx" then --zoomx
- self:zoomx(b2);
- elseif b == "zoomy" then --zoomy
- self:zoomy(b2);
- elseif b == "zoomz" then --zoomz
- self:zoomz(b2);
- elseif b == "ztest" then --ztest
- self:ztest(b2);
- elseif b == "ztestmode" then --ztestmode
- self:ztestmode(b2);
- elseif b == "zwrite" then --zwrite
- self:zwrite(b2);
- end;
- end;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement