[L2Ork-dev] How to detect whether canvas contains a toplevel array
Ivica Ico Bukvic
ico at vt.edu
Wed Jun 17 21:20:56 EDT 2020
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.
Best,
Ico
More information about the L2Ork-dev
mailing list