spicylobstergames / shotcaller-godot

2D top-down 1v1 MOBA with autonomous units. Design doc below 👇
https://www.notion.so/erlendsh/Shotcaller-7374d2b2819c42ccb40f01dc7089d419
Other
226 stars 28 forks source link

Item's sell button #210

Open WhalesState opened 1 year ago

WhalesState commented 1 year ago

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.