Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item's sell button #210

Open
WhalesState opened this issue Aug 14, 2023 · 0 comments
Open

Item's sell button #210

WhalesState opened this issue Aug 14, 2023 · 0 comments

Comments

@WhalesState
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant