OpenXcom Forum

OpenXcom Forks => OXCE Suggestions NEW => OpenXcom Extended (OXCE) => OXCE Suggestions OK => Topic started by: Leosky on September 18, 2024, 06:07:17 pm

Title: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Leosky on September 18, 2024, 06:07:17 pm
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 :
(https://i.imgur.com/mmdAgUw.png)

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

Suggestion :
When on top :
(https://i.imgur.com/OOv4T8M.png)

When at bottom :
(https://i.imgur.com/Cq9onHd.png)

When in  the middle :
(https://i.imgur.com/2WDRmY8.png)

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.
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Nord on September 19, 2024, 02:15:30 am
Totally agree. For android oxce this will be very useful.
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Leosky on September 19, 2024, 02:27:17 am
Totally agree. For android oxce this will be very useful.

Didn't tough about that but yeah it should be a mess on android.
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Ethereal on September 19, 2024, 05:13:36 am
Apparently expression; “Conciseness is the sister of talent” was forgotten.  :D
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Meridian on September 19, 2024, 10:27:33 am
OpenXcom Text component doesn't support scrollbars.

If anyone knows how to implement it, feel free to make a PR for Openxcom.
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Leosky on September 19, 2024, 06:57:18 pm
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...
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Unit on November 05, 2024, 03:14:05 am
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
🤷
Title: Re: [Suggestion] Scrolling indicator for long text in UFOpedia articles or other.
Post by: Leosky on November 23, 2024, 12:37:20 am
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.