Fix unclickable shop info icons #260

Merged
x-qq merged 2 commits from fix_shop_icons_not_clickable into master 2020-02-11 13:57:42 +00:00
x-qq commented 2020-02-11 09:41:49 +00:00 (Migrated from github.com)
  • Fixed unclickable shop icons by applying the same offset to event catching rects as is applied to the shop UI when it's being drawn in the main window.
  • Removed strange adjustment of mouse click coords in shop UI by (-5, -5) px.
  • Removed click_shop_rect function that was doing "click emulation" in shop UI. Rationale: 1) it was causing visual glitches, because 2) various widgets do not get to decide when .display() is called, since other drawables may not be ready
  • Removed unneeded shop scrollbar redraw call which may improve performance of that UI a bit

Fixes #247

* Fixed unclickable shop icons by applying the same offset to event catching rects as is applied to the shop UI when it's being drawn in the main window. * Removed strange adjustment of mouse click coords in shop UI by (-5, -5) px. * Removed click_shop_rect function that was doing "click emulation" in shop UI. Rationale: 1) it was causing visual glitches, because 2) various widgets do not get to decide when .display() is called, since other drawables may not be ready * Removed unneeded shop scrollbar redraw call which may improve performance of that UI a bit Fixes #247
CelticMinstrel commented 2020-02-11 13:20:14 +00:00 (Migrated from github.com)

You've removed click_shop_rect for some reason and now draw_shop_graphics is neverr called with true, which if I understand correctly means the pressed effect when clicking will not occur. Can you fix this, please? Putting click_shop_rect back where it was would be the easiest way, but whatever way you prefer is fine too.

You've removed `click_shop_rect` for some reason and now `draw_shop_graphics` is neverr called with `true`, which if I understand correctly means the pressed effect when clicking will not occur. Can you fix this, please? Putting `click_shop_rect` back where it was would be the easiest way, but whatever way you prefer is fine too.
Sign in to join this conversation.
No description provided.