CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.26k stars 4.12k forks source link

Magiclysm spell casting menu doesn’t render color tags in the spell description #75669

Closed db48x closed 1 week ago

db48x commented 1 month ago

Describe the bug

Colors are shown correctly in all other parts of the menu; it is only the description that ignores them.

Attach save file

n/a

Steps to reproduce

Cast a spell using the Magiclysm mod.

Expected behavior

Spell descriptions should not have visible color tags (things like “” and the like). Those tags should be used to actually change the text color.

Screenshots

Screenshot 2024-08-14 at 10-50-23 uilist issues from migration #74341 · Issue #75661 · CleverRaven_Cataclysm-DDA

Versions and configuration

Additional context

Note that we cannot actually wrap text into paragraphs properly if it contains color tags. We are currently limited to either drawing a single line of colored text, or wrapping a paragraph, but we cannot do both at the same time. A short–term solution to this problem might simply be to strip the color tags and then render the description using wrapping but no color. At least then the text would be readable and the color tags would not be shown.

eiennohito commented 3 weeks ago

Also new implementation does not show non-mana requirements.

New list: New list

Old list has components required section Old list

ThePotatomancer commented 1 week ago

@eiennohito I separated your report to a new issue, will tackle it hopefully later today