oxxxo Posted May 1, 2015 Share Posted May 1, 2015 I been looking at examples on Buttons..and it seems that all of them are png images. I wanted to make a button that has a label using a bitmap font. How would I implement this? Quote Link to comment Share on other sites More sharing options...
playtwice Posted May 2, 2015 Share Posted May 2, 2015 You can use addChild with any pixi displayobject. Quote Link to comment Share on other sites More sharing options...
oxxxo Posted May 2, 2015 Author Share Posted May 2, 2015 You can use addChild with any pixi displayobject. Hi, I had able to add the bitmap text as child of a sprite.. but my problem right now is how to center the bitmap text.. Quote Link to comment Share on other sites More sharing options...
magallanes Posted May 4, 2015 Share Posted May 4, 2015 Is it for html?. If yes, then create a button:<button src='background-image:...'><span style='text-align:center'>Some text</span></button> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.