home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Encyklopedia Omnia
/
Planeta.iso
/
data
/
f_panel.dir
/
00014_Script_toggleBehavior
< prev
next >
Wrap
Text File
|
2000-11-09
|
1KB
|
33 lines
property function, index
global gValueList, gIndiceCategoria, gFirstListedParam, gExactList
on mouseUp
-- aggiorna gValueList, se il tasto Φ attivo
set p = "c" & string(gIndiceCategoria) & "p" & string(index+gFirstListedParam-1)
if voidP(getaProp(gValueList, p)) then exit
puppetSound 1, "switch"
setProp gValueList, p, function
if function = #On then
set ledLoc = value(line index of the text of field "LedPosOn")
else
set ledLoc = value(line index of the text of field "LedPosOff")
end if
set ns = 30 + index - 1
set the loc of sprite ns to ledLoc
updateStage
-- controlla se la lista Φ esatta
if gValueList = gExactList then go "OK"
end
on getPropertyDescriptionList
set p_list = [#function:[#comment:"Funzione:",¼
#format: #string, #default: #On, #range: [#On, #Off]],¼
#index:[#comment:"Numero del parametro:",¼
#format: #integer, #default: 0, #range: 1,4]]
return p_list
end