Solarus Wiki

A wiki for the Solarus engine community

User Tools

Site Tools


upgrade_from_1.0_to_1.1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
upgrade_from_1.0_to_1.1 [2013/10/15 23:02]
christopho
upgrade_from_1.0_to_1.1 [2018/12/22 14:14] (current)
Line 29: Line 29:
 ''​sol.main.load_file("​path/​to/​dialog_box.lua"​)(game)''​. ''​sol.main.load_file("​path/​to/​dialog_box.lua"​)(game)''​.
 Then, call ''​game:​initialize_dialog_box()''​ when starting the game and ''​game:​quit_dialog_box()''​ when the game stops. Then, call ''​game:​initialize_dialog_box()''​ when starting the game and ''​game:​quit_dialog_box()''​ when the game stops.
 +
 +<box 80% round orange|Remark>​The dialog box script of Zelda Mystery of Solarus DX (ZSDX) contains several calls to ''​game:​set_custom_command_effect()'',​ a function that only exists in the head-up display (HUD) of ZSDX. (This function is defined in ''​hud/​hud.lua''​ and is used to make the action icon and the attack icon synchronized with the dialog.) If your quest uses the same HUD as ZSDX, you will be okay. Otherwise, you can just comment out these calls to avoid an error.</​box>​
  
 The Lua dialog API was changed to be adapted to the customized dialog box. The Lua dialog API was changed to be adapted to the customized dialog box.
upgrade_from_1.0_to_1.1.txt ยท Last modified: 2018/12/22 14:14 (external edit)