Wednesday 26 May 2010

YAG - yet another gui

I wasn't going to add a complete gui system, we don't need anything complex. The address book needs to accept input from mouse and keyboard and when I thought about it, the planned map viewer/editor will require it too.

It had to be a simple gui system with input focus and keyboard entry. Since the chat console had functions for filtering keys and the input mapper directed keyboard input into it when active it was simple enough to change it to send to a gui class and whatever control input had focus.

GUI drawing and input handling is as far as I got this evening. Should be functional by late evening tomorrow. Address book will store entries as XML, not sure if passwords should be stored or not. My professional hat says no, my lazy hat says yes. It's non-critical so it seems reasonable to store the last used password no?

2 comments:

  1. Give the user the option to save/not save passwords, warning him/her of the possible hazard. If possible, make it selectable as per-server basis. A user could not care about giving out the password for one server but would prefer to further "protect" his team/clan's server, for example.

    ReplyDelete
  2. In the end it's for a game - you're not protecting a bank account here :). So I would go for a simple and lazy solution at least for the user, so (s)he should definitely be able to save the password.

    Regards,
    Sebastian

    ReplyDelete