Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Input in different fonts

Author
Message
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 3rd Jun 2007 04:55
I'm making an RPG style game, and when the user enters their password, they need to enter it into a font that cannot be read.
I also need a font for that, but I'm still searching for one right now.

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Jun 2007 04:59
check out the character map program in your windows Operating system.

In essence record each key press when the user focus is on the password box.
store this into an array but replace the output with a dot character to the screen.

Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 3rd Jun 2007 05:46
Huh?
I don't get what I'm supposed to use Character Map for. I have it on my comp, but I don't get how to put the dot on the screen or how to put the input into an array.

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Jun 2007 06:38 Edited at: 3rd Jun 2007 06:45
Ok firstly to make this clear, to change the output of text to the screen you set the font using the
set text font "Verdana" or any other font name
and print or text it accordingly.


I was going to direct you to the character map to get the bullet character from Arial and dynamically use that as the password hiding character.

Then i thought it would be easier to just use a string of the asterix *.

This then reminded to do a search on the boards for the keyword "password".

Low and behold I found a great example by Grog Grueslayer.




I then pulled apart my old editors input box routines, and namely the town generation input box as another cleaner example of entering in data.

Press Control T on this example and hit enter once you have entered in the name you wish to use. I have not added a password asterix feature to the 2nd example, but you should have enough to get you started.



Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 3rd Jun 2007 07:14
Sorry about not searching, sometimes my mind goes away from the search tool and on to posting the question.
The first example worked perfectly! I got rid of the screen-flashing easily, and it worked! But I didn't understand what the second example was supposed to do... it seemed to go off-topic of my question.

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Jun 2007 07:16
if you press control and t, it will generate a graphical input box, instead of a simple text prompt.

Login to post a reply

Server time is: 2026-07-06 15:44:29
Your offset time is: 2026-07-06 15:44:29