AccueilAccueil  PortailPortail  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  ConnexionConnexion  



-20%
Le deal à ne pas rater :
-20% Récupérateur à eau mural 300 litres (Anthracite)
79 € 99 €
Voir le deal

Partagez
 

 [Résolu] Normal qu'il y ait pas de "H"

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Twilight
Templier Lv.15
Templier Lv.15
Twilight


Féminin Age : 29
Inscrit le : 03/04/2008
Messages : 1240

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeVen 4 Avr 2008 - 21:53

Quand je mes l'option choisir le nom du perso au début, y'a toute les lettre de l'alfabet sauf le h
et je trouve que c'est une lettre assez utile. C'est normal? :depression:
Revenir en haut Aller en bas
Invité
Invité
avatar



[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeVen 4 Avr 2008 - 22:03

un script doit être éroné je vais voir ce que je peut faire ^^
Revenir en haut Aller en bas
fabY
dYeu retraité prématurément
dYeu retraité prématurément
fabY


Masculin Age : 28
Inscrit le : 09/02/2008
Messages : 5357

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeVen 4 Avr 2008 - 22:07

C'est pas dans les scripts je pense ^^.

Moi c'est pire : j'ai des caractères japponais.
Revenir en haut Aller en bas
https://rpg-maker-vx.bbactif.com/
Invité
Invité
avatar



[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeVen 4 Avr 2008 - 22:15

J'ai la solution!!!
A placer à la place de "Window_NameInputput":
Citation :
#==============================================================================
# ■ Window_NameInput
#------------------------------------------------------------------------------
#  名前入力画面で、文字を選択するウィンドウです。
#==============================================================================

class Window_NameInput < Window_Base
#--------------------------------------------------------------------------
# ● 文字表
#--------------------------------------------------------------------------
HIRAGANA = [ 'a','b','c','d','e', 'A','B','C','D','E',
'f','g','i','j','k', 'F','G','I','J','K',
'l','m','n','o','p', 'L','M','N','O','P',
'q','r','s','t','u', 'Q','R','S','T','U',
'v','w','y','z','', 'V','W','Y','Z','',
'','','','','', '','','','','',
'1','2','3','4','5', 'é','è','ê','ë','à',
'6','7','8','9','', 'ù','','-','_','.',
'','','','','', '','','','','OK']
TABLE = [HIRAGANA]
#--------------------------------------------------------------------------
# ● オブジェクト初期化
# mode : 初期入力モード (0 = ひらがな、1 = カタカナ)
#--------------------------------------------------------------------------
def initialize(mode = 0)
super(88, 148, 368, 248)
@mode = mode
@index = 0
refresh
update_cursor
end
#--------------------------------------------------------------------------
# ● 文字の取得
#--------------------------------------------------------------------------
def character
if @index < 88
return TABLE[@mode][@index]
else
return ""
end
end
#--------------------------------------------------------------------------
# ● カーソル位置 モード切り替え判定 (かな/カナ)
#--------------------------------------------------------------------------
def is_mode_change
return (@index == 88)
end
#--------------------------------------------------------------------------
# ● カーソル位置 決定判定
#--------------------------------------------------------------------------
def is_decision
return (@index == 89)
end
#--------------------------------------------------------------------------
# ● 項目を描画する矩形の取得
# index : 項目番号
#--------------------------------------------------------------------------
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
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
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
#--------------------------------------------------------------------------
# ● カーソルの更新
#--------------------------------------------------------------------------
def update_cursor
self.cursor_rect = item_rect(@index)
end
#--------------------------------------------------------------------------
# ● カーソルを下に移動
# wrap : ラップアラウンド許可
#--------------------------------------------------------------------------
def cursor_down(wrap)
if @index < 80
@index += 10
elsif wrap
@index -= 80
end
end
#--------------------------------------------------------------------------
# ● カーソルを上に移動
# wrap : ラップアラウンド許可
#--------------------------------------------------------------------------
def cursor_up(wrap)
if @index >= 10
@index -= 10
elsif wrap
@index += 80
end
end
#--------------------------------------------------------------------------
# ● カーソルを右に移動
# wrap : ラップアラウンド許可
#--------------------------------------------------------------------------
def cursor_right(wrap)
if @index % 10 < 9
@index += 1
elsif wrap
@index -= 9
end
end
#--------------------------------------------------------------------------
# ● カーソルを左に移動
# wrap : ラップアラウンド許可
#--------------------------------------------------------------------------
def cursor_left(wrap)
if @index % 10 > 0
@index -= 1
elsif wrap
@index += 9
end
end
#--------------------------------------------------------------------------
# ● カーソルを決定へ移動
#--------------------------------------------------------------------------
def cursor_to_decision
@index = 89
end
#--------------------------------------------------------------------------
# ● 次のページへ移動
#--------------------------------------------------------------------------
def cursor_pagedown
@mode = (@mode + 1) % TABLE.size
refresh
end
#--------------------------------------------------------------------------
# ● 前のページへ移動
#--------------------------------------------------------------------------
def cursor_pageup
@mode = (@mode + TABLE.size - 1) % TABLE.size
refresh
end
#--------------------------------------------------------------------------
# ● フレーム更新
#--------------------------------------------------------------------------
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
remplacer le smyle par un 8 suivit de )
Revenir en haut Aller en bas
fabY
dYeu retraité prématurément
dYeu retraité prématurément
fabY


Masculin Age : 28
Inscrit le : 09/02/2008
Messages : 5357

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeSam 5 Avr 2008 - 8:48

Code:
#==============================================================================
# ■ Window_NameInput
#------------------------------------------------------------------------------
#  名前入力画面で、文字を選択するウィンドウです。
#==============================================================================

class Window_NameInput < Window_Base
  #--------------------------------------------------------------------------
  # ● 文字表
  #--------------------------------------------------------------------------
  HIRAGANA = [ 'a','b','c','d','e',  'A','B','C','D','E',
              'f','g','i','j','k',  'F','G','I','J','K',
              'l','m','n','o','p',  'L','M','N','O','P',
              'q','r','s','t','u',  'Q','R','S','T','U',
              'v','w','y','z','',  'V','W','Y','Z','',
              '','','','','',  '','','','','',
              '1','2','3','4','5',  'é','è','ê','ë','à',
              '6','7','8','9','',  'ù','','-','_','.',
              '','','','','',  '','','','','OK']
  TABLE = [HIRAGANA]
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #    mode : 初期入力モード (0 = ひらがな、1 = カタカナ)
  #--------------------------------------------------------------------------
  def initialize(mode = 0)
    super(88, 148, 368, 248)
    @mode = mode
    @index = 0
    refresh
    update_cursor
  end
  #--------------------------------------------------------------------------
  # ● 文字の取得
  #--------------------------------------------------------------------------
  def character
    if @index < 88
      return TABLE[@mode][@index]
    else
      return ""
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソル位置 モード切り替え判定 (かな/カナ)
  #--------------------------------------------------------------------------
  def is_mode_change
    return (@index == 88)
  end
  #--------------------------------------------------------------------------
  # ● カーソル位置 決定判定
  #--------------------------------------------------------------------------
  def is_decision
    return (@index == 89)
  end
  #--------------------------------------------------------------------------
  # ● 項目を描画する矩形の取得
  #    index : 項目番号
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
  # ● リフレッシュ
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
  # ● カーソルの更新
  #--------------------------------------------------------------------------
  def update_cursor
    self.cursor_rect = item_rect(@index)
  end
  #--------------------------------------------------------------------------
  # ● カーソルを下に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_down(wrap)
    if @index < 80
      @index += 10
    elsif wrap
      @index -= 80
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを上に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_up(wrap)
    if @index >= 10
      @index -= 10
    elsif wrap
      @index += 80
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを右に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_right(wrap)
    if @index % 10 < 9
      @index += 1
    elsif wrap
      @index -= 9
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを左に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_left(wrap)
    if @index % 10 > 0
      @index -= 1
    elsif wrap
      @index += 9
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを決定へ移動
  #--------------------------------------------------------------------------
  def cursor_to_decision
    @index = 89
  end
  #--------------------------------------------------------------------------
  # ● 次のページへ移動
  #--------------------------------------------------------------------------
  def cursor_pagedown
    @mode = (@mode + 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 前のページへ移動
  #--------------------------------------------------------------------------
  def cursor_pageup
    @mode = (@mode + TABLE.size - 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  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

Voila sans smilie ^^.

UN GRAND merci à Nostal !!
Revenir en haut Aller en bas
https://rpg-maker-vx.bbactif.com/
Invité
Invité
avatar



[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeSam 5 Avr 2008 - 9:20

de rien ^^
comment tu as fait pour enlever le smyle?
Revenir en haut Aller en bas
LOD
Illusionniste Lv.12
Illusionniste Lv.12
LOD


Masculin Age : 29
Inscrit le : 16/03/2008
Messages : 666

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeSam 5 Avr 2008 - 9:26

Wha vous avez tous oublier le 'h' et 'H'.

Voila mon code :
Code:

#==============================================================================
# ■ Window_NameInput
#------------------------------------------------------------------------------
#  名前入力画面で、文字を選択するウィンドウです。
#==============================================================================

class Window_NameInput < Window_Base
  #--------------------------------------------------------------------------
  # ● 文字表
  #--------------------------------------------------------------------------
  HIRAGANA = [ 'a','b','c','d','e',  'A','B','C','D','E',
              'f','g','i','j','k',  'F','G','I','J','K',
              'l','m','n','o','p',  'L','M','N','O','P',
              'q','r','s','t','u',  'Q','R','S','T','U',
              'v','w','y','z','',  'V','W','Y','Z','',
              'h','''''''''''''''''''H',
              '','','','','',  '','','','','',
              '1','2','3','4','5',  'é','è','ê','ë','à',
              '6','7','8','9','',  'ù','','-','_','.',
              '','','','','',  '','','','','OK']
  TABLE = [HIRAGANA]
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #    mode : 初期入力モード (0 = ひらがな、1 = カタカナ)
  #--------------------------------------------------------------------------
  def initialize(mode = 0)
    super(88, 148, 368, 248)
    @mode = mode
    @index = 0
    refresh
    update_cursor
  end
  #--------------------------------------------------------------------------
  # ● 文字の取得
  #--------------------------------------------------------------------------
  def character
    if @index < 88
      return TABLE[@mode][@index]
    else
      return ""
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソル位置 モード切り替え判定 (かな/カナ)
  #--------------------------------------------------------------------------
  def is_mode_change
    return (@index == 88)
  end
  #--------------------------------------------------------------------------
  # ● カーソル位置 決定判定
  #--------------------------------------------------------------------------
  def is_decision
    return (@index == 89)
  end
  #--------------------------------------------------------------------------
  # ● 項目を描画する矩形の取得
  #    index : 項目番号
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
  # ● リフレッシュ
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
  # ● カーソルの更新
  #--------------------------------------------------------------------------
  def update_cursor
    self.cursor_rect = item_rect(@index)
  end
  #--------------------------------------------------------------------------
  # ● カーソルを下に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_down(wrap)
    if @index < 80
      @index += 10
    elsif wrap
      @index -= 80
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを上に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_up(wrap)
    if @index >= 10
      @index -= 10
    elsif wrap
      @index += 80
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを右に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_right(wrap)
    if @index % 10 < 9
      @index += 1
    elsif wrap
      @index -= 9
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを左に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_left(wrap)
    if @index % 10 > 0
      @index -= 1
    elsif wrap
      @index += 9
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを決定へ移動
  #--------------------------------------------------------------------------
  def cursor_to_decision
    @index = 89
  end
  #--------------------------------------------------------------------------
  # ● 次のページへ移動
  #--------------------------------------------------------------------------
  def cursor_pagedown
    @mode = (@mode + 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 前のページへ移動
  #--------------------------------------------------------------------------
  def cursor_pageup
    @mode = (@mode + TABLE.size - 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  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

J'ai juste un blême au niveau du OK mais je éditerai si je répart l'affaire
Revenir en haut Aller en bas
Twilight
Templier Lv.15
Templier Lv.15
Twilight


Féminin Age : 29
Inscrit le : 03/04/2008
Messages : 1240

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeLun 7 Avr 2008 - 0:19

ok cool merci.... sauf que je débute dans VX et les scripts
et moi...ça colle pas! donc svp lol, je sais que j'en demande, mais
on peut tu être un peu plus précis parceque la je sais que
je le metterai pas à la bonne place ce script
:depression:
Revenir en haut Aller en bas
Invité
Invité
avatar



[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeLun 7 Avr 2008 - 2:17

lol, je sais même pas trouver le script moi huhuhu ^^
Revenir en haut Aller en bas
Invité
Invité
avatar



[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeLun 7 Avr 2008 - 6:25

Tous les scripts que tu ajoutes, faut les mettre au dessus de Main, mais en dessous des scripts de base =)

Spoiler:
Revenir en haut Aller en bas
Frudanle
Poulet carnivore Lv.2
Poulet carnivore Lv.2
Frudanle


Masculin Inscrit le : 27/03/2008
Messages : 28

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeLun 7 Avr 2008 - 9:01

Moi en y jouant je me suis rendu compte qu'il me manquait le h,H et aussi le x,X ! Donc j'ai corrigé cela en les mettant à la bonne place voila :

Edit: Correction: ajout du chiffre "0".

Code:
#==============================================================================
# ■ Window_NameInput
#------------------------------------------------------------------------------
#  名前入力画面で、文字を選択するウィンドウです。
#==============================================================================

class Window_NameInput < Window_Base
  #--------------------------------------------------------------------------
  # ● 文字表
  #--------------------------------------------------------------------------
  HIRAGANA = [ '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',
              '','','','',
              '0','1','2','3','4',  'é','è','ê','ë','à',
              '5','6','7','8','9',  'ù','','-','_','.',
              '','','','','',  '','','','','OK']
  TABLE = [HIRAGANA]
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #    mode : 初期入力モード (0 = ひらがな、1 = カタカナ)
  #--------------------------------------------------------------------------
  def initialize(mode = 0)
    super(88, 148, 368, 248)
    @mode = mode
    @index = 0
    refresh
    update_cursor
  end
  #--------------------------------------------------------------------------
  # ● 文字の取得
  #--------------------------------------------------------------------------
  def character
    if @index < 88
      return TABLE[@mode][@index]
    else
      return ""
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソル位置 モード切り替え判定 (かな/カナ)
  #--------------------------------------------------------------------------
  def is_mode_change
    return (@index == 88)
  end
  #--------------------------------------------------------------------------
  # ● カーソル位置 決定判定
  #--------------------------------------------------------------------------
  def is_decision
    return (@index == 89)
  end
  #--------------------------------------------------------------------------
  # ● 項目を描画する矩形の取得
  #    index : 項目番号
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
  # ● リフレッシュ
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
  # ● カーソルの更新
  #--------------------------------------------------------------------------
  def update_cursor
    self.cursor_rect = item_rect(@index)
  end
  #--------------------------------------------------------------------------
  # ● カーソルを下に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_down(wrap)
    if @index < 80
      @index += 10
    elsif wrap
      @index -= 80
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを上に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_up(wrap)
    if @index >= 10
      @index -= 10
    elsif wrap
      @index += 80
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを右に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_right(wrap)
    if @index % 10 < 9
      @index += 1
    elsif wrap
      @index -= 9
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを左に移動
  #    wrap : ラップアラウンド許可
  #--------------------------------------------------------------------------
  def cursor_left(wrap)
    if @index % 10 > 0
      @index -= 1
    elsif wrap
      @index += 9
    end
  end
  #--------------------------------------------------------------------------
  # ● カーソルを決定へ移動
  #--------------------------------------------------------------------------
  def cursor_to_decision
    @index = 89
  end
  #--------------------------------------------------------------------------
  # ● 次のページへ移動
  #--------------------------------------------------------------------------
  def cursor_pagedown
    @mode = (@mode + 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 前のページへ移動
  #--------------------------------------------------------------------------
  def cursor_pageup
    @mode = (@mode + TABLE.size - 1) % TABLE.size
    refresh
  end
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  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
Revenir en haut Aller en bas
Raitosan
† Fondateur du forum †
† Fondateur du forum †
Raitosan


Masculin Age : 31
Inscrit le : 09/02/2008
Messages : 1974

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeLun 7 Avr 2008 - 9:25

Merci frudanle!
Revenir en haut Aller en bas
http://www.zeforiu.fr
Twilight
Templier Lv.15
Templier Lv.15
Twilight


Féminin Age : 29
Inscrit le : 03/04/2008
Messages : 1240

[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitimeLun 7 Avr 2008 - 12:37

ah! c'est pour ça qu'ca marchait jamais! c'est au dessu de Main xD
en tout cas gros merci ^^
Revenir en haut Aller en bas
Contenu sponsorisé




[Résolu] Normal qu'il y ait pas de "H" Empty
MessageSujet: Re: [Résolu] Normal qu'il y ait pas de "H"   [Résolu] Normal qu'il y ait pas de "H" Icon_minitime

Revenir en haut Aller en bas
 

[Résolu] Normal qu'il y ait pas de "H"

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

 Sujets similaires

-
» [Résolu] Script - Définition de " class "
» [Résolu] Erreur après modification de "cat form" - Merci Blockade
» Base de données > Objets, inventaire et "spécials"... [resolu]
» [Résolu] Problème avec le script "KGC Large Party"- Merci Zangther
» [Encore une autre question et : RESOLU]Problème lors d'un " tester le combat " dans la BDD

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
RPG Maker VX :: Entraide :: Problèmes et Solutions :: Résolu-
Créer un forum | ©phpBB | Forum gratuit d'entraide | Signaler un abus | Forum gratuit