Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am looking for a way to include scrolling text boxes in a jMonkey game. I have, of course, looked around online and could not find any examples or libraries that fit.

My goal is to have "quests" pop up for the user in small graphical boxes, containing quest text. The quest text might be longer than the quest box (which was easy enough to generate in jMonkey), so I am left with the problem of generating scrolling text boxes.

Before I set off on a long venture to properly adjust, indent, and scroll text inside boxes, I was wondering if any knew of existing examples or libraries. I have a hard time believing I'm the first person to using jMonkey that needed scrolling text or quest functionality.

share|improve this question
1  
What are you currently using to create the text boxes? Nifty is a GUI library that interfaces with JMonkey AFAIK. It has scrolling text boxes among many other built in features. –  Byte56 May 15 '12 at 19:56
    
Ah! It looks like Nifty has all I need and more. I'll have to decide whether it's worthwhile to bring all the functionality over, or just open up the base code to see if I want to replicate the functionality for this one feature I want. Thanks so much! If you put your Nifty answer into an actual "answer", I will be happy to credit you. –  theJollySin May 15 '12 at 20:22

1 Answer 1

up vote 1 down vote accepted

The Nifty GUI library is a pretty nice one. It plays nice with JMonkey (as well as others) and is fairly easy to use. Just this morning I set it up to reload the XML file with the click of a button. This allows me to rapidly prototype my GUI by modifying the XML and reloading without needing to restart my game. It also supports custom loaders, so you can ensure all your content gets loaded the way you want, or even support user generated mods to the UI. All-in-all, it's flexible and powerful.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.