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

Author Topic: hiding text  (Read 1688 times)

0 Members and 1 Guest are viewing this topic.

nelsoncookie

  • Newbie
  • *
  • Posts: 3
    • View Profile
hiding text
« on: February 13, 2017, 08:09:52 pm »
Hello there, i was recently wonderingif you could hide text.
But I couldn't find anything on the documentation of it.
Is it not yet implemented or what?
Just wanted to know that. :-\

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: hiding text
« Reply #1 on: February 13, 2017, 08:18:10 pm »
If you want to hide a text (or anything), don't draw it.

Hapax

  • Hero Member
  • *****
  • Posts: 3364
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: hiding text
« Reply #2 on: February 13, 2017, 09:35:17 pm »
Although not drawing it is definitely the best option, it is by no means the only option.

You can also hide it by setting its colour to transparent, setting its scale to zero or even just setting the text's string to an empty string.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*