Author Topic: Text editing Patch  (Read 6645 times)

Offline utopiaz

  • Squaddie
  • *
  • Posts: 1
    • View Profile
Text editing Patch
« on: March 13, 2011, 01:02:12 am »
Hello,

I don't know if text-editing capabilities is a desired feature to OpenXcom, but, I've attached a patch for adding text editing capabilities to all text-editing dialogues.

Text editing now supports standard editing/navigation keys such as LEFT, RIGHT, HOME, END and DELETE.

There is one visual/graphical glitch: The font width for the end of string symbol "*" [asterisk] is not the same as the space font. Thus there is a little wiggling when the cursor moves from right from the end of the string.
In XCOM font-table is there any space-like font character that has the same width that the "*" symbol ?

Patch against 12-Mar-2011 git

Offline liamdawe

  • Sergeant
  • **
  • Posts: 27
    • View Profile
Re: Text editing Patch
« Reply #1 on: March 14, 2011, 11:54:27 am »
Could be pretty useful :D

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Text editing Patch
« Reply #2 on: March 22, 2011, 02:31:50 pm »
Thanks, committed. :)

Edit: All the characters are auto-sized, so there's no blank space character. I'll look into a fix.
« Last Edit: March 22, 2011, 11:33:39 pm by SupSuper »