Font Password Masking

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
sonnje01
Posts: 2
Joined: Wed Dec 13, 2006 11:14 pm
Location: Fort Wayne

Font Password Masking

Post by sonnje01 »

- Been using Jrrlicht for some time now, and was wondering if there is a way to mask text in an IGUIEditBox. I'm creating an online game that requires login/password and can't quite figure out how to mask the text so the user sees an echo character. I found a bunch of information on password masking in JFrame and in the Command line at:
"http://java.sun.com/developer/technical ... pwordmask/", but not sure if irrlicht has the capability.

- Also wondering about the ability to tab for formating issues. I've been trying to format a IGUIListBox with spaces and keep running into dead ends, because the letters are different sizes. If irrlicht supported tabs it would make formating a whole bunch easier... Any help or information would be greatly appreciated. :wink:
raven_coda
Posts: 89
Joined: Thu Aug 17, 2006 8:11 pm
Location: Salt Lake City, UT, USA
Contact:

Post by raven_coda »

You could make a custom font with all characters just "*"
as each fonts just a bmp file just open it up in your editor and cut and paste the star over all the other characters.

Not sure for Jrrlicht but in c++ it's just

Code: Select all

edtBox->setOverrideFont(GUImgr->getFont("pass.bmp"));
Definition of an Upgrade: Take old bugs out, put new ones in.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

In my IrrExtensions I added this functionality, you can set the edit box to password and define what character should be shown (default '*')...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
sonnje01
Posts: 2
Joined: Wed Dec 13, 2006 11:14 pm
Location: Fort Wayne

Post by sonnje01 »

Awsome! got the password masking working, created my own text bmp. Thanks a whole bunch :wink: ... now I just need to figure out how to format my lists correctly. Perhaps I'll have to use all lowercase letters, or all uppercase letters to get them to align up.. Thanks agian
Post Reply