Describe the bug
When the inventory bar is full, arrows are shown to allow scrolling through inventory items.
The following issues came up when testing this feature:
1) The calculation of the items width did not consider the separation space between the items.
2) The items width was calculated after a timer. When adding multiple items at once, this led to the minor issue that items were being added while the width was not yet calculated.
3) Godot 3 is forcing a horizontal scrollbar which is scaled to size 0. However on a large screen there was still a small line of 1 pixel width visible of this scrollbar.
Expected behavior
I will create a pull request that fixes the 3 issues:
1) Adding the separation of the scroll container starting with the second item
2) Moving the calculation before the timer
3) Adding a color modulation to make the horizontal scrollbar transparent
Describe the bug When the inventory bar is full, arrows are shown to allow scrolling through inventory items. The following issues came up when testing this feature: 1) The calculation of the items width did not consider the separation space between the items. 2) The items width was calculated after a timer. When adding multiple items at once, this led to the minor issue that items were being added while the width was not yet calculated. 3) Godot 3 is forcing a horizontal scrollbar which is scaled to size 0. However on a large screen there was still a small line of 1 pixel width visible of this scrollbar.
Expected behavior I will create a pull request that fixes the 3 issues: 1) Adding the separation of the scroll container starting with the second item 2) Moving the calculation before the timer 3) Adding a color modulation to make the horizontal scrollbar transparent