So after managing to get Nifty set up properly I’ve started exploring it and it has some excellent features so thanks go out to all the contributors. (And to all other JME contributors too because I don’t think I’ve said that before. )
Of course, something would be wrong with the fabric of the universe if I didn’t run into issues. I’m trying to make my own console slash chat box for my game. The inbuilt controls for this are nice but I want to roll my own, partly to learn about nifty, partly to ensure it’s doing exactly what I want.
So here’s my questions:
- I wanted to simply add a border to a panel. I figured out how to add a custom style after exploring nifty’s code a little and have that set up nicely but the only way I can see to use a border at all in an onHover Effect. I just want a border there the whole time, is this not possible with the default set up? I managed to achieve the look I wanted using an image so it’s not a big deal but an odd inconsistency and I’d like to know if I’ve missed something.
- Handling certain events seems a little tricky. I need know when a user who is typing in a textfield has pressed enter or escape so I can handle my input/console code correctly. There’s some stuff about EventBus scattered around the wiki but I can’t seem to locate anything definitive. Any pages I’ve missed?
- I’ve placed textfield into a window and it seems to work just dandy until I drag the window at which point the textfield becomes focused and defocuses when the window is released. Not major but unexpected. Anyway to combat this?
- Somewhat related to 1. I notice that on the nifty wiki there is a list of parameters you can add to the effects. At least, I think that’s what it is. Anyway, I can’t find a similar list of effects themselves. I.E onHover, onStartScreen. Is there such a list?