FS#90 - Improve Unicode string classes

Added the sf::String class to replace (and enhance) sf::Unicode::Text
FS#138 - Rename sf::String to sf::Text


git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1286 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-11-26 08:07:38 +00:00
parent 9f063921c9
commit 78247bd386
46 changed files with 3003 additions and 1725 deletions

View file

@ -45,7 +45,7 @@ int main()
return EXIT_FAILURE;
// Initialize the end text
sf::String end;
sf::Text end;
end.SetFont(font);
end.SetSize(60.f);
end.Move(150.f, 200.f);
@ -125,12 +125,12 @@ int main()
if (ball.GetPosition().x < 0.f)
{
isPlaying = false;
end.SetText("You lost !\n(press escape to exit)");
end.SetString("You lost !\n(press escape to exit)");
}
if (ball.GetPosition().x + ball.GetSize().x > window.GetView().GetSize().x)
{
isPlaying = false;
end.SetText("You won !\n(press escape to exit)");
end.SetString("You won !\n(press escape to exit)");
}
if (ball.GetPosition().y < 0.f)
{