Praytic / youtd2

Classic community-driven session-based Tower Defense game with RPG elements.
https://youtd2.com/
MIT License
97 stars 17 forks source link

Item cursor is too big on some screen setups #417

Open Kvel2D opened 6 months ago

Kvel2D commented 6 months ago

Size is too large:

Screenshot_2024-05-03_at_2 06 35_PM

Intended size: 2024-05-04 07_33_19-YouTD 2 (DEBUG)

Note that first screenshot was taken before this commit d95df33cfd3fd9380b6e269b63a50d456de09422 So size is even larger.

Icon is two times bigger than intended size.

See this function: MoveItem._get_item_cursor_icon()

Kvel2D commented 6 months ago

Dividing by value returned from DisplayServer.screen_get_scale() appears to not help.

Praytic commented 2 months ago

I'm experiencing slightly different behavior with the dragged item now:

  1. Click on an item in stash
  2. It shows this big icon of the item
  3. When I start dragging icon disappears (it may disappear a second after I start dragging)
  4. Item is still dragged so I can click on a tower and item will be transfer from stash to that tower (so only visual part is not working correctly)