emmastotz / block

Block 2.0
http://block.frankiefigs.com/
0 stars 1 forks source link

add: Validation for classes start time based on before/after time X #22

Closed Frankie-Figz closed 4 years ago

Frankie-Figz commented 4 years ago

Added some if-conditionals to check if a class starts before or after a certain time.

This in turn sends an error message in the same style as when course collides.

I think this implementation is sloppy given that we are piggy-backing off the detect collision method and this in turn impedes the collision detection to happen if a time validation is broken first.

An additional thing that is missing is the ability to manually set the preferences via the user-preferences tab.