Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Displaying a status  (Read 1319 times)

0 Members and 1 Guest are viewing this topic.

LucasShadow

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Displaying a status
« on: December 29, 2011, 05:47:17 am »
So I have been messing around with trying to get the status of the music status to display as text.  I have no trouble displaying text, or getting the status, its getting the status to display as text on my screen thats the problem.  Any help would be much appreciated :)

-Lucas Shadow

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Displaying a status
« Reply #1 on: December 29, 2011, 10:29:01 am »
You can't convert enumerators to strings, so you have to write a case differentiation where you assign manually a string to every sf::Music::Status value.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

LucasShadow

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Displaying a status
« Reply #2 on: December 29, 2011, 05:10:09 pm »
Alright man, thanks. I have it working now ;)