PC-Logix / OpenSecurity

Security addon for OpenComputers
MIT License
46 stars 24 forks source link

Magnetic card reader controllable lights #173

Closed cadergator10 closed 2 years ago

cadergator10 commented 2 years ago

This update to the mod adds two new functions to the mag reader: swipeIndicator(bool) and setLightState(int) swipeIndicator takes in a bool and sets whether the magreader automatically controlls the lights. If true, it does, if false, it doesn't. If set to false, then setLightState is useable. setLightState takes in an integer from 1 to 4. 1 is no lights, 2 is red, 3 is yellow, and 4 is green. This only works if swipeIndicator is false.

cadergator10 commented 2 years ago

I finally figured out how to get it to change the light, and through some testing, it works!

cadergator10 commented 2 years ago

In absence of any activity on this, I added a few more textures for the magnetic card reader to allow for lights to be on at the same time. Command also was changed so 0 is idle, 1 is red, 2 is yellow, and 4 is green.

cadergator10 commented 2 years ago

When will this be pulled into main repo

cadergator10 commented 2 years ago

Bumping pull request due to lots of inactivity to see if you have returned

ben-mkiv commented 2 years ago

just wanted to add that we now have an "official" build with your changes, thanks for the contribution :) https://www.curseforge.com/minecraft/mc-mods/opensecurity/files/4069429