the Item's sell button is intended to appear outside of the Item's draw rect, this will have some limitation inside Control or Containers, like it may be clipped or resulting in a deformed grid and if we put both ItemButton and SellButton inside a VBoxContainer it will force update the ItemButton's and will prevent clipping but all the Item's should show their Sell Button at same time.
solution:
add a panel that will show The Item's Information when selected and the sell button when the Item is sellable. which will reduce the draw calls, instead of making every item button shows it's sell button we will just draw it only once inside the panel. this will result in a cleaner UI since we need all buttons to be big enough on Screen to make touch input easier.
the Item's sell button is intended to appear outside of the Item's draw rect, this will have some limitation inside Control or Containers, like it may be clipped or resulting in a deformed grid and if we put both
ItemButton
andSellButton
inside aVBoxContainer
it will force update theItemButton
's and will prevent clipping but all the Item's should show their Sell Button at same time.solution:
add a panel that will show The Item's Information when selected and the sell button when the Item is sellable. which will reduce the draw calls, instead of making every item button shows it's sell button we will just draw it only once inside the panel. this will result in a cleaner UI since we need all buttons to be big enough on Screen to make touch input easier.