Jump to content

Problem with masked dx text


Recommended Posts

Posted

Hi guys,

I was trying an editfield with dx

i had problem

how to replace for ex : "3B00DG4MER" with "***********" or "hi" with "**"

i tried using string.gsub

string.gsub(self.edit.text, "(%a)", function(w) return "*" end) 

SAF/SAO - 30%

Skype: Themerzoug2020

in-game name:3B00DG4MER

xOG7h1J.png

Posted

use lua's string.rep function to repeat something. :)

can be used like;

dxDrawText ( string.rep ( "*", string.length ( self.edit.text ) ), ... 

This way, you don't have to save the password somewhere else for your authentication ( if it's a password ).

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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