Ky_Dash

default.xml

Jun 8th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.43 KB | None | 0 0
  1. <!-- Insert this somewhere in your simfile's default.xml, preferably before the last line: </children></ActorFrame> -->
  2. <!-- Additionally, add the line debug_show = true; in the default.xml in order to make this show -->
  3. <!-- Also, If you want to change the CVal, add custval = '~yourcodeheeeere~'; somewhere in your default.xml -->
  4. <!-- Examples of things you can set CVal as: custval = (((math.floor(math.mod(beat,2)))*-2)+1); This will return either 1 or -1, depending on the beat. -->
  5. <!-- This one will display the current applied mods in a mod table, note that it can behave very awfully if not implemented correctly, so I'll link a picture in order to show where you should place this in your default.xml      http://imgur.com/a/COOkE -->
  6. <!-- Also, don't copy all the previous text into your file, It's not necessary -->
  7.  
  8. <!--Display Seconds-->
  9.     <BitmapText
  10.         Font="Common Normal"
  11.         Text="Seconds"
  12.         InitCommand="draworder,100000"
  13.         OnCommand="zoom,0.5;horizalign,left;x,(SCREEN_CENTER_X*.02);y,(SCREEN_CENTER_Y*0.07*0.5+3);effectclock,music;playcommand,GetTime;hidden,1"
  14.        
  15.         GetTimeCommand="%function(self)
  16.         if debug_show == true then
  17.             self:hidden(0);
  18.         end
  19.        
  20.         self:settext('Secs: ' ..((math.floor((self:GetSecsIntoEffect())*1000))/1000));
  21.         self:sleep(0.02);
  22.         self:queuecommand('GetTime');
  23.         end"
  24.     />
  25.    
  26.     <!--Display Beat-->
  27.     <BitmapText
  28.         Font="Common Normal"
  29.         Text="Beat"
  30.         InitCommand="draworder,100000"
  31.         OnCommand="zoom,0.5;horizalign,left;x,(SCREEN_CENTER_X*.02);y,(SCREEN_CENTER_Y*0.17*0.5+3);effectclock,music;playcommand,GetBeat;hidden,1"
  32.        
  33.         GetBeatCommand="%function(self)
  34.         if debug_show == true then
  35.             self:hidden(0);
  36.         end
  37.        
  38.         self:settext('Beat: ' ..((math.floor((GAMESTATE:GetSongBeat())*1000))/1000));
  39.         self:sleep(0.02);
  40.         self:queuecommand('GetBeat');
  41.         end"
  42.     />
  43.    
  44.     <!--Display Auxvar value-->
  45.     <BitmapText
  46.         Font="Common Normal"
  47.         Text="Auxvar"
  48.         InitCommand="draworder,100000"
  49.         OnCommand="zoom,0.5;horizalign,left;x,(SCREEN_CENTER_X*.02);y,(SCREEN_CENTER_Y*0.27*0.5+3);effectclock,music;playcommand,GetValue;hidden,1"
  50.        
  51.         GetValueCommand="%function(self)
  52.         if debug_show == true then
  53.             self:hidden(0);
  54.         end
  55.        
  56.         if auxvar then
  57.             self:settext('Auxv: ' ..((math.floor((auxvar:getaux())*1000))/1000));
  58.         end
  59.        
  60.         self:sleep(0.02);
  61.         self:queuecommand('GetValue');
  62.         end"
  63.     />
  64.    
  65.     <!--Display Current FGChange-->
  66.     <BitmapText
  67.         Font="Common Normal"
  68.         Text="FGChange"
  69.         InitCommand="draworder,100000"
  70.         OnCommand="zoom,0.5;horizalign,left;x,(SCREEN_CENTER_X*.02);y,(SCREEN_CENTER_Y*0.37*0.5+3);effectclock,music;playcommand,GetFG;hidden,1"
  71.        
  72.         GetFGCommand="%function(self)
  73.         if debug_show == true then
  74.             self:hidden(0);
  75.         end
  76.        
  77.         if fgcurcommand then
  78.             self:settext('FGCh: ' ..fgcurcommand);
  79.         end
  80.        
  81.         self:sleep(0.02);
  82.         self:queuecommand('GetFG');
  83.         end"
  84.     />
  85.    
  86.     <!--Display Custom value (Search custval to change)-->
  87.     <BitmapText
  88.         Font="Common Normal"
  89.         Text="Custom Value"
  90.         InitCommand="draworder,100000"
  91.         OnCommand="zoom,0.5;horizalign,left;vertalign,top;x,(SCREEN_CENTER_X*.02);y,(SCREEN_CENTER_Y*0.47*0.5+3);effectclock,music;playcommand,GetVal;hidden,1"
  92.        
  93.         GetValCommand="%function(self)
  94.         if debug_show == true then
  95.             self:hidden(0);
  96.         end
  97.        
  98.         if custval then
  99.             self:settext('CVal: ' ..tostring(custval));
  100.             if custval == '' then
  101.                 self:hidden(1);
  102.             end
  103.         end
  104.        
  105.         self:sleep(0.02);
  106.         self:queuecommand('GetVal');
  107.         end"
  108.     />
Advertisement
Add Comment
Please, Sign In to add comment