home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Encyklopedia Omnia
/
Planeta.iso
/
data
/
f_panel.dir
/
00008_Script_updatePanel
< prev
next >
Wrap
Text File
|
2000-11-09
|
1KB
|
47 lines
on updatePanel
global gIndiceCategoria, gFirstListedParam, gValueList, gMaxParam
repeat with i = 0 to 3
-- mostra le etichette
set ns = 20 + i
set etic = "c" & string(gIndiceCategoria) & "p" & string(i+gFirstListedParam)
set the member of sprite ns to member etic
-- disattiva gli schermi e aggiorna i LED
set ns = 25 + i
set valore = getAprop(gValueList, etic)
if valore <> 0 then
set the loc of sprite ns to point(-1000, -1000)
case valore of
#on:
set ledLoc = value(line (i+1) of the text of field "LedPosOn")
set the loc of sprite (30+i) to ledLoc
#off:
set ledLoc = value(line (i+1) of the text of field "LedPosOff")
set the loc of sprite (30+i) to ledLoc
#void:
set the loc of sprite (30+i) to point(-1000, -1000)
end case
else
set the loc of sprite (30+i) to point(-1000, -1000)
set shieldLoc = value(line (i+1) of the text of field "shieldPos")
set the loc of sprite ns to shieldLoc
end if
end repeat
-- aggiorna le freccie di scroll
if gFirstListedParam = 1 then
set the visible of sprite 7 to 0
else
set the visible of sprite 7 to 1
end if
if gFirstListedParam = gMaxParam then
set the visible of sprite 8 to 0
else
set the visible of sprite 8 to 1
end if
updateStage
end