Welcome, Guest
Please Login or Register.    Lost Password?

Is it possible to use text as a button?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Is it possible to use text as a button?
#24718
Is it possible to use text as a button? 3 Weeks, 2 Days ago  
Hey there!

Is it possible to use text as a button (except as a bitmap ofc)?

It would be cool if it was possible to combine say a bitmap and some text into a button object. Would also make translation easier.

Also, is it possible to have a button hitbox include the transparent background? My button images are thin icons, which makes the hitbox hard to, well, hit.
royi
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24724
Re: Is it possible to use text as a button? 2 Weeks, 3 Days ago  
You can set the text over the button. If you don't want to use the button background you can use a transparent image for it.

The button uses the image's rectangle as the hitbox but that works only if the window has a background. If you are using a fully transparent window you need to give some opacity to the button so that the mouse presses get registered.
Rainy
Moderator
Posts: 6871
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#24732
Re: Is it possible to use text as a button? 2 Weeks, 1 Day ago  
Gonna have to try layering text over the button image then.

Aha, so the window needs a background for transparent buttons to work. I can update some of my buttons then. Thanks!
royi
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop