//#define FIX_ISSUE_640
#ifdef FIX_ISSUE_640
// (640) Add a title
{
game_options options; //Cannot be const
// The line below modifies the game_options,
// as it will initialize the text with a font,
// that is taken from the game_options' resources:
// getting the sf::Font by reference is non-const
const sf::Text title_text{
create_title_text(options)
};
assert(title_text.getString() == "Drakkar.io");
assert(title_text.getCharacterSize() > 20); //Bigger is OK
}
#endif // FIX_ISSUE_640
There is also a FIX_ISSUE_640 in options_view::show:
In big letters.
Test is here:
There is also a
FIX_ISSUE_640
inoptions_view::show
:It should work and look nice :-)