home *** CD-ROM | disk | FTP | other *** search
- on NamenEingebenKeyDown num
- if the key = RETURN then
- dontPassEvent()
- else
- pass()
- end if
- end
-
- on NamenEingebenkeyUp num
- global gNoPlayers
- set fAllOk to 1
- repeat with i = 1 to gNoPlayers
- if the text of member ("NameField" & i) = EMPTY then
- set fAllOk to 0
- end if
- end repeat
- if fAllOk then
- repeat with i = 1 to gNoPlayers
- repeat with j = 1 to gNoPlayers
- if i <> j then
- if the text of member ("NameField" & i) = the text of member ("NameField" & j) then
- set fAllOk to 0
- end if
- end if
- end repeat
- end repeat
- end if
- if fAllOk and (the visible of sprite 5 = 0) then
- set the visible of sprite 5 to 1
- SpriteCursor(5, ["CursorFinger", "CursorFingerMask"])
- end if
- if not fAllOk and (the visible of sprite 5 = 1) then
- set the visible of sprite 5 to 0
- SpriteCursor(5, 0)
- end if
- end
-
- on NamenEingebenMouseUp num
- set the editable of member ("NameField" & num) to 1
- end
-