Turning Overlays. in Developer Help
|
|
I used the search function, but couldn't find an easy answer to my problem. I can't seem to figure out how to get overlays turned, using the turn proc (applied to an icon). Using for() to look for all icons in the overlays var doesn't work.
|
That's because it isn't an ordinary list, and the items (icons) are in a special format, not an icon file or /icon object. So what you can do with it is limited, neither can you change icon snapshots already in the list.
From what I remember, what you must do in a case like this is keep track of every overlay added and removed, then when you need to turn/color/otherwise affect the overlayed icons, remake the overlays list; set it to null (shouldn't require setting it to a new list as its a special variable) then start readding overlays (now altered [ie turned]) to it based on the data you kept track of.
Though you may have missed it in your search, note that it HAS been discussed before. Try broader and different keywords in your future searches.