Skip to content

Progress color gradient incorrectly render #232

Description

@Linx-ESP

Describe the bug
The gradient color has the offset setting, in case of the Completionist (maybe the last one, not this one in particular) the offset is not applied as 0=start of segment and 1=end of segment, but 0=start of bar resulting in different parts of the gradient showing depending on how long that segment is.
This happens on the bars on the game details and cliking the HLTB icon on details that shows it on a dedicated window.

To Reproduce
For each of Main Story, Story+ Side quests and Completionist make a gradient that continues into the next, for example:

  • Main 0 = Light Blue , 1 = Dark Blue | (works best with Light Blue at 0.8 for example)
  • Side = Solid Same Dark Blue
  • Complete 0 = Same Dark Blue, 1 = Pink (works best for Pink at 0.2 for example)

Depending on how the "Completionist segment" is the gradient might or not be correctly transition, as it doesn't use 0 and 1 (or what ever values you use) from its segment but fom the full bar (my guess).
The other transition between the 1st and 2nd segment is correct however long each is (as far as I've seen)

Expected behavior
The offset values would be taken from the segment start and end, making my example gradient fully a gradient.

Screenshots
image
image
The first transition is correct in both, being of different sizes, second isn't

Extensions log
extensions.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions