Results 1 to 2 of 2

Thread: XML & Classic buttons - Change how functions are called - pressed, held, released

  1. #1

    Lightbulb XML & Classic buttons - Change how functions are called - pressed, held, released

    I'm suggesting a change to the XML and classic button. I believe a button should send two calls to the function, one with button press down, and one with button release. A boolean could be attached to the button similar to the use of isOn with ToggleButton, so it can be passed to the function; this would allow a script to know when a button is being pressed, held and then released.

    This feature would be important for any mod that would like to run code only while a player is holding down the button.

    If someone knows if this is already a feature and I'm just overlooking it, please let me know.

    Thanks for reading, and for your consideration.

  2. #2
    Ok, so I'll just have to answer this one for myself, because I once again overlooked something simple and I feel silly... You just have to use onMouseDown and onMouseUp and then flip a boolean in the code... I got ahead of myself making a request. Lol If mods want to delete this, I understand...

Similar Threads

  1. [CRASHES] Version 12.4 Released Today; Crashes 100% within minutes of starting in OSX
    By FhyrDrake in forum Technical Support
    Replies: 0
    Last Post: 05-18-2020, 02:14 PM
  2. Passing index to functions with Inputs and Buttons
    By Unreal_Ed in forum Scripting Suggestions
    Replies: 2
    Last Post: 05-25-2018, 03:23 PM
  3. Replies: 0
    Last Post: 06-07-2017, 06:42 AM
  4. Replies: 2
    Last Post: 05-13-2017, 06:45 AM
  5. Replies: 3
    Last Post: 06-28-2015, 01:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts