Code: |
def afficher_quizz(array=[],array2=0,position=336,opacite=255) if array == [] return false end @message_waiting = true $position = position $opacite = opacite $game_system.message_position = 3 $game_system.message_frame = 2 $game_temp.choice_start = 0 $game_temp.message_proc = Proc.new { @message_waiting = false } $game_temp.message_text = "" $game_temp.choice_max = array.size for i in 0...array.size $game_temp.message_text += " " + array[i] + "\n" end $game_temp.choice_cancel_type = array2 current_indent = @list[@index].indent $game_temp.choice_proc = Proc.new { |n| @branch[current_indent] = n } end |
Code: |
def reset_window # Redéfinition if $game_temp.in_battle self.y = 342 @dummy.y = 336 else case $game_system.message_position when 0 # 上 self.y = 6 @dummy.y = 0 when 1 # 中 self.y = 166 @dummy.y = 160 when 2 # Redéfinition position du cadre inférieur self.y = 342 @dummy.y = 336 when 3 self.y = $position + 6 @dummy.y = $position end end case when $game_system.message_frame == 0 #self.opacity = 255 @dummy.opacity = 255 when $game_system.message_frame == 1 #self.opacity = 0 @dummy.opacity = 0 when $game_system.message_frame == 2 #self.opacity = $opacite @dummy.opacity = $opacite else #self.opacity = 0 @dummy.opacity = 0 end self.back_opacity = 255 end |
Code: |
if Input.trigger?(Input::C) if $game_temp.choice_max > 0 $game_system.se_play($data_system.decision_se) $game_temp.choice_proc.call(self.index) end terminate_message end return |
Code: |
if Input.trigger?(Input::C) if $game_temp.choice_max > 0 $game_system.se_play($data_system.decision_se) $game_temp.choice_proc.call(self.index) $choix = $game_temp.choice_proc.call(self.index) end terminate_message end return |