Resend Dialog - MirroR - 05-09-2014 08:40 AM
How can you be green with a single touch. Here there is an error.
watch http://www.youtube.com/watch?v=Zf-Cwnw3P-g&feature=youtu.be
Code:
[itemdef i_dest]
id i_katana
on=@dclick
sdialog d_boatpvpm
return 1
[dialog d_boatpvpm]
150,150
resizepic 0 0 2620 225 200
dhtmlgump 0 10 225 25 0 0 <def.bfont_purple><def.center>Cannon Kontrol<def.centere>
if (<tag0.cannon_clean> < 1)
button 10 35 4005 4006 1 0 1
dhtmlgump 45 36 100 25 0 0 <def.bfont_white>Clean
else
button 10 35 4017 4018 0 0 0
dhtmlgump 45 36 100 25 0 0 <def.bfont_lgreen>Cleaning
endif
[dialog d_boatpvpm button]
on=0
if (<src.tag0.update_boatpvpm>)
sdialog d_boatpvpm
src.tag.update_boatpvpm
endif
on=1
sdialog d_boatpvpm
timerf 3,tag.cannon_clean 1
src.timerf 3,tag.update_boatpvpm 1
src.timerf 3,dialogclose d_boatpvpm
RE: Resend Dialog - Extreme - 05-09-2014 09:27 AM
"Este vídeo é privado."
This video is private.
RE: Resend Dialog - MirroR - 05-09-2014 09:38 AM
okay, try again.
RE: Resend Dialog - Staff_Stanic - 05-09-2014 10:37 AM
The problem is because when the user click Cleaning, you show the dialog before change the value of the tag.
Try like this:
Code:
ON=1
tag.update_boatpvpm 1
sdialog d_boatpvpm
RE: Resend Dialog - MirroR - 05-09-2014 10:54 AM
In this case, a second dialog box opens, and updated in the background.
I'm closing the dialog box two times.
Code:
on=1
src.tag.update_boatpvpm 1
sdialog d_boatpvpm
timerf 3,tag.cannon_clear=1
RE: Resend Dialog - MirroR - 05-10-2014 01:46 AM
Any ideas?
RE: Resend Dialog - Extreme - 05-10-2014 02:35 AM
Code:
[itemdef i_dest]
id i_katana
on=@dclick
sdialog d_boatpvpm
return 1
[dialog d_boatpvpm]
150,150
resizepic 0 0 2620 225 200
dhtmlgump 0 10 225 25 0 0 <def.bfont_purple><def.center>Cannon Kontrol<def.centere>
if (<dtag0.cannon_clean>)
button 10 35 4005 4006 1 0 1
dhtmlgump 45 36 100 25 0 0 <def.bfont_white>Clean
else
button 10 35 4017 4018 0 0 0
dhtmlgump 45 36 100 25 0 0 <def.bfont_lgreen>Cleaning
endif
[dialog d_boatpvpm button]
on=0
if (<src.tag0.update_boatpvpm>)
sdialog d_boatpvpm
src.tag.update_boatpvpm
endif
on=1
sdialog d_boatpvpm
timerf 3,tag.cannon_clean 1
timerf 3,tag.update_boatpvpm 1
timerf 3,dialogclose d_boatpvpm
timerf 3,sdialog d_boatpvpm
Try this
RE: Resend Dialog - MirroR - 05-10-2014 03:15 AM
Code:
if !(<dtag0.cannon_clean>)
button 10 35 4005 4006 1 0 1
dhtmlgump 45 36 100 25 0 0 <def.bfont_white>Clean
else
button 10 35 4017 4018 0 0 0
dhtmlgump 45 36 100 25 0 0 <def.bfont_lgreen>Cleaning
endif
[dialog d_boatpvpm button]
on=0
if (<src.tag0.update_boatpvpm>)
sdialog d_boatpvpm
src.tag.update_boatpvpm
endif
on=1
sdialog d_boatpvpm
timerf 3,tag.cannon_clean 1
timerf 3,tag.update_boatpvpm 1
timerf 3,dialogclose d_boatpvpm
timerf 3,sdialog d_boatpvpm
unfortunately didn't happen, and I do not think in such ,,anyway.
RE: Resend Dialog - XuN - 05-10-2014 03:33 AM
button 10 35 4005 4006 <qval <IsTimerf.tag.update_boatpvpm 1> ? 0 : 1> 0 1
RE: Resend Dialog - MirroR - 05-10-2014 03:41 AM
Code:
if (<tag0.cannon_clear> < 1)
dhtmlgump 45 31 100 25 0 0 <def.bfont_white>Clean
button 10 30 4005 4006 <qval <IsTimerf.tag.update_boatpvpm 1> ? 0 : 1> 0 1
else
button 10 30 4017 4018 0 0 0
dhtmlgump 45 31 100 25 0 0 <def.bfont_lgreen>Cleanning
endif
[dialog d_boatpvpm button]
on=0
if (<src.tag0.update_boatpvpm>)
sdialog d_boatpvpm
src.tag.update_boatpvpm
endif
on=1
sdialog d_boatpvpm
timerf 3,tag.cannon_clear 1
src.timerf 3,tag.update_boatpvpm 1
src.timerf 3,dialogclose d_boatpvpm
unfortunately did not happen again.
|