[0.16.51] Item descriptions in tooltips should linewrap.

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.16.51] Item descriptions in tooltips should linewrap.

Post by eradicator »

What?
Item descriptions for (some?) items do not linewrap.

My mod quickprint adds a new blueprint prototype with a longish description:
longtip.png
longtip.png (192.95 KiB) Viewed 1142 times

⇒ I can "fix" this by adding some manual linebreaks...

Code: Select all

[item-description]
er-quickprint=Blueprint that automatically resets itself after use.\nCan be customized with mod settings.\nPress __CONTROL__er-quickprint:copy-to-blueprint__ while holding it to get a standard blueprint copy.
manualtooltip.png
manualtooltip.png (132.57 KiB) Viewed 1142 times

⇒ But vanilla items seem to automatically linebreak...

cctooltip.png
cctooltip.png (114.84 KiB) Viewed 1142 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 470
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [0.16.51] Item descriptions in tooltips should linewrap.

Post by Therax »

I'm going to guess that this is specific to blueprint items, because blueprint tooltips may need extremely large widths to hold the preview image.
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.51] Item descriptions in tooltips should linewrap.

Post by Rseding91 »

Therax wrote:
Sat Nov 03, 2018 7:37 pm
I'm going to guess that this is specific to blueprint items, because blueprint tooltips may need extremely large widths to hold the preview image.
Correct. In order to line-wrap there needs to be some "max width after which text is line-wrapped" and because the blueprint tooltip max width is the screen width it doesn't wrap.
If you want to get ahold of me I'm almost always on Discord.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.16.51] Item descriptions in tooltips should linewrap.

Post by eradicator »

Rseding91 wrote:
Fri Nov 09, 2018 10:56 am
Therax wrote:
Sat Nov 03, 2018 7:37 pm
I'm going to guess that this is specific to blueprint items, because blueprint tooltips may need extremely large widths to hold the preview image.
Correct. In order to line-wrap there needs to be some "max width after which text is line-wrapped" and because the blueprint tooltip max width is the screen width it doesn't wrap.
Would it be possible to diffrenciate between an empty and a setup blueprint? (Assuming that detecting the actual length of a setup blueprint before setting the size won't happen?)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Minor issues”