Results 1 to 6 of 6

Thread: how to set a "nil" function button

  1. #1

    how to set a "nil" function button

    In my old code (before it all got broken by a cool content patch) if I wanted a button to have no actual clickable function and just be a readout I put click_function = 'nil'... and just had no function with that name.

    Problem is that now you get an error code for trying to activate a function that dose not exist.

    Is there a new way to have a button just a read out and not have a click function, maybe one that means it will now not have the red button icon on mouse over?

    Currently I just have a empty function at the bottom of the script function nothing()end to fix it.. but thought there may be a better way?

  2. #2
    You can't have no click_function currently and linking an empty dummy function like you did is the way to go.

  3. #3
    Join Date
    May 2016
    Yeah I miss it not reporting an error, but it will be easier for people to tell when they have an error and aren't running a function, so I'll live with it haha

  4. #4
    maybe a global flag you could put into the globalscript to disable error messages might be cool... oh and while they are at it remove the "auto save" chat spam!! hehe

  5. #5
    ... oh and while they are at it remove the "auto save" chat spam!! hehe
    Update v9.7

    Character Sheets can now be created with scripting createInput()
    You can now change colors in Hotseat mode.
    Increased camera render distance by double for large games.
    Auto save will no longer clutter chat
    Cloud Manager will now automatically preview .obj and assetbundle files.
    Reduced the input lag of moving objects around for clients.
    Improved colliders on deal color wheel.
    D6 now has consistent dot orientation to match the rest.
    Improved lighting for UI 3D objects in menus.

    Are you refereing to this or something else ?

  6. #6
    It's easy enough to add
    function none() end -- for dummy buttons
    but it would be nice if you could just specify
    click_function = ''
    and it would know not to do anything on click.

Similar Threads

  1. Replies: 7
    Last Post: 07-25-2017, 09:24 AM
  2. Function for "modified cards" in popup.
    By Tragic in forum Suggestions
    Replies: 3
    Last Post: 12-15-2016, 04:16 PM
  3. Replies: 3
    Last Post: 08-15-2016, 02:01 AM
  4. [SOLVED] Steam "recently played with" function
    By Zolorado in forum Suggestions
    Replies: 2
    Last Post: 06-26-2016, 10:45 AM
  5. Replies: 2
    Last Post: 05-09-2016, 10:27 AM

Posting Permissions

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