RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
790 stars 257 forks source link

[Bug]: Token image rendered smaller in initiative panel when states are toggled off #4984

Open kwvanderlinde opened 1 week ago

kwvanderlinde commented 1 week ago

Describe the Bug

Using the initiative panel with "Show Token States" enabled will render the token at a size comparable to the initiative label itself. Toggling the option off makes the token image about half the size.

To Reproduce

  1. Toggle "Show Token States" on.
  2. Add a circle token to initiative
  3. Toggle "Show Token States" off.

Expected Behaviour

The token image should remain at the larger size when "Show Token States" is toggled off.

Screenshots

With "Show Token States" on: image

With it off: image

MapTool Info

1.15.2

Desktop

Linux Mint 22

Additional Context

No response

kwvanderlinde commented 1 week ago

Took a gander at the code, looks like this behaviour was deliberate. Still, I don't get the point of it and was pretty surprised as a user!

FullBleed commented 1 week ago

It seem like the states should not affect the size. And if the size is going to change there should be an explicit "compact" option (maybe only available with the states off.)

bubblobill commented 6 days ago

I expect many states are impossible to see on the itty-bitty version

FullBleed commented 6 days ago

I expect many states are impossible to see on the itty-bitty version

True. But it still seems strange that if you're looking to change the display size it's controlled by whether you display states.

It would actually be nice to have more than two display sizes for higher resolution screens. The init panel is currently kind of useless at 4k.