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

Adjusted inventory scrollbar to it's content for #136 #143

Merged
merged 1 commit into from Jun 19, 2020

Conversation

R4nKF1v3
Copy link
Contributor

Fix for #136

  • Adjusted initialization of scrollbar's ratio in GameplayScene
  • Created 2 private helper methods in GameplayScene: int getTotalInventoryItems() and float getBarRatio(float, int, float)
  • Adjusted the mouse wheel scroll reaction on ScrollBarVertical so it reacts accordingly to it's container's size

* Adjusted initialization of scrollbar's ratio in GameplayScene
* Created 2 private helper methods in GameplayScene: int getTotalInventoryItems() and float getBarRatio(float, int, float)
* Adjusted the mouse wheel scroll reaction on ScrollBarVertical so it reacts accordingly to it's container's size

Signed-off-by: R4NK <nahumoscatelli@gmail.com>
@R4nKF1v3 R4nKF1v3 changed the title Adjusted inventory scrollbar to it's contents for #136 Adjusted inventory scrollbar to it's content for #136 Jun 11, 2020
@micycle1 micycle1 merged commit 0728b34 into Stephcraft:master Jun 19, 2020
@R4nKF1v3 R4nKF1v3 deleted the fix-inv-scrollbar-136 branch June 19, 2020 23:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants