Advertisement
Jousway

my terrible code

Jan 21st, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. metric.ini
  2.  
  3. #editing this is a pain in the ass, ask for help on stepmania irc or the forum.
  4. ScrollerTransform=function(self,offset,itemIndex,numItems) \
  5.     if itemIndex > 2 then yoffset = 192; xoffset = SCREEN_RIGHT-10  else yoffset = 0; xoffset = SCREEN_LEFT+10 end; \
  6.     self:y(64*(itemIndex-(2-1)/2)-yoffset):x(xoffset):halign(0); \
  7. end
  8.  
  9. #defining GameStart
  10. #want to go directly to select music
  11. ChoiceGameStart="applydefaultoptions;style,"..SelectStyle()..";text,"..SelectStyle()..";screen,ScreenProfileLoad"
  12. ChoiceTest="applydefaultoptions;style,"..SelectStyle2()..";text,"..SelectStyle2()..";screen,ScreenProfileLoad"
  13.  
  14. gamestart.lua
  15.  
  16. local curgame = GAMESTATE:GetCurrentGame():GetName();
  17.  
  18. sets2 = {
  19.     dance = 5, -- solo
  20.     pump = 4, -- double
  21.     kb7 = 2, -- versus
  22.     beat = 4, -- 7 key
  23.     popn = 2, -- 9 key
  24. }
  25.  
  26. SelectStyle = function()
  27.     local style = GAMEMAN:GetStylesForGame(curgame)[1]:GetName()
  28.     return style
  29. end
  30.  
  31. SelectStyle2 = function()
  32.     local style2 = GAMEMAN:GetStylesForGame(curgame)[sets2[curgame]]:GetName()
  33.     --local style2 = GAMEMAN:GetStylesForGame(curgame)[2]:GetName()
  34.     return style2
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement