How to use click mask without texture button ?

GarromOrcShamanGarromOrcShaman Posts: 153Member

Hi everyone. I have standard buttons visually customize through theme. I cannot find where to put click mask in theme. I'm also unclear about how click mask should look like. Someone says black and transparent, someone black and white and someone else white and black so I'm really not sure what is true.

Answers

  • MegalomaniakMegalomaniak Posts: 887Admin
    edited April 27

    From the sounds of what is stated by 'Someone' I'm going to guess indeed black and white(alpha/transparency is just that). Not sure if black is click through or white, guessing black though.

  • GarromOrcShamanGarromOrcShaman Posts: 153Member

    @Megalomaniak said:
    From the sounds of what is stated by 'Someone' I'm going to guess indeed black and white(alpha/transparency is just that). Not sure if black is click through or white, guessing black though.

    By 'Someone' is meant various users around internet in very old posts. Good, I know how to make click mask but there is still second part of my question

    @GarromOrcShaman said:
    I have standard buttons visually customize through theme. I cannot find where to put click mask in theme.

    I'm really unable to find it and I need it.

  • TwistedTwiglegTwistedTwigleg Posts: 701Admin
    Answer ✓

    @GarromOrcShaman
    I have standard buttons visually customize through theme. I cannot find where to put click mask in theme.

    I believe click masks only work on textured buttons. The option should look like this:

  • GarromOrcShamanGarromOrcShaman Posts: 153Member

    @TwistedTwigleg said:

    @GarromOrcShaman
    I have standard buttons visually customize through theme. I cannot find where to put click mask in theme.

    I believe click masks only work on textured buttons. The option should look like this:

    Too bad. Is there any alternative ? (like collision shapes or similar stuff)

  • TwistedTwiglegTwistedTwigleg Posts: 701Admin
    Answer ✓

    There is this answer from the QA, not sure if it will work with Godot 3, but it might. I also saw this answer from the QA saying you can use RigidBody2D nodes, so that may be another/different way to use collision shapes.

Sign In or Register to comment.