Buttons aren't pressing.

WAAAAAAWAWAWAAAAAAWAWA Posts: 22Member

Hello,
I have an issue with any and all button nodes: when I am clicking them, they are not responding.
No clue how to fix this; I've tried messing around with all relative signals and properties of the node.
Thanks a lot in advance.


Tags :

Best Answer

  • SIsilicon28SIsilicon28 Posts: 770
    edited April 2020 Accepted Answer

    test.tscn is the only scene with a button, so I'm assuming that's the one you want us to check.

    Well I can immediately see that it's not connected to anything, and there's no script in the scene to use the signal anyway. :/

    Edit: After giving it a script and connecting the signals, I now see what you mean. I narrowed down the problem to one of your autoloads (SceneChanger). Its Control nodes were blocking the inputs.

    After setting both Control and Black to have a mouse filter mode of Ignore, the button works fine.

Answers

  • MegalomaniakMegalomaniak Posts: 4,803Admin

    Perhaps theres a node in front of them that is capturing the mouse input without letting it pass on? Check the mouse filters perhaps?

  • WAAAAAAWAWAWAAAAAAWAWA Posts: 22Member

    Nodes aren't the issue... how would I check the mouse filter? Excuse me if that's a stupid question

  • MegalomaniakMegalomaniak Posts: 4,803Admin
    edited April 2020

    on control type nodes in the inspector you can find mouse related settings that control how the mouse input is handled by the node.

  • WAAAAAAWAWAWAAAAAAWAWA Posts: 22Member

    Still nothing. Thanks for your suggestions though.

  • SIsilicon28SIsilicon28 Posts: 770Moderator

    Could you show us a minimal reprojection project that outlines your issue just enough? There might be more things going on here than you can just tell through text.

  • WAAAAAAWAWAWAAAAAAWAWA Posts: 22Member

    Sure.
    The whole project is small so here is the link to the download for the project.godot file: https://adamb.itch.io/button-isnt-working
    Inside there's a scene named 'test' which has only a button inside (sorry, it's a bit small, you might want to enlarge it). As I said, the issue is that when I press the button it plainly doesn't respond.
    Let me know if this isn't clear enough or you need more info etc.

  • SIsilicon28SIsilicon28 Posts: 770Moderator
    edited April 2020

    Bruh. You only uploaded the project file. There's no scene, no scripts, nothing. :/

  • WAAAAAAWAWAWAAAAAAWAWA Posts: 22Member

    whoops my mistake

  • SIsilicon28SIsilicon28 Posts: 770Moderator
    edited April 2020 Accepted Answer

    test.tscn is the only scene with a button, so I'm assuming that's the one you want us to check.

    Well I can immediately see that it's not connected to anything, and there's no script in the scene to use the signal anyway. :/

    Edit: After giving it a script and connecting the signals, I now see what you mean. I narrowed down the problem to one of your autoloads (SceneChanger). Its Control nodes were blocking the inputs.

    After setting both Control and Black to have a mouse filter mode of Ignore, the button works fine.

  • WAAAAAAWAWAWAAAAAAWAWA Posts: 22Member

    Oh okay, brilliant. Thanks for your help.

  • zexscalzexscal Posts: 1Member

    SIsilicon28 Thank youuuuuuuuuuuuuuuuuuu!!!!

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file