Skip to content

Fix: allow the large 2D map area exit arrows to be reverted#5958

Merged
vadi2 merged 4 commits intoMudlet:developmentfrom
SlySven:Fix_allowForLargeAreaArrowsToBeSwitchedOff
Feb 8, 2022
Merged

Fix: allow the large 2D map area exit arrows to be reverted#5958
vadi2 merged 4 commits intoMudlet:developmentfrom
SlySven:Fix_allowForLargeAreaArrowsToBeSwitchedOff

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Feb 6, 2022

This is to allow existing map files that were not laid out to accommodate them to still use the previous smaller ones.

The large arrows came about as a side effect of my adding door markings to more exits (and stubs) in #4608.

This should close #5945. Whilst hunting down this issue I found that the method void T2DMap::paintAreaExits(...) actually draws ALL the room exits - so I took the liberty of renaming it to: void T2DMap::paintRoomExits(...). That method also contained some local variables that had names beginning with the _ character - this is not recommended - even if it is not followed by the reserved cases of another one or an UPPER-case letter - I've also fixed those.

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

Release post highlight

Fix: allow for larger area exit arrows introduced as part of Mudlet 4.15.0 to be changed back to something like they were before then - so that existing maps that were not laid out to accommodate them can continue to be usable.

This is to allow existing map files that were not laid out to accommodate
them to still use the previous smaller ones.

The large arrows came about as a side effect of my adding door markings to
more exits (and stubs) in Mudlet#4608.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner February 6, 2022 14:56
@SlySven SlySven requested a review from a team February 6, 2022 14:56
@mudlet-machine-account mudlet-machine-account added this to the 4.16.0 milestone Feb 6, 2022
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Feb 6, 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

github-actions bot commented Feb 6, 2022

Messages
✔️

PR type: Fix

Generated by 🚫 dangerJS against 3b9e82f

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 6, 2022

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

Small arrows are now the default. The user will have to ask to use the
large ones - which means that existing maps should not have an issue with
the area exit arrows now - unlike as has been reported for the 4.15.0
release version.

A scaling factor used with different values for small and large area exit
arrows has been changed to be only generated once per call to
`(void) T2DMap::paintRoomExits(...)` instead of once or twice depending on
the direction of the exit in the XY-plane.

A tooltip for this *knob* has been removed as it specifically mentioned the
version of Mudlet that introduced the large area exits - and it doesn't
need to now the default is pretty much as Mudlet would have been before
that version.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
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.

Nice, works and default is small as before.

Peek.2022-02-08.12-41.mp4

@vadi2 vadi2 modified the milestones: 4.16.0, 4.15.1 Feb 8, 2022
@vadi2 vadi2 enabled auto-merge (squash) February 8, 2022 11:43
@mudlet-machine-account mudlet-machine-account modified the milestones: 4.15.1, 4.16.0 Feb 8, 2022
@vadi2 vadi2 merged commit 9a9756b into Mudlet:development Feb 8, 2022
@SlySven SlySven deleted the Fix_allowForLargeAreaArrowsToBeSwitchedOff branch March 23, 2022 03:51
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.

Arrows leading to other exits got bigger in 4.15

3 participants