LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Lolmewn on December 28, 2011, 20:39:42

Title: Help the noob :) - Text and buttons
Post by: Lolmewn on December 28, 2011, 20:39:42
Hi,
I just started developing with LWJGL, and it's going quite ok.
I was just wondering how I could add Text, since slick-util forgot to add the replacement for TrueTypeFont (UnicodeFont I thought).
And how to add buttons :)

Thanks!
Title: Re: Help the noob :) - Text and buttons
Post by: Lolmewn on January 01, 2012, 12:18:52
nvm. Using Slick + LWJGL now :)
Still don't know about the buttons though..
Title: Re: Help the noob :) - Text and buttons
Post by: CodeBunny on January 01, 2012, 16:16:35
For buttons, you can either use an established LWJGL-GUI API (TWL, Nifty, etc), or you could program simple buttons yourself (detect if mouse is hovering over the button, detect mouse clicks, and change the state of the button accordingly).
Title: Re: Help the noob :) - Text and buttons
Post by: Lolmewn on January 01, 2012, 22:59:24
Quote from: CodeBunny on January 01, 2012, 16:16:35
For buttons, you can either use an established LWJGL-GUI API (TWL, Nifty, etc), or you could program simple buttons yourself (detect if mouse is hovering over the button, detect mouse clicks, and change the state of the button accordingly).
Do you know if Slick has buttons?
Title: Re: Help the noob :) - Text and buttons
Post by: Evil-Devil on January 02, 2012, 17:56:12
Take a look at their GUI example. And if not just extend their gui elements ;)