Title: How to Creating a scalable auto-adjusting size inventory · NichtStudioCode/InvUI · Discussion #41 · GitHub
Open Graph Title: How to Creating a scalable auto-adjusting size inventory · NichtStudioCode/InvUI · Discussion #41
X Title: How to Creating a scalable auto-adjusting size inventory · NichtStudioCode/InvUI · Discussion #41
Description: How to Creating a scalable auto-adjusting size inventory
Open Graph Description: Hi there, I am facing an issue related to the Inventory interface in our project. Currently, we have an implementation called VirtualInventory that does not include the width and height properties....
X Description: Hi there, I am facing an issue related to the Inventory interface in our project. Currently, we have an implementation called VirtualInventory that does not include the width and height properties....
Opengraph URL: https://github.com/NichtStudioCode/InvUI/discussions/41
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to Creating a scalable auto-adjusting size inventory","text":"Hi there,
\nI am facing an issue related to the Inventory interface in our project. Currently, we have an implementation called VirtualInventory that does not include the width and height properties. However, the VirtualInventory does have a size property.
\nMy goal is to create a custom Inventory implementation that can automatically adjust its size based on the items it contains. I'm seeking guidance on how to achieve this effectively.
\nAny suggestions or code examples on how to approach this problem would be greatly appreciated. Thank you in advance for your assistance!
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"VirtualInventory is backed by a one-dimensional ItemStack[]. You can resize it by calling VirtualInventory#resize. If this doesn't suit your needs, you can also implement Inventory yourself
","upvoteCount":1,"url":"https://github.com/NichtStudioCode/InvUI/discussions/41#discussioncomment-6489707"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:9ddb5296-98c6-f9fb-68ad-dcecd4f8f743 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | B9AC:F6EBF:1520ADA:1CDE017:698F1C37 |
| html-safe-nonce | 9733e5df2b85e03e344c95d2aed363e8f161bbd9b850f6eba2dc8db9d7e91fe7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUFDOkY2RUJGOjE1MjBBREE6MUNERTAxNzo2OThGMUMzNyIsInZpc2l0b3JfaWQiOiI0NTAwMjU1MTU1Mjg3OTU2NTM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba14bf622e5452259cbafe69fd25960a1d898ec2db49a343655b85469be56f8b |
| hovercard-subject-tag | discussion:5418633 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/NichtStudioCode/InvUI/41/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/d2293ba93f447d1dbc84eb486c3a3c32f55bedac3c8330c872af00a4e3b49230/NichtStudioCode/InvUI/discussions/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2293ba93f447d1dbc84eb486c3a3c32f55bedac3c8330c872af00a4e3b49230/NichtStudioCode/InvUI/discussions/41 |
| og:image:alt | Hi there, I am facing an issue related to the Inventory interface in our project. Currently, we have an implementation called VirtualInventory that does not include the width and height properties.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff |
| turbo-cache-control | no-preview |
| go-import | github.com/NichtStudioCode/InvUI git https://github.com/NichtStudioCode/InvUI.git |
| octolytics-dimension-user_id | 51272202 |
| octolytics-dimension-user_login | NichtStudioCode |
| octolytics-dimension-repository_id | 331436728 |
| octolytics-dimension-repository_nwo | NichtStudioCode/InvUI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 331436728 |
| octolytics-dimension-repository_network_root_nwo | NichtStudioCode/InvUI |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c9646ffd6f86b00952c2b39e3c62e15904eff1e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width