@@ -80,7 +80,8 @@ while (!rl.WindowShouldClose())
8080 droppedFiles = rl.LoadDroppedFiles ()
8181
8282 rem Supports loading .rgs style files (text or binary) and .png style palette images
83- if (rl.IsFileExtension(droppedFiles.paths [0 ], ".txt.rae" )) then
83+ if (rl.IsFileExtension (droppedFiles.paths[0 ], " .rae" )) then
84+ print " loading dropped file"
8485 rl.UnloadAutomationEventList (aelist )
8586 aelist = rl.LoadAutomationEventList (droppedFiles.paths[0 ])
8687
@@ -93,9 +94,10 @@ while (!rl.WindowShouldClose())
9394
9495 reset_player ()
9596 reset_camera ()
97+ else
98+ print " Dropped file is invalid: " ; droppedFiles.paths[0 ]
9699 endif
97-
98- rl.UnloadDroppedFiles(droppedFiles) ' Unload filepaths from memory
100+ ' UnloadDroppedFiles called as part of Loaddroppedfiles
99101 endif
100102
101103 REM Update player
@@ -250,13 +252,13 @@ while (!rl.WindowShouldClose())
250252 rl.DrawCircle (30 , 175 , 10 , c.MAROON )
251253 if (((frameCounter /15 )%2 ) == 1 ) then
252254 rl.DrawText (rl.TextFormat (" RECORDING EVENTS... [%i]" , aelist.count ), 50 , 170 , 10 , c.MAROON )
253- else if (eventPlaying) then
254- rl.DrawRectangle( 10 , 160 , 290 , 30 , rl.fade(c.LIME, 0 . 3 ))
255- rl.DrawRectangleLines ( 10 , 160 , 290 , 30 , rl.fade(c.DARKGREEN , 0 . 8 ))
256- rl.DrawTriangle( [ 20 , 155 + 10 ] , [ 20 , 155 + 30 ] , [ 40 , 155 + 20 ] , c.DARKGREEN)
257- if (((frameCounter/ 15 ) % 2 ) == 1 ) then
258- rl.DrawText(rl.TextFormat( "PLAYING RECORDED EVENTS... [%i]" , currentPlayFrame), 50 , 170 , 10 , c.DARKGREEN)
259- endif
255+ endif
256+ else if ( eventPlaying ) then
257+ rl.DrawRectangle (10 , 160 , 290 , 30 , rl.fade (c.LIME , 0.3 ))
258+ rl.DrawRectangleLines ( 10 , 160 , 290 , 30 , rl. fade ( c.DARKGREEN, 0.8 ) )
259+ rl. DrawTriangle ([ 20 , 155 + 10 ], [ 20 , 155 + 30 ], [ 40 , 155 + 20 ], c. DARKGREEN )
260+ if ((( frameCounter / 15 )% 2 ) == 1 ) then
261+ rl. DrawText (rl. TextFormat ( " PLAYING RECORDED EVENTS... [%i] " , currentPlayFrame ), 50 , 170 , 10 , c. DARKGREEN )
260262 endif
261263 endif
262264 rl.EndDrawing ()
0 commit comments