Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --still a hackjob!
- --I really cant lua like the SSC :<
- local t = Def.ActorFrame {
- Def.ActorFrame{
- Name="Container";
- LoadFont("Common Normal") .. {
- Text="Taps\nJumps\nHolds\nMines\n";
- InitCommand=cmd(horizalign,left;x,-150;diffuse,color("1,1,1,1.8"));
- };
- LoadFont("Common Normal") .. {
- Name="Values1";
- InitCommand=cmd(horizalign,left;x,-50;diffuse,color("1,1,1,1.8"));
- };
- LoadFont("Common Normal") .. {
- Text="Hands\nRolls\nLifts\nFakes\n";
- InitCommand=cmd(horizalign,left;x,50;diffuse,color("1,1,1,1.8"));
- };
- LoadFont("Common Normal") .. {
- Name="Values2";
- InitCommand=cmd(horizalign,left;x,150;diffuse,color("1,1,1,1.8"));
- };
- };
- };
- local function Update(self)
- local song = GAMESTATE:GetCurrentSong();
- local function Radar(pn,cat)
- local GetRadar = GAMESTATE:GetCurrentSteps(pn):GetRadarValues(pn);
- return GetRadar:GetValue(cat);
- end;
- Con = self:GetChild("Container");
- Values1 = self:GetChild("Container"):GetChild("Values1");
- Values2 = self:GetChild("Container"):GetChild("Values2");
- if song then
- if GAMESTATE:GetCurrentSteps(PLAYER_1) then
- Con:visible(true);
- Values1:settext(Radar(PLAYER_1,'RadarCategory_TapsAndHolds').."\n"..Radar(PLAYER_1,'RadarCategory_Jumps').."\n"..Radar(PLAYER_1,'RadarCategory_Holds').."\n"..Radar(PLAYER_1,'RadarCategory_Mines').."\n");
- Values2:settext(Radar(PLAYER_1,'RadarCategory_Hands').."\n"..Radar(PLAYER_1,'RadarCategory_Rolls').."\n"..Radar(PLAYER_1,'RadarCategory_Lifts').."\n"..Radar(PLAYER_1,'RadarCategory_Fakes').."\n");
- else
- Con:visible(false);
- end;
- else
- Con:visible(false);
- end;
- end;
- t.InitCommand=cmd(SetUpdateFunction,Update);
- return t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement