mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-29 02:51:41 +00:00
* Fixes tgui text input trimming the last char if the input hits the max length (#81869) ## About The Pull Request There's a one character discrepancy between the maximum length in the tgui input panel and that of the copied text, that's because `copytext("123456", 6)` will actually return `"12345"`, cutting off the last digit, so we need to increment the `max_length` by one if we want the right amount of characters to be return. This is also somewhat detailed in the DM lang "bluebook", and is in line with how `list.Copy()` also works. ## Why It's Good For The Game This fixes the museum password pad, which trimmed the last character of the input because of this oversight. ## Changelog 🆑 fix: Fixed the tgui text input trimming the last character of the input if it hits the maximum length. fix: This also fixes the PIN pad leading to the right wing of the museum away mission. /🆑 * Fixes tgui text input trimming the last char if the input hits the max length --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>