Skip to content

Show marker portraits without requiring player notes#5978

Open
kwvanderlinde wants to merge 2 commits into
RPTools:developfrom
kwvanderlinde:feature/5977-marker-portrait-without-player-notes
Open

Show marker portraits without requiring player notes#5978
kwvanderlinde wants to merge 2 commits into
RPTools:developfrom
kwvanderlinde:feature/5977-marker-portrait-without-player-notes

Conversation

@kwvanderlinde

@kwvanderlinde kwvanderlinde commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Identify the Bug or Feature request

Resolves #3758

Description of the Change

Updates the check for whether to treat stamps as markers so that a portrait is enough - player notes are not required to show a portrait to players.

I also did some refactoring to consolidate all the marker-identifying logic into ZoneViewModel#updateMarkerList():

  • Deciding whether a token is a marker (used to be in Token#isMarker())
  • Deciding whether a marker is visible (used to be checked in PointerTool#mouseMoved())
  • Deciding which bits should be shown in the marker notes (used to be in PointerTool#createHoverNotes())
  • Picking which marker to use at a given cursor position (used to be in ZoneRenderer#getMarkerAt())
  • Building a list of markers (was already done by ZoneViewModel)

As a result, markers now respect the "Show As Player" setting, e.g., GM names won't be shown when the setting is enabled. It also means there can be no inconsistency in whether a token counts as a marker to show to the current player.

A new Marker type has been introduced to minimially represent the marker data. This decouples marker notes rendering from tokens, most of which is not needed in the context of markers. In the future, maybe this will open the door to some non-token representations for markers. Since this type is not persisted, so it is free to change over time.

Possible Drawbacks

Can't rely on portraits being hidden from players based on the presence of notes.

Documentation Notes

Stamps with a portrait and no notes can be seen as markers by players.

Before (required some player notes):
image

After:
image

Release Notes

  • Changed stamps that have a portrait as markers for players, even when they don't have player notes.

This change is Reviewable

At runtime, markers are now represented by the `Marker` record. `ZoneViewModel` builds a list of these markers,
incorporating the logic that used to be spread across `Token`, `PointerTool` and `ZoneViewModel`, e.g., visibility
checks, notes availability, etc.

In addition, the marker display now respects the current player view, only showing GM markers and GM notes if "Show As
Player"  is not enabled.
@kwvanderlinde kwvanderlinde self-assigned this Jun 18, 2026
@github-actions github-actions Bot added the feature Adding functionality that adds value label Jun 18, 2026
@kwvanderlinde kwvanderlinde moved this from Todo to Awaiting-Review in MapTool 1.19 Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding functionality that adds value

Projects

Status: Awaiting-Review

Development

Successfully merging this pull request may close these issues.

[Feature]: Show stamp portraits to players whenever available

1 participant