RisingSunStudios
Topic Author
Posts: 21
Joined: 12 Apr 2020, 09:56

Add condition to a trigger

04 Jun 2025, 09:25

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.
                            <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
Topic Author
Posts: 21
Joined: 12 Apr 2020, 09:56

Re: Add condition to a trigger

04 Jun 2025, 09:28

Damn.. as soon as I post I see the related posts.. and a link to ConditionBehaviors which looks exactly like what I need!
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: Add condition to a trigger

04 Jun 2025, 14:15

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 12 guests