Effector reset
I'm having trouble resetting an Effector after it's finished.
The element: Code:
<Image Location="-40,0" Name="Progress" OnEffectFinished="Parent.Reset.press=true" OnShowEffector="FillIn" Size="40,4" > Code:
<LocationEffector Name="FillIn" setoneffect="true" Speed="20,0" TargetLocation="0,0" /> Code:
<Button Name="Reset" OnPress="Parent.Bar.Visible=false
Parent.Bar.Visible=true" Style="/ButtonStyles.invisible" Visible="false" /> No matter what I do I can't seem to get the bar to Reset to default location, hide, and replay the animation. Am I missing something? Too little sleep? If I try to directly hide the element after the effector finishes, the game seems to crash. So does the UIBuilder. I can cause another element show, even a copy of the same one, but trying to hide the initial element via script = crash. |
Quote:
See if this sample helps any. Directly hiding the effected element also crashes me, so I just wrap it inside another page. This one picks up the element and forces it back to starting position each time until you hit the stop button. Code:
<Page Name="EventPanel" Location="40,40" ScrollExtent="44,44" Size="44,44" OnHide="Bar.Visible=Visible
Bar.Left=0" OnShow="Bar.Visible=Visible" PackLocation=",fff" BackgroundColor="#504050" BackgroundOpacity="0.500" Visible="false"> |
My hero :D
I think I see why it needs to work like this. Thank you for not letting me get to the point of ripping my hair out. |
All times are GMT -5. The time now is 12:21 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI