-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Tests that assert graphical positioning of dialog options (texts).
As with any graphical tests, this is impossible to test using script API, therefore should be tested by making screenshots (in native resolution) and comparing these screenshots with, for example, imported sprites containing drawn text, or text drawn on dynamic sprites at runtime (whatever is more convenient and reliable).
In order to test dialog options, a "Run game loops during dialog options" should be enabled in game settings.
The tests may be run only from "repeatedly_execute_always", while the options are displayed.
Dialog options are controlled by multiple settings. First of all these should be documented. This may also be useful for the user manual.
What should be tested:
- Dialog options surface positioning on screen.
- Multiple options positioning (x,y) on a dialog options surface, gaps between options.
- Multi-line options (wrapped text), that relative positioning of their lines match font's linespacing.
- Bullet graphic positioning.
Types of dialog options:
- Default standard, when no GUI is assigned for dialog options.
- Regular GUI assigned for dialog options.
- TextWindow gui assigned for dialog options.
- Custom dialog options rendering.