Help the noob :) - Text and buttons

Started by Lolmewn, December 28, 2011, 20:39:42

Previous topic - Next topic

Lolmewn

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!

Lolmewn

nvm. Using Slick + LWJGL now :)
Still don't know about the buttons though..

CodeBunny

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).

Lolmewn

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?

Evil-Devil

Take a look at their GUI example. And if not just extend their gui elements ;)