Skip to content

BugFix: fix Json Map room symbol loading#5312

Merged
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_fixJsonMapRoomSymbolLoading
Jul 20, 2021
Merged

BugFix: fix Json Map room symbol loading#5312
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_fixJsonMapRoomSymbolLoading

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Jul 11, 2021

This should close #5295 by providing the code that is missing from (void) TRoom::readJsonSymbol(...) - I think it was omitted because the person who coded the ability to colourise the room symbol text was working on that whilst I was coding the JSON map handling.

It also fixes:

  • a Qt advisory (warning) to use a const reference when using a C++ for loop to iterate through a QJsonArray of custom environements (colors).
  • a failure to update the player room indicator when it is changed by loading a Json Map file.
  • a comment in (void) Host::getPlayerRoomStyleDetails(...) that is redundant since we remove the mutex for accessors.

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

Release post highlight

Room symbols (and their colouration if they are not colour emojis) will now be loaded from a JSON format map file.

This should close Mudlet#5295 by providing the code that is missing from
`(void) TRoom::readJsonSymbol(...)` - I think it was omitted because the
person who coded the ability to colourise the room symbol text was working
on that whilst I was coding the JSON map handling.

It also fixes:
* a Qt advisory (warning) to use a const reference when using a C++ `for`
loop to iterate through a QJsonArray of custom environements (colors).
* a failure to update the player room indicator when it is changed by
loading a Json Map file.
* a comment in `(void) Host::getPlayerRoomStyleDetails(...)` that is
redundant since we remove the mutex for accessors.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven added this to the 4.13.0 milestone Jul 11, 2021
@SlySven SlySven requested a review from a team as a code owner July 11, 2021 16:41
@SlySven SlySven requested a review from a team July 11, 2021 16:41
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jul 11, 2021

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

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

Copy link
Copy Markdown
Contributor

@Kebap Kebap left a comment

Choose a reason for hiding this comment

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

Fixes the bug as expected, also with emoji as symbols!
Did not test the scope creep as I didn't even understand.

@Kebap Kebap removed their assignment Jul 13, 2021
@SlySven SlySven merged commit 61ed789 into Mudlet:development Jul 20, 2021
@SlySven SlySven deleted the BugFix_fixJsonMapRoomSymbolLoading branch August 9, 2021 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Json map loads no room symbols

3 participants