Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Insert this somewhere in your simfile's default.xml, preferably before the last line: </children></ActorFrame> -->
- <!-- Additionally, add the line debug_show = true; in the default.xml in order to make this show -->
- <!-- Also, If you want to change the CVal, add custval = '~yourcodeheeeere~'; somewhere in your default.xml -->
- <!-- 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. -->
- <!-- 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 -->
- <!-- Also, don't copy all the previous text into your file, It's not necessary -->
- <!--Display Seconds-->
- <BitmapText
- Font="Common Normal"
- Text="Seconds"
- InitCommand="draworder,100000"
- 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"
- GetTimeCommand="%function(self)
- if debug_show == true then
- self:hidden(0);
- end
- self:settext('Secs: ' ..((math.floor((self:GetSecsIntoEffect())*1000))/1000));
- self:sleep(0.02);
- self:queuecommand('GetTime');
- end"
- />
- <!--Display Beat-->
- <BitmapText
- Font="Common Normal"
- Text="Beat"
- InitCommand="draworder,100000"
- 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"
- GetBeatCommand="%function(self)
- if debug_show == true then
- self:hidden(0);
- end
- self:settext('Beat: ' ..((math.floor((GAMESTATE:GetSongBeat())*1000))/1000));
- self:sleep(0.02);
- self:queuecommand('GetBeat');
- end"
- />
- <!--Display Auxvar value-->
- <BitmapText
- Font="Common Normal"
- Text="Auxvar"
- InitCommand="draworder,100000"
- 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"
- GetValueCommand="%function(self)
- if debug_show == true then
- self:hidden(0);
- end
- if auxvar then
- self:settext('Auxv: ' ..((math.floor((auxvar:getaux())*1000))/1000));
- end
- self:sleep(0.02);
- self:queuecommand('GetValue');
- end"
- />
- <!--Display Current FGChange-->
- <BitmapText
- Font="Common Normal"
- Text="FGChange"
- InitCommand="draworder,100000"
- 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"
- GetFGCommand="%function(self)
- if debug_show == true then
- self:hidden(0);
- end
- if fgcurcommand then
- self:settext('FGCh: ' ..fgcurcommand);
- end
- self:sleep(0.02);
- self:queuecommand('GetFG');
- end"
- />
- <!--Display Custom value (Search custval to change)-->
- <BitmapText
- Font="Common Normal"
- Text="Custom Value"
- InitCommand="draworder,100000"
- 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"
- GetValCommand="%function(self)
- if debug_show == true then
- self:hidden(0);
- end
- if custval then
- self:settext('CVal: ' ..tostring(custval));
- if custval == '' then
- self:hidden(1);
- end
- end
- self:sleep(0.02);
- self:queuecommand('GetVal');
- end"
- />
Advertisement
Add Comment
Please, Sign In to add comment