- Home /
Popup.cs selection list only supports one list?
I just tried to rewrite the example file for popup.cs (GUI selection list) with 9 buttons with selection lists.
The result is an error: the Popup.cs file triggers all the buttons to show their menu list, at the same time, when a single button is pressed.
I am abit confused by the code, is it a simple fix? should i just duplicate popup.cs to feature List1 class, List2, class, etc for 9 different copies?
I tried to rename Popup.cs to multiple copies. popup1.cs, popup2.cs etc,,, except that they use a static variables, so they share the same variable even if i duplicate them?
The other version from the Unify Wiki uses "delegates" does that mean that it can be duplicated?
Answer by drudiverse · Jun 13, 2014 at 06:50 PM
Eric5h5 original code does indeed work with multiple versions....
Solution is to duplicate the showList bool in the first line of the .js example file...
there's also a showList in teh popup.cs code so it's easy to miss that they are different variables. perhaps would be good to call either something different.
Answer by blazingr · Oct 04, 2014 at 02:49 AM
may be you can duplicate bool of yours different variables , i think that same with drudiverse ,, :)