Forum

> > CS2D > Scripts > Character Limit (menu func)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Character Limit (menu func)

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Character Limit (menu func)

Mami Tomoe
User Off Offline

Zitieren
Specifically for the cs2d lua cmd menu function, is there a character limit?

I have a very detailed menu and I've noticed that if I add more text to it, the latter buttons would get omitted.

Is there a character limit? How does it work? Is there a way around it? Will it be fixed if it is an issue?

alt Re: Character Limit (menu func)

Mami Tomoe
User Off Offline

Zitieren
The regular function, it's old code, I didn't touch/update my framework.

I don't know anything about the UTF-8 stuff.

I can give you a sample function that you can test, but I'm unavailable to do so at the moment.

alt Re: Character Limit (menu func)

Mami Tomoe
User Off Offline

Zitieren
user SQ hat geschrieben
There might be 255 character limit.
...but there might be the limit in the drawing function itself.


Could you check, please?
I spent about an hour trying to debug the cause of this and ended up realising that the problem comes from CS2D.

And now I'd like to know if I should reduce the amount of detail in my menus or keep it as is and await for an update.
1× editiert, zuletzt 18.12.21 17:13:17

alt Re: Character Limit (menu func)

DC
Admin Off Offline

Zitieren
The character limit is 400 there. That's for networking reasons (MTU etc). This most likely won't be raised because it would be a lot of work to do so.

I updated the documentation accordingly (cs2d lua cmd menu).

alt Re: Character Limit (menu func)

Mami Tomoe
User Off Offline

Zitieren
I understand.
A bit odd since I didn't exceed the logical button length on my menu, so even though wide menus are supported, you can't actually use the entire length of the button on every button (I barely reached half).

Thank you for the quick response.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht