Posted 17 February 2013 - 06:51 PM
Nothing too special, but I did spent a decent part of today writing this little program.
One of the things I'm proud of is the customization ability of the layout and colors.
Places that are specifically designed to allow customization :
1. The button locations. There is a table at the top which contains coordinates for each button,
including the display. Any valid screen location is fine for any button.
2. Colors of the buttons and text. Simple couple of variables at the top set to values from the colors table.
3. onSuccess and onFail functions for doing things depending on if the code is valid or not.
This allows the code to function for different tasks, like making this program necessary to unlock a terminal.
For me, I have this hooked up to a door, that opens on correct, and pistons that push up portal gun mod turrets up on incorrect.
These functions have been left blank in the pastebin.
Pictures of a 'default' layout
Pastebin link
http://pastebin.com/2cvdi85C
I hope the code is semi-readable, go ahead and suggest on how to make it better. :)/>
Enjoy,
~Sora
One of the things I'm proud of is the customization ability of the layout and colors.
Places that are specifically designed to allow customization :
1. The button locations. There is a table at the top which contains coordinates for each button,
including the display. Any valid screen location is fine for any button.
2. Colors of the buttons and text. Simple couple of variables at the top set to values from the colors table.
3. onSuccess and onFail functions for doing things depending on if the code is valid or not.
This allows the code to function for different tasks, like making this program necessary to unlock a terminal.
For me, I have this hooked up to a door, that opens on correct, and pistons that push up portal gun mod turrets up on incorrect.
These functions have been left blank in the pastebin.
Pictures of a 'default' layout
Spoiler
Pastebin link
http://pastebin.com/2cvdi85C
I hope the code is semi-readable, go ahead and suggest on how to make it better. :)/>
Enjoy,
~Sora