Hey there!
I have been trying to implement a GUI for my game, but it isn’t working out as nice as I had hoped. I took a look at some different
helpers for this, but it seems like TWL (for instance) offers so much more than what I need, and I’m not prepared to use HTML and CCS to layout my GUI.
So, I thought I could implement my own with the goals being
[1] Easy setup
[2] Extendable
[3] Single-threaded, and updated through a simple gui.update(input, delta) call.
However, this is not working out in my favor. I like swing (sue me), so I thought I could do something of the sorts. Swing is really hard to get an overview of though, so that I had to quit.
I wanted to make objects as interactive as the user intends, through interfaces and only send the updates they need. This seems impossible though.
I really don’t want to have to update everything (entire gui). I could update just whatever the mouse is hovering over, but I don’t know if all that checking would be worth it (a gain in execution speed), and that also eliminates the possibility for animation to take place on a component that does not have focus.
So, JGO, I ask you for advice on this. What is your opinion?