[L2Ork-dev] How to detect whether canvas contains a toplevel array

Jonathan Wilkes jon.w.wilkes at gmail.com
Wed Jun 17 22:04:35 EDT 2020


On Wed, Jun 17, 2020 at 9:21 PM Ivica Ico Bukvic <ico at vt.edu> wrote:
>
>
> On 6/16/2020 9:16 PM, Jonathan Wilkes wrote:
> >
> >> If not, what may be the easiest way to
> >> pass this along from the backend? New global var array?
> > For now that seems to be the case.
> >
> > Hm, this may need to trigger another round to "de-tcl-fy" the
> > frontend. There are global vars sprinkled all around pdgui.js
> > and we need a single place to get and set them.
> >
> > Might be able to just steal from jquery:
> >
> > gui(cid).prop("editmode") to get the value
> > gui(cid).prop("editmode", true) to set it
> >
> > What do you think?
> >
> > -Jonathan
> >
> I like the idea. I also just added toplevel_scalars[cid] global var
> array that checks for toplevel arrays. This will be necessary anyhow
> when we transition to having more independent gui operations and is used
> in a number of contexts.

Yeah that sounds fine for now. If we move to the jquery style I'll just scoop
that up with the rest of them. (As an aside it looks like a lot of the
others aren't
used.)

-Jonathan

>
> Best,
>
> Ico
>


More information about the L2Ork-dev mailing list