![]() |
dialog question - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: dialog question (/Thread-dialog-question) Pages: 1 2 |
dialog question - Rattlehead - 09-29-2013 09:09 PM is there a way to reload the data on a dialog without closing it and reopening it? RE: dialog question - XuN - 09-29-2013 09:12 PM I'm pretty sure that client doesn't allow this, but I hope to be wrong. RE: dialog question - Mordaunt - 09-29-2013 10:33 PM None that I am aware of RE: dialog question - Extreme - 09-29-2013 10:46 PM (09-29-2013 09:09 PM)Rattlehead Wrote: is there a way to reload the data on a dialog without closing it and reopening it?No. :/ RE: dialog question - Rattlehead - 09-30-2013 10:02 AM and seems i just found out the hard way that lists are global like vars? i cant find anything documented that hints at such either RE: dialog question - Mordaunt - 09-30-2013 12:16 PM Indeed they are, so you should always make sure your lists are unique RE: dialog question - Rattlehead - 09-30-2013 04:05 PM well, i assume i could use dialoglist in a for loop for <src.dialoglist.count> if (<src.dialoglist.<local._for>> == d_dialog) src.dialogclose d_dialog src.dialog d_dialog endif endfor but apparently i dont know how to find the id of the dialog, i thought it would had meant the dialogs name when it said dialoglist.n.ID RE: dialog question - Mordaunt - 09-30-2013 08:30 PM Code: if <list.xxx.count> no for loop needed to check the list. You should make sure that your list is unique also... e.g. list.<src.uid>_mysuperlist What exactly are you doing with it though? RE: dialog question - Rattlehead - 09-30-2013 10:08 PM i think ur getting list and dialoglist confused http://wiki.sphere.torfo.org/index.php/DIALOGLIST basically i need to check to see if they have the dialog open, and if so, close it, reopen it. RE: dialog question - Mordaunt - 09-30-2013 10:10 PM I think you're right.... I need my 2nd coffee clearly. First time I have seen this actually, there's so little on it in revisions or in the wiki Code: Added DIALOGLIST keyword. DIALOGLIST.COUNT gives the number of open gump dialogs, I can only guess that it runs in a similar manner as LIST though given it also uses .COUNT I'll have to have a play with that. |