Image Click button

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Donut-Dezz
Prole
Posts: 25
Joined: Sat Aug 03, 2019 11:56 am

Image Click button

Post by Donut-Dezz »

How to make my Image Font Button as a Click Button
User avatar
MynameisBI
Prole
Posts: 7
Joined: Sun Dec 15, 2019 1:16 pm

Re: Image Click button

Post by MynameisBI »

Could you explain exactly what you are trying to do here?

Do you want to make your button clickable or something else?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Image Click button

Post by raidho36 »

You make a regular button and you draw text on top of it.
Donut-Dezz
Prole
Posts: 25
Joined: Sat Aug 03, 2019 11:56 am

Re: Image Click button

Post by Donut-Dezz »

I would like if you have a image that you created(example--> HELLO ) make the hello a button so you can click on.
User avatar
MynameisBI
Prole
Posts: 7
Joined: Sun Dec 15, 2019 1:16 pm

Re: Image Click button

Post by MynameisBI »

You could learn and use one of the available gui libraries to implement a button with a text image, I recommend nuklear
Or if a button is the only thing you want, just use the mousepress callback to check if someone click on the text
Or do you only want the text to be clickable and not the whole button?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 243 guests