Jump to content

How to build a GUI (formulars and dialogs)


Taleforge
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...