mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
Fix text-only dialogues with continues
This commit is contained in:
@@ -413,8 +413,11 @@ end
|
|||||||
|
|
||||||
# Sends a dialogue displaying only text.
|
# Sends a dialogue displaying only text.
|
||||||
def send_text_dialogue(player, dialogue)
|
def send_text_dialogue(player, dialogue)
|
||||||
title = dialogue.title
|
text = dialogue.text
|
||||||
send_generic_dialogue(player, dialogue, title, TEXT_DIALOGUE_IDS)
|
dialogue_id = TEXT_DIALOGUE_IDS[text.size - 1]
|
||||||
|
|
||||||
|
text.each_with_index { |line, index| set_text(player, dialogue_id + 1 + index, line) }
|
||||||
|
player.interface_set.open_dialogue(ContinueDialogueAdapter.new(player, dialogue.options[0]), dialogue_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sends a dialogue displaying the player's head.
|
# Sends a dialogue displaying the player's head.
|
||||||
|
|||||||
Reference in New Issue
Block a user