Skip to content

Add: allow transparent text labels through right click map menu#5873

Merged
Delwing merged 1 commit intoMudlet:developmentfrom
Delwing:transparent-labels
Jan 21, 2022
Merged

Add: allow transparent text labels through right click map menu#5873
Delwing merged 1 commit intoMudlet:developmentfrom
Delwing:transparent-labels

Conversation

@Delwing
Copy link
Copy Markdown
Contributor

@Delwing Delwing commented Jan 16, 2022

Brief overview of PR changes/additions

There was no way to create text label with transparent background through right click menu in map.

Motivation for adding to Mudlet

Getting label creation more consistent with Lua API.

Other info (issues closed, discussion etc)

This is first PR to address some issues with labels. I have some plans to improve that particular area. Hopefully I find some time and energy to do it :)

Release post highlight

@Delwing Delwing requested a review from a team as a code owner January 16, 2022 23:54
@Delwing Delwing requested a review from a team January 16, 2022 23:54
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 16, 2022

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@github-actions
Copy link
Copy Markdown
Contributor

Messages
✔️

PR type: Addition

Generated by 🚫 dangerJS against 3c4c9c2

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it with https://clipground.com/images/clear-seas-clipart-3.jpg which has a transparent background, but it's still not coming out right -

Screenshot 2022-01-17 8 06 35 AM

Does it work for you?

@Delwing
Copy link
Copy Markdown
Contributor Author

Delwing commented Jan 17, 2022

This is fix so text label can use fg and bg color with alpha. Didn't touch images here.
Added that remark into description of PR.

@Delwing Delwing changed the title Add: allow transparent labels through right click map menu Add: allow transparent text labels through right click map menu Jan 17, 2022
@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Jan 17, 2022

Werks

@Delwing Delwing merged commit dce1903 into Mudlet:development Jan 21, 2022
vadi2 pushed a commit that referenced this pull request Jan 31, 2022
…in JSON map files (#5929)

This error was introduced in the original "load/save Maps as JSON" PR, #4546 ...!

Also include a check for transparency - as a recent PR #5873 (*Edited: not 5783!*) added the option for that to both the fore and background colours of map labels.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>

#### Release post highlight
Fix - prevent a corner case not saving the fore/background colour details for map labels correctly in JSON map files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants