SphereCommunity
Resend Dialog - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Resend Dialog (/Thread-Resend-Dialog)

Pages: 1 2


RE: Resend Dialog - Staff_Stanic - 05-10-2014 04:16 AM

Please, explain what you want to do...


RE: Resend Dialog - MirroR - 05-10-2014 04:22 AM

See dialog box is updated explicitly. http://www.youtube.com/watch?v=o9JiT-TLPJc
and with a single touch.


RE: Resend Dialog - Staff_Stanic - 05-10-2014 04:47 AM

Okay, try something like that:
Code:
[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>

button 10 35 4005 4006 1 0 1
dhtmlgump 45 36 100 25 0 0 <def.bfont_white>CLEAN

IF !(<TAG0.Cannon_Clean>)
dhtmlgump 105 36 100 25 0 0 <def.bfont_lred>Dirty
ELIF (<TAG0.Cannon_Clean> == 1)
dhtmlgump 105 36 100 25 0 0 <def.bfont_lyellow>Cleaning...
ELSE
dhtmlgump 105 36 100 25 0 0 <def.bfont_lgreen>Clean
ENDIF


[DIALOG d_boatpvpm BUTTON]
ON=1
IF (<TAG0.Cannon_Clean> == 1)
SRC.SYSMESSAGE @,,1 Wait! The Cannon is being cleaned!
ELIF (<TAG0.Cannon_Clean> == 2)
SRC.SYSMESSAGE @,,1 The Cannon is already cleaned!
ELSE
TAG.Cannon_Clean=1
TIMERF 3,TAG.Cannon_Clean=2
SRC.TIMERF 3,SyncDialog_boatpvpm <UID>
ENDIF
SDIALOG d_boatpvpm

[FUNCTION SyncDialog_boatpvpm]
TRYSRC <UID> SRC.DIALOGCLOSE d_boatpvpm
TRYSRC <UID> UID.<ARGS>.DIALOG d_boatpvpm

If dosen't work, change the TRYSRC in SyncDialog_boatpvpm


RE: Resend Dialog - MirroR - 05-11-2014 01:17 AM

Nice work, thank you. it works very well.