SharpScratchMod / Sharp

Sharp Scratch Mod - In Development!
http://sharpscratchmod.github.io
GNU General Public License v2.0
7 stars 2 forks source link

Revert "Revert "Fully Implement Custom Reporters"" #14

Closed Mrcomputer1 closed 8 years ago

Mrcomputer1 commented 8 years ago

Reverts SharpScratchMod/Sharp#13

Mrcomputer1 commented 8 years ago

I think I know what to do to fix there was no conflict. DO NOT PUSH ANYTHING TO MASTER!

@DrKat123

Mrcomputer1 commented 8 years ago

Fixed!

It now is b[*] instead interp.*arg(b, *) for accessing arg and b:Array instead of b:Block in the prim function

Mrcomputer1 commented 8 years ago

Waiting for test....

NoMod-Programming commented 8 years ago

But if an argument NEEDS to be a number, as in the case of this block, just make sure that you use interp.numarg(b[*])

Mrcomputer1 commented 8 years ago

Ok I didn't do that with the block I fixed (That DrKat added before merging) Waiting for tests...

NoMod-Programming commented 8 years ago

Alright, and because custom booleans can report strings and numbers too, just make sure to use interp.boolarg(b[*]) whenever needed to convert an argument to a boolean. Congratulations on custom reporters in Sharp!

Mrcomputer1 commented 8 years ago

Ok

Thanks for doing custom reporters @NoMod-Programming. I will add you to the credit screen soon.