Hitarea
Submitted by myksa on January 15, 2007 - 11:39.
Hello
I have a quastion about layer's hit area class. When it would be ready to use (in documentation is written, that it isn't implemented yet), or....
.....maybe there is another way to do it...
I have a button, that in one state (one of layers) is small, but in another it's much bigger. Unfortunately engine automaticly makes both the same size. I've tried to expand the small icon area to the size of the bigger, but now, even that icon looks the same, it's hitarea grew up to the big size.
Is there any way (different than waiting for implementation of hitarea class) to make it work?
Myksa
fieldOfView | SPi-V dev
Re: Hitarea
Hitarea layers are implemented in SPi-V 1.4, which has not yet been released. Hopefully there will be a beta 'soonish'.
The most efficient solution to your problem (more efficient than using a hitarea on an 'expanded' element) is to put the additional graphics in another panoelement/uielement. You can change the visible of this additional element with a behavior:
<behavior><action event="enter" type="setproperty" target="additionalelement" property="visible" value="true" />
<action event="leave" type="setproperty" target="additionalelement" property="visible" value="false" />
</behavior>