how can i set button around texture borders

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cah9xddd

hi guys , i need to set button around texture borders
texture should be like black border around my green country
enter image description here

but i dont wanna make 5 buttons inside it.
how can i set button borders around texturre ?
or maybe i can make sprite pressed?

:bust_in_silhouette: Reply From: exuin

Use the texture_click_maskproperty of the TextureButton in order to make a custom shape for your button. Make a black and white image with the white being your country (clickable) and the black being the rest of the rectangle (not clickable).