Hi all, I want to have a password lock for the developer menu, like in Bingo. Any help would be appreciated. I want to incorporate this in Scraft.
If anyone helps they will get credit in Scraft, and lots of thanks.
EDIT: 900th post!
Last edited by gbear605 (2011-05-09 19:02:04)
Offline
I'm sure LS97 knows.
Offline
I'm sure Jens knows too.
Or it could be Panther's owner who knows.
Offline
Just do.
enterPass: Pass
Pass = 'password'
ifTrue: [
open menu code
].
Offline
you'll have to get the value from a dialog and check if it's correct.
declare 'res' first.
res _ StringDialog ask: 'Enter Password'.
(res = 'password') ifFalse: [^ self beep].
add that code just after adding all of the menu items, and it should work!
Offline
Thanks to both of you, it works
Offline
Remember you have to leave your mod open source. So you must give the pass out to people,
Offline