Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3688 closed enhancement (fixed)

GUI - allow multiple special sprites.

Reported by: wraitii Owned by: wraitii
Priority: Nice to Have Milestone: Alpha 20
Component: Core engine Keywords: ui
Cc: Patch:

Description

Currently, if we want to overlay an image with a solid color, we need to add a new GUI element solely for this.

I believe we should support this natively using a parameter, as we do for "stretched:" or "grayscale:".

Attachments (1)

GUIOverlays.patch (19.1 KB ) - added by wraitii 8 years ago.
Attached patch does the above, removing the "unaffordable" overlays.

Download all attachments as: .zip

Change History (3)

by wraitii, 8 years ago

Attachment: GUIOverlays.patch added

Attached patch does the above, removing the "unaffordable" overlays.

comment:1 by wraitii, 8 years ago

Owner: set to wraitii
Resolution: fixed
Status: newclosed

In 17456:

Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite.

"color" can make use of the sprite's alpha texture, and the "add_color" effect will now take the original image's alpha into account.
Remove the no longer needed "unaffordableMask" images on a variety of panels.

Somewhat based on a patch by BoeseRaupe. Fixes #2421 and #3688.

comment:2 by wraitii, 8 years ago

Keywords: patch review removed
Note: See TracTickets for help on using tickets.