Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 01:46:19 am
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)Echo Characters
Pages: [1]
Print
Author Topic: Echo Characters  (Read 1711 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 18. October 2007, 08:22:55 pm »

Well, most of you guys probably know the setEchoChar(char echoCharater) method of the Java AWT's TextField. It sets the TextField to show only the echo character, regardless of what is typed in.  It is mostly used for passwords, and I could use this type of functionality in Xith (for my Login Page on my MMOPRG).  Could someone be kind enough to add this to Xith?  Actually, I just added it myself, but that's right, I'm not a dev anymore  Smiley.  Well, it's attached...check out the updateText method.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 18. October 2007, 08:35:25 pm »

Looks ok to me. But shouldn't this be in the TextField class? I see no reason for using this in a "standalone" Label.

I will add this and commit it with the other changes, that I am currently doing to the HUD for the HUDConsole.

Please tell me, if you see a reason for placing this into the Label class, but not the TextField.

Marvin
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #2 on: 19. October 2007, 01:31:24 pm »

Well, no, I didn't see a real reason for putting it into Label, except that the updateText method  is in Label, and I didn't know fully how the inner workings of the text displaying worked.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 21. October 2007, 04:37:44 pm »

This is commited now. I had to add some more code to the implementation to make the caret position being correctly handled. It works great now.

btw. Thanks for the inspiration to this addition Smiley.

Marvin
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #4 on: 21. October 2007, 05:10:59 pm »

This is commited now. I had to add some more code to the implementation to make the caret position being correctly handled. It works great now.

btw. Thanks for the inspiration to this addition Smiley.

Marvin

Thanks, and you're welcome.  Smiley
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic