Hi, I am following the tutorials, but the beginning of the 5th chapter let me quite confuse.
When I try to start a dialog with 'd', I only get a floating text with no frame, and I can not close the dialog, nor have a cursor to make a choice for "question=true" dialogs. And I will stay stuck on this window unless I rework on_dialog_finished(), sol.main:on_key_pressed(key) and create a new "key_pressed_on_dialog(key)" function.
My code without this rework is quite similar to the one in the tuto but adapted for version 1.1. Here is the chunk :
function game_manager.create(file)
--create the game (but not start it)
game = sol.game.load(file)
game:set_starting_location("garden","entrance")
--menu management
game.on_paused = function()
in_dialog = true
game:start_dialog("pause_menu", function(answer)
--it gets stucks even before getting there
if answer==1 then
game:save()
end
game:set_paused(false)
end)
end
end
I did not override on_dialog_started(), but neither did christopho in the tutos and yet he has decent dialog boxes. If this change is due to the migration 1.0 -> 1.1, then it seems to me like a quite hudge work to rebuild the yes/no question dialogs from scratch, and this is only the beginning.
Am I missing something ?