Jump to content
Sign in to follow this  
W1_jC

"Better" NameInput ( Deleting Letters )

Recommended Posts

Better NameInput

 

Description

 

Hi, this is my first Script I release here.

My friends kept asking, how they delete letters in the Name Input Window, because "Esc" or "Num 0" isn't really intuitive,

I changed the Window so there is now a "«" symbol to remove other letters.

I had to remove some other symbols, because there was no more space.

Feel free to add again some special characters you wish for into free slots.

 

Features

--> Deleting letters in the Name Input is more intuitive now

 

Screenshots

 

Unbenannt.png

 

Instructions

 

Just add the script above main, like the other scripts.

If you want to change something, just look into the script.

 

Script

 

http://pastebin.com/UUFJaA6c

 

This Scripts was so easy to make, you do not need to credit me in the Game.

If you improve this Script - a credit would be nice.

 

You can give me Feedback if you want ;)

 

Here as text, because its really short:

 

# "Better" NameInput v1
# by fyzzo
# --------------------------
# If you want to change the symbol to delete letters, make sure you
# change it on 3 (THREE) positions in this script or it would not work properly.
# I have chosen the « character to delete other letters

class Window_NameInput < Window_Selectable
 CUSTOM1 = [ 'A','B','C','D','E',  'a','b','c','d','e',
		 'F','G','H','I','J',  'f','g','h','i','j',
		 'K','L','M','N','O',  'k','l','m','n','o',
		 'P','Q','R','S','T',  'p','q','r','s','t',
		 'U','V','W','X','Y',  'u','v','w','x','y',
		 'Z',' ',' ',' ',' ',  'z',' ',' ',' ',' ', # You may replace these
		 '0','1','2','3','4',  ' ',' ',' ',' ',' ', # empty spaces with
		 '5','6','7','8','9',  ' ',' ',' ',' ',' ', # characters you miss 
		 '.',' ',' ',' ',' ',  ' ',' ','«','Page','OK'] # deleting character in this row
 CUSTOM2 = [ 'Ã','É','Ã','Ó','Ú',  'á','é','í','ó','ú',
		 'À','È','Ì','Ò','Ù',  'à','è','ì','ò','ù',
		 'Â','Ê','Î','Ô','Û',  'â','ê','î','ô','û',
		 'Ä','Ë','Ã','Ö','Ü',  'ä','ë','ï','ö','ü',
		 '?','?','?','?','?',  '?','?','?','?','?',
		 'Ã','Ã…','Æ','Ç','Ã',  'ã','Ã¥','æ','ç','ð',
		 'Ñ','Õ','Ø','Š','?',  'ñ','õ','ø','š','?',
		 'Ã','?','Ÿ','Ž','Þ',  'ý','ÿ','?','ž','þ',
		 '?','Œ','?','œ','ß',  ' ',' ','«','Page','OK'] # I smell a deleting character somewhere around here
 def table
return [CUSTOM1, CUSTOM2]
 end

 def process_ok
if character == "«" # the character to go back
  process_back
elsif !character.empty?
  on_name_add
elsif is_page_change?
  Sound.play_ok
  cursor_pagedown
elsif is_ok?
  on_name_ok
end
 end
end

Edited by W1_jC

Share this post


Link to post
Share on other sites

isnt pressing the cancel button erases the letter. Thanks anyways.

Share this post


Link to post
Share on other sites
I had to remove some other symbols, because there was no more space.

 

I would re-write the window to make it bigger.

Share this post


Link to post
Share on other sites

Thanks for replying

isnt pressing the cancel button erases the letter. Thanks anyways.

yes, but normal Gamers don't erase letters with the "ESC" button ;)

I had to remove some other symbols, because there was no more space.

 

I would re-write the window to make it bigger.

Also there were symbols like "<" and even '«' itself. It would be just confusing if it is two times in the list.

And I don't really see the sense in having symbols like #'+$§() in a real name.

But whatever, feel free to make an update :D

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted