Author Topic: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.  (Read 923 times)

Offline Leosky

  • Sergeant
  • **
  • Posts: 14
    • View Profile
I'm actually working on the french translation of XCF ; i encounter an issue other language may encounter and I heard of modders having issue with this too : If an article is too long, the fact that you may have to scroll for the rest of the text isn't clear or well rendered.

So my suggestion is to add a better handling of this in OXCE.

Problems :


* No indication that you can scroll down
* Last line overlap the frame border

Suggestion :
When on top :


When at bottom :


When in  the middle :


Recap:
* Text rendered below the frame border
* A spacer when you are at the bottom to avoid the indicator to overlap the end of the text

It may need the possibility to indicate if it's rendered at the left or the right of the frame (or may be the exact position). I'm not aware of how ui modding works but i think it might help a lot of modders and translators and allow to write extended texte for ambiance or informations.

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Totally agree. For android oxce this will be very useful.

Offline Leosky

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Totally agree. For android oxce this will be very useful.

Didn't tough about that but yeah it should be a mess on android.

Offline Ethereal

  • Commander
  • *****
  • Posts: 684
    • View Profile
Apparently expression; “Conciseness is the sister of talent” was forgotten.  :D

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
OpenXcom Text component doesn't support scrollbars.

If anyone knows how to implement it, feel free to make a PR for Openxcom.

Offline Leosky

  • Sergeant
  • **
  • Posts: 14
    • View Profile
I might try when i finished the first pass on XCE french translation. But my c++ is kinda rusted so if someone more into c++ want to make it...

Offline Unit

  • Sergeant
  • **
  • Posts: 16
    • View Profile
If There is a line count feature ....it looks like there's 19 lines of text in the page
My eyes are getting bad
Any line count over the maximum display height could just interject a text line that simply says [more] and bump subsequent text lines +1
Something like that
🤷

Offline Leosky

  • Sergeant
  • **
  • Posts: 14
    • View Profile
If There is a line count feature ....it looks like there's 19 lines of text in the page
My eyes are getting bad
Any line count over the maximum display height could just interject a text line that simply says [more] and bump subsequent text lines +1
Something like that
🤷

There is already a scrolling with wheel button, but it's not very obvious in some occasion. We just need to add a up / down indicator when you can scroll to make that better, with a modding property to indicate if it need to be on the right or left may be to allow better placement.