Praytic/youtd2

Item cursor is too big on some screen setups

Kvel2D opened this issue · 2 comments

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 d95df33
So size is even larger.

Icon is two times bigger than intended size.

See this function: MoveItem._get_item_cursor_icon()

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

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)