Taleforge Posted May 5, 2014 Share Posted May 5, 2014 Hi, I found this thread about GUI-stuff http://www.html5gamedevs.com/topic/802-gui-methodologies/. It says building UI-elements by HTML/DOM over the canvas would be the best solution.You than have to do all the scaling etc by your self. This thread is a bit old now. So I want to ask if this is still the best solution for building a GUI? What I want to build is:1. A ingame login formular where the user can enter his username and his password.2. A inventory Dialog where the player can drag and drop items in a grid. Thanks Link to comment Share on other sites More sharing options...
marvster Posted May 5, 2014 Share Posted May 5, 2014 Unfortunately, if you want ui on canvas, you have to build this from the outset.Lists can be managed with an array, cursor- and other key events and a property to save the current position.Textfields can be managed with key events which are processed when the input grafic has a focus, etc. Link to comment Share on other sites More sharing options...
Taleforge Posted May 5, 2014 Author Share Posted May 5, 2014 Hi marvster thanks for that hint, it sounds like a lot of work to do !Is there any advantage in having the GUI in the canvas? Link to comment Share on other sites More sharing options...
Recommended Posts