0 Favourites

EditBox Object and ListBox

This forum is currently in read-only mode.
  • <img src="http://i61.photobucket.com/albums/h53/Sodisna/What.png">

    What would be close to these events? I just see "on Text change".

    Also, how would this event look like in Construct?

    Val(List Line Text$( "Query", LoopIndex("input.query")))

    This the ListBox object

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • <img src="http://i61.photobucket.com/albums/h53/Sodisna/What.png">

    What would be close to these events? I just see "on Text change".

    It appears that some conditions for the Edit Box are missing. You can still do this with a System compare. Create a new System condition, select Compare, double-click the Edit Box object and grab the Get Text expression (or just type in EditBox.Text, or whateverName.Text if you've changed the name of your edit box). The event would look like this:

    +System: EditBox.Text is greater than 0
      -> Do stuff
    [/code:2gx9tj7l]
    
    You don't need a "text is a number" condition (and if fact there isn't one).  But you do have to be careful because it's an alphanumeric comparison, so if someone enters letters into the edit box then it will automatically be a higher value than any number.  If you want to keep the event from triggering when a letter is entered, you can set a number as a range limit by adding a "EditBox.Text is less than 9999" condition, for instance.
    
    

    Also, how would this event look like in Construct?

    Val(List Line Text$( "Query", LoopIndex("input.query")))

    This the ListBox object

    That doesn't appear to be similar to an event structure. It looks more like an expression to me. What are you trying to do?

  • I suggest you read through some tutorials and try to grasp how Construct works, rather than asking how individual expressions will look. That'll take quite some time . Also, many expressions don't have equals as our event system works in a different way.

    I've added 'compare text' to the Edit object for the next build.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)