[Lua] Select setting renderer rendering bug with variable length entries

When using the select settings renderer, and using entries with different width, the longer entries get cut off when cycling from a shorter entry to a longer entry. Cycling a full round seems to fix the issue, but is not always possible as the widget can get entirely cut off. Backing out of the settings menu and back in fixes until the game is restarted.

I made a simple test mod that demonstrates the effect clearly: my_lua_mod.7z

It has a select option with the entries

  • Normal (default)
  • A longer entry name
  • 1

Load the game with the mod enabled, find it in the script settings menu.

Cycle the setting "TestSelect" once right gets me the following result: screenshot013

It's impossible to cycle right anymore due to the cutoff, so cycle once to the left now for the following result: screenshot000

Platform: Windows 11 Version: .49rc6