This PR fixes #208 🐞 and improves the use of dialog menu options adding the use of wrapping and BBCode ⭐ ⭐ ⭐
Fixes
The cursor no longer uses the "waiting" texture when the GUI is showing the dialog menu options.
Long dialog menu options now wrap the text.
Godot was showing a warning for the system_text.gd and 9_verb_hover_text.gd scripts related to their anchors and changing their sizes during _ready(). An await was added to fix the warning.
New features
Added an advanced section to ProjectSettings > Popochiu for devs to set options. At the moment, the only available option is to make Popochiu use the source scene for the selected template (instead of the one in res://game/graphic_interface so testing changes in templates don't require to update the template using the Setup popup.
The Dialog Menu component now exposes more variables in the Inspector to configure how the panel and its options are rendered.
Dialog Menu Option now allows to use BBCode.
If the game is set as pixel_art_game in the ProjectSettings, then a CanvasItem.TEXTURE_FILTER_NEAREST filter is applied to the graphic interface root node so fonts render properly.
Other changes
Deprecated the option in ProjectSettings to define the max number of dialog options to show. Now it depends on the max_height property of the DialogMenu component. This is something that should be modified in the Inspector of the node.
This PR fixes #208 🐞 and improves the use of dialog menu options adding the use of wrapping and BBCode ⭐ ⭐ ⭐
Fixes
system_text.gd
and9_verb_hover_text.gd
scripts related to their anchors and changing their sizes during_ready()
. Anawait
was added to fix the warning.New features
ProjectSettings > Popochiu
for devs to set options. At the moment, the only available option is to make Popochiu use the source scene for the selected template (instead of the one inres://game/graphic_interface
so testing changes in templates don't require to update the template using the Setup popup.pixel_art_game
in the ProjectSettings, then a CanvasItem.TEXTURE_FILTER_NEAREST filter is applied to the graphic interface root node so fonts render properly.Other changes
max_height
property of the DialogMenu component. This is something that should be modified in the Inspector of the node.