mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Event choices shown without an accompanying message are now translated
This commit is contained in:
@@ -190,9 +190,7 @@ class Interpreter
|
|||||||
@message_waiting = true # Lets parallel process events work while a message is displayed
|
@message_waiting = true # Lets parallel process events work while a message is displayed
|
||||||
if choices
|
if choices
|
||||||
cmd_texts = []
|
cmd_texts = []
|
||||||
choices[0].each do |cmd|
|
choices[0].each { |cmd| cmd_texts.push(_MAPINTL($game_map.map_id, cmd)) }
|
||||||
cmd_texts.push(_MAPINTL($game_map.map_id, cmd))
|
|
||||||
end
|
|
||||||
command = pbMessage(message + message_end, cmd_texts, choices[1])
|
command = pbMessage(message + message_end, cmd_texts, choices[1])
|
||||||
@branch[@list[@index].indent] = command
|
@branch[@list[@index].indent] = command
|
||||||
elsif number_input_variable
|
elsif number_input_variable
|
||||||
@@ -212,8 +210,10 @@ class Interpreter
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
def command_102
|
def command_102
|
||||||
choices = setup_choices(@list[@index].parameters)
|
choices = setup_choices(@list[@index].parameters)
|
||||||
|
tl_choices = []
|
||||||
|
choices[0].each { |cmd| tl_choices.push(_MAPINTL($game_map.map_id, cmd) }
|
||||||
@message_waiting = true
|
@message_waiting = true
|
||||||
command = pbShowCommands(nil, choices[0], choices[1])
|
command = pbShowCommands(nil, tl_choices, choices[1])
|
||||||
@message_waiting = false
|
@message_waiting = false
|
||||||
@branch[@list[@index].indent] = command
|
@branch[@list[@index].indent] = command
|
||||||
Input.update # Must call Input.update again to avoid extra triggers
|
Input.update # Must call Input.update again to avoid extra triggers
|
||||||
|
|||||||
Reference in New Issue
Block a user