-
- RisingSunStudios
- Posts: 21
- Joined:
Add condition to a trigger
Hey all,
Is it possible to add a condition to a trigger in Noesis? I checked the documentation and having some issues with the autocomplete in my project (have raised it with Jetbrains) so it's hard to discover if this is possible in Noesis.
What I'd like to do is have a NoesisApp.TriggerBase only execute it's actions if a Condition is true.
Is it possible to add a condition to a trigger in Noesis? I checked the documentation and having some issues with the autocomplete in my project (have raised it with Jetbrains) so it's hard to discover if this is possible in Noesis.
What I'd like to do is have a NoesisApp.TriggerBase only execute it's actions if a Condition is true.
Code: Select all
<triggers:InputActionTrigger ActionName="AbilitySelect_Confirm" TriggerType="{x:Static rewired:InputActionEventType.ButtonJustPressed}">
<b:Condition LeftOperand="{Binding IsSelected}" Operator="Equals" RightOperand="True" />
<!-- do these if the condition is met -->
<triggers:WriteToLogAction Value="Button Just Pressed" />
<b:ControlStoryboardAction Storyboard="{StaticResource BeginAnimateProgressBar}" />
</triggers:InputActionTrigger>
-
- RisingSunStudios
- Posts: 21
- Joined:
Re: Add condition to a trigger
Damn.. as soon as I post I see the related posts.. and a link to ConditionBehaviors which looks exactly like what I need!
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Add condition to a trigger
Yes, here it is the documentation about ConditionBehavior: https://www.noesisengine.com/docs/App.I ... avior.html
Who is online
Users browsing this forum: No registered users and 6 guests