multiline label

A Forum Thread for Counter-Strike 1.6

Is it possible to make a label multi-line? And if so, how to do it?

I'm making a Spectator UI and sometimes the name is just too long to fit in the background or it just shrunks and gets all messed up.

To illustrate what I mean:



btw. Yes, I discovered a way to get rid of the bottombar on the steam version, but more on that later.
Sign up to access this!

Replies

  • s0nought avatar
    s0nought Joined 8y ago
    Offline
    3,339 points Ranked 1575th
    11 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    4mo
    Is it possible to make a label multi-line?
    As far as I know, it's not.

    sometimes the name is just too long to fit in the background or it just shrunks and gets all messed up
    I'd suggest you customize the UI to display 31 characters long names (see below).

    If you try to set a 40 characters long name, it will get shorten to 31 characters (see the attached image). It's the limit (for Latin script).
    Invincible
    URL to post:
  • useless__ avatar
    useless__ Joined 5y ago
    Offline
    4mo
    That's also an option.  Iactually found out that "wrap" was the thing I was looking for.
    URL to post:
  • Ghost1667955 avatar
    Ghost1667955 Joined 3mo ago
    Offline
    3mo 3mo
    it might be late to answer, but I have made lots of  bottomspectator.res and spectator.res back in the years aswell. like this one. 

    https://imgur.com/a/MlMtLhp

    as much as I can tell there is no option to make a multi line, but u can lower the font size, widen the spectator ui's background
    and such.

    This is my bottomspectator.res playercombo setup if it helps.

    "xpos" "185"
    "ypos" "9"
    "wide" "272"
    "tall" "22"
    "autoResize" "0"
    "pinCorner" "0"
    "visible" "1"
    "enabled" "1"
    "tabPosition" "1"
    "textHidden" "0"
    "editable" "0"
    "maxchars" "-1"
    "NumericInputOnly" "0"
    "textAlignment" "center"

    renaming some gameui english and valveui english texts helps aswell.
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Author

useless__ avatar
useless__ Joined 5y ago
Offline

useless__
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 430 Views
  • 3 Posts
  • 8moSubmitted
  • 8moModified

More from Submitter

WiPs by Submitter

More Customization Threads

bcp.crwdcntrl.net tracking pixel