thcrap
thcrap copied to clipboard
thcrap: Support right-to-left scripts
Right-to-left text
Description
It was only a matter of time until people asked for this.
Prerequisites
- #17 (text layout engine)
- #16 (Win32 dialog patching)
Implementation
- If possible, this should not require a special
"rtl": trueflag in the run configuration. Directionality should be automatically determined by the characters in a string. Otherwise, patch stacks that have a RTL language on top of an LTR one couldn't easily switch between both. - [ ] Neither should it require all texts to simply be wrapped in a
<r$text$>command. Once tabs come into play, we need to mirror those too. - [ ] Add a breakpoint to read the current width of the rendering bitmap.
- [ ] According to this page, Win32 dialogs can be easily mirrored. Find the best way to do this.
- [ ] ... and then there's texture positioning. We probably could start by searching for a general "set X position" point and mirroring that value. Anything more will be part of a separate issue, though.