Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Incorrect background paint reported by getInfo("map") #5177

Closed
kwvanderlinde opened this issue Feb 5, 2025 · 1 comment · Fixed by #5181
Closed

[Bug]: Incorrect background paint reported by getInfo("map") #5177

kwvanderlinde opened this issue Feb 5, 2025 · 1 comment · Fixed by #5181
Assignees
Labels

Comments

@kwvanderlinde
Copy link
Collaborator

Describe the Bug

The background paint returned by getInfo("map") or getInfo("zone") is actually the grid color.

To Reproduce

  1. Create a new map with a black background.
  2. Set the map grid colour to white.
  3. Type [r: json.get(getInfo("map"), "background paint")] into chat. It will return #ffffffff, the colour of the grid.
  4. Change the grid colour to any other colour.
  5. Run [r: json.get(getInfo("map"), "background paint")] again. It will return the new grid colour.

Expected Behaviour

The background colour of the map should be returned. In the provided example, it should return #ff000000.

Screenshots

No response

MapTool Info

1.15.2

Desktop

Linux Mint 22.1

Additional Context

No response

@kwvanderlinde kwvanderlinde self-assigned this Feb 5, 2025
@kwvanderlinde
Copy link
Collaborator Author

The "fog paint" has the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging a pull request may close this issue.

1 participant