Wildcard processing of action targets
Submitted by Hotsen on June 29, 2006 - 15:55.
Hi Aldo,
while working on a new spi-v based project with lots(!) of hotspots we recently found out that having a wild-card processing style for action targets would be very comfortable.
It could be something like this:
<action ... target="hotspot-*" property="visible" value="false" />
<action ... target="hotspot-white-*" property="visible" value="false" />
<action ... target="hotspot-white-01" property="visible" value="false" />The first action hides all hotspots, the second action hides only the white hotspots and the last action hides only the white hotspot 01.
What do you thing?
Regards, Alex
fieldOfView | SPi-V dev
I like
simple yet powerful.
you're not going to get regular expressions any time soon though (anticipating your next question)
Update: simple wildcarding implemented in 1.3.8, which is currently in the works.
Cool
but how to use it? Can you post a small example, please?
What should the target looks like, when someone wants to hide all uielements, starting with "hotspot"?
<action .... target="hotspot-yellow-01" property="visible" value="false" />If I put target="hotspot" it says it doesn´t find "hotspot", if I put target="hotspot*" it says it cannot find "hotspot*" and so on.
Regards, Alex
Hmm...
I seem to have overwritten those changes, sorry. I'll try to roll a new version soon.
reimplemented in 1.3.9
reimplemented in 1.3.9