How to manipulate StringIDs? #12266
Unanswered
TheMowgliMan
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I don't think you should limit how long NewGRF vehicle names can be, rather shouldn't the limit for player-made names be extended or removed? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Apart from whether this is actually desirable to do... You can't truncate a StringID, but you can truncate a string. Use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on solving #10370, and I keep running into how difficult it is to manipulate the contents of a StringID. As far as I can tell, using StringIDs goes very low-level in the GUI code---far too far for an edit specifically for what I'm doing.
I want to truncate a StringID past the 32nd character in this case. What would likely be the best way to go about this?
Beta Was this translation helpful? Give feedback.
All reactions