Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.



 
Trang ChínhPortalTìm kiếmLatest imagesĐăng kýĐăng Nhập
Bài gửiNgười gửiThời gian
GAME nhập vai - Gta San Andreas phiên bản multiplayer. Script : Name input Tiếng Việt 115/11/2014, 22:08
Tài nguyên game bang bang zing me Script : Name input Tiếng Việt 114/11/2014, 07:32
Hướng dẫn làm nhân vật di chuyển Script : Name input Tiếng Việt 114/11/2014, 06:57
Cách sử dụng code current Script : Name input Tiếng Việt 114/11/2014, 06:52
Em xin làm đoạn video do em tự dẫn giúp cho các anh chị nào không biết các công cụ trong game maker Script : Name input Tiếng Việt 114/11/2014, 06:50
Cần tài nguyên game Võ đài thần tiên Script : Name input Tiếng Việt 114/11/2014, 06:39
Tải RPG XP + Việt Hóa Script : Name input Tiếng Việt 127/9/2014, 18:50
Bản hướng dẫn RPGXP đây..... Script : Name input Tiếng Việt 127/9/2014, 13:43
can giup Script : Name input Tiếng Việt 127/9/2014, 13:40
can giup Script : Name input Tiếng Việt 127/9/2014, 13:36
sự thật về vtc academy hcm Script : Name input Tiếng Việt 122/10/2013, 20:07
[vnplay.org]MU Việt Season 6.3 - Reset Và Non Reset -Không Webshop - Open tháng 5 Script : Name input Tiếng Việt 14/5/2013, 15:35
Phần trang bị giống game diablo Script : Name input Tiếng Việt 113/3/2013, 18:31
Game4V và Event "Viết bài hay, nhận ngay quà tặng" Script : Name input Tiếng Việt 119/2/2012, 21:24
HELP: Failed to create process Script : Name input Tiếng Việt 113/12/2011, 11:27
Danh hiệu member Script : Name input Tiếng Việt 16/12/2011, 13:02
TRY.VN RA MẮT CỤM MÁY CHỦ MỚI : HOÀN MỸ - OPEN 22/11 - ĐỈNH CAO MU ONLINE Script : Name input Tiếng Việt 123/11/2011, 07:44
MU 24 Giờ - Cực khó dành cho game thủ đích thực - Open Beta vào lúc 11h ngày 11/11/2011 Script : Name input Tiếng Việt 119/11/2011, 18:55
wqswqdqw Script : Name input Tiếng Việt 123/10/2011, 21:51
Diễn đàn Make Game VN chính thức Script : Name input Tiếng Việt 131/8/2011, 10:29

Share | 
 

 Script : Name input Tiếng Việt

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down 
Tác giảThông điệp
duongtiep
Level 15
Level 15
duongtiep

Danh hiệu : The King
Tổng số bài gửi : 1229
MGV Xu : 2677
Danh tiếng : 45
Ngày tham gia : 10/12/2010
Đến từ : Quảng Ninh

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 19:34

Hệ thống đặt tên nhân vật bằng tiếng Việt, việt hóa bởi sanggameboy!
Thay toàn bộ Window_NameInput

Code:
#==============================================================================
# ** Window_NameInput
#------------------------------------------------------------------------------
#  This window is used to select text characters on the name input screen.
#==============================================================================

class Window_NameInput < Window_Base
  #--------------------------------------------------------------------------
  # * Text Character Table
  #--------------------------------------------------------------------------
  ENGLISH = [ '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','â','ă','á','à',
              '#','$','%','^',' ',  'ạ','ã','ả','o','ô',
              '1','2','3','4','5',  'ơ','ó','ò','ỏ','ọ',
              '6','7','8','9','0',  'ố','ồ','ộ','ỗ','Xong']
  TABLE = [ENGLISH]
  #--------------------------------------------------------------------------
  # * Object Initialization
  #    mode : Defeault input mode (always 0 in English version)
  #--------------------------------------------------------------------------
  def initialize(mode = 0)
    super(88, 148, 368, 248)
    @mode = mode
    @index = 0
    refresh
    update_cursor
  end
  #--------------------------------------------------------------------------
  # * Text Character Acquisition
  #--------------------------------------------------------------------------
  def character
    if @index < 88
      return TABLE[@mode][@index]
    else
      return ""
    end
  end
  #--------------------------------------------------------------------------
  # * Determine Cursor Position: Mode Switch
  #--------------------------------------------------------------------------
  def is_mode_change
    return (@index == 88)
  end
  #--------------------------------------------------------------------------
  # * Determine Cursor Location: Confirmation
  #--------------------------------------------------------------------------
  def is_decision
    return (@index == 89)
  end
  #--------------------------------------------------------------------------
  # * Get rectangle for displaying items
  #    index : item number
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new(0, 0, 0, 0)
    rect.x = index % 10 * 32 + index % 10 / 5 * 16
    rect.y = index / 10 * WLH
    rect.width = 32
    rect.height = WLH
    return rect
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0..89
      rect = item_rect(i)
      rect.x += 2
      rect.width -= 4
      self.contents.draw_text(rect, TABLE[@mode][i], 1)
    end
  end
  #--------------------------------------------------------------------------
  # * Update cursor
  #--------------------------------------------------------------------------
  def update_cursor
    self.cursor_rect = item_rect(@index)
  end
  #--------------------------------------------------------------------------
  # * Move cursor down
  #    wrap : Wraparound allowed
  #--------------------------------------------------------------------------
  def cursor_down(wrap)
    if @index < 80
      @index += 10
    elsif wrap
      @index -= 80
    end
  end
  #--------------------------------------------------------------------------
  # * Move cursor up
  #    wrap : Wraparound allowed
  #--------------------------------------------------------------------------
  def cursor_up(wrap)
    if @index >= 10
      @index -= 10
    elsif wrap
      @index += 80
    end
  end
  #--------------------------------------------------------------------------
  # * Move cursor right
  #    wrap : Wraparound allowed
  #--------------------------------------------------------------------------
  def cursor_right(wrap)
    if @index % 10 < 9
      @index += 1
    elsif wrap
      @index -= 9
    end
  end
  #--------------------------------------------------------------------------
  # * Move cursor left
  #    wrap : Wraparound allowed
  #--------------------------------------------------------------------------
  def cursor_left(wrap)
    if @index % 10 > 0
      @index -= 1
    elsif wrap
      @index += 9
    end
  end
  #--------------------------------------------------------------------------
  # * Move Cursor to [OK]
  #--------------------------------------------------------------------------
  def cursor_to_decision
    @index = 89
  end
  #--------------------------------------------------------------------------
  # * Move to Next Page
  #--------------------------------------------------------------------------
  def cursor_pagedown
    @mode = (@mode + 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # * Move to Previous Page
  #--------------------------------------------------------------------------
  def cursor_pageup
    @mode = (@mode + TABLE.size - 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    last_mode = @mode
    last_index = @index
    if Input.repeat?(Input::DOWN)
      cursor_down(Input.trigger?(Input::DOWN))
    end
    if Input.repeat?(Input::UP)
      cursor_up(Input.trigger?(Input::UP))
    end
    if Input.repeat?(Input::RIGHT)
      cursor_right(Input.trigger?(Input::RIGHT))
    end
    if Input.repeat?(Input::LEFT)
      cursor_left(Input.trigger?(Input::LEFT))
    end
    if Input.trigger?(Input::A)
      cursor_to_decision
    end
    if Input.trigger?(Input::R)
      cursor_pagedown
    end
    if Input.trigger?(Input::L)
      cursor_pageup
    end
    if Input.trigger?(Input::C) and is_mode_change
      cursor_pagedown
    end
    if @index != last_index or @mode != last_mode
      Sound.play_cursor
    end
    update_cursor
  end
end
Chữ ký của duongtiep
Về Đầu Trang Go down
https://makegame.forumvi.com
skriptank
Level 1
Level 1


Tổng số bài gửi : 34
MGV Xu : 90
Danh tiếng : 8
Ngày tham gia : 15/12/2010
Đến từ : http://anhhungthieunien.22web.net/

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 21:36

có script trước kia còn nhiều hơn này nữa
Chữ ký của skriptank
Về Đầu Trang Go down
http://anhhungthieunien.22web.net/
duongtiep
Level 15
Level 15
duongtiep

Danh hiệu : The King
Tổng số bài gửi : 1229
MGV Xu : 2677
Danh tiếng : 45
Ngày tham gia : 10/12/2010
Đến từ : Quảng Ninh

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 21:39

Share!
Chữ ký của duongtiep
Về Đầu Trang Go down
https://makegame.forumvi.com
skriptank
Level 1
Level 1


Tổng số bài gửi : 34
MGV Xu : 90
Danh tiếng : 8
Ngày tham gia : 15/12/2010
Đến từ : http://anhhungthieunien.22web.net/

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 21:40

ko nhớ nữa, lâu rồi, để ở nhà rồi
Chữ ký của skriptank
Về Đầu Trang Go down
http://anhhungthieunien.22web.net/
duongtiep
Level 15
Level 15
duongtiep

Danh hiệu : The King
Tổng số bài gửi : 1229
MGV Xu : 2677
Danh tiếng : 45
Ngày tham gia : 10/12/2010
Đến từ : Quảng Ninh

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 21:42

ở nhà thì share đi
Chữ ký của duongtiep
Về Đầu Trang Go down
https://makegame.forumvi.com
skriptank
Level 1
Level 1


Tổng số bài gửi : 34
MGV Xu : 90
Danh tiếng : 8
Ngày tham gia : 15/12/2010
Đến từ : http://anhhungthieunien.22web.net/

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 21:43

Giờ ko ở nhà bố ạ, đang ở Đà Lạt, nhà e ở Nghệ An
Chữ ký của skriptank
Về Đầu Trang Go down
http://anhhungthieunien.22web.net/
duongtiep
Level 15
Level 15
duongtiep

Danh hiệu : The King
Tổng số bài gửi : 1229
MGV Xu : 2677
Danh tiếng : 45
Ngày tham gia : 10/12/2010
Đến từ : Quảng Ninh

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime15/12/2010, 21:44

Bó tay! Vậy thì thôi
Chữ ký của duongtiep
Về Đầu Trang Go down
https://makegame.forumvi.com
L.V
Level 4
Level 4
L.V

Tổng số bài gửi : 197
MGV Xu : 341
Danh tiếng : 9
Ngày tham gia : 13/12/2010
Tuổi : 29
Đến từ : Cầu Xe Hội

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime16/12/2010, 09:58

Loại này giờ mới thấy ! ... mũi tụi của VX
Chữ ký của L.V
Về Đầu Trang Go down
http://cauxe.come.vn
duongtiep
Level 15
Level 15
duongtiep

Danh hiệu : The King
Tổng số bài gửi : 1229
MGV Xu : 2677
Danh tiếng : 45
Ngày tham gia : 10/12/2010
Đến từ : Quảng Ninh

Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime16/12/2010, 19:12

Xp cũng có để tìm lại :study:
Chữ ký của duongtiep
Về Đầu Trang Go down
https://makegame.forumvi.com
Sponsored content




Script : Name input Tiếng Việt Empty
Bài gửiTiêu đề: Re: Script : Name input Tiếng Việt   Script : Name input Tiếng Việt I_icon_minitime

Chữ ký của Sponsored content
Về Đầu Trang Go down
 

Script : Name input Tiếng Việt

Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang 

 Similar topics

+
Trang 1 trong tổng số 1 trang

Permissions in this forum:Bạn không có quyền trả lời bài viết
 :: RPG VX :: Script-
Chuyển đến