Skip to content

Bank api inv setup locks#1122

Merged
gmason0 merged 9 commits intochsami:developmentfrom
TheHaliax:BankAPI-InvSetupLocks
Jun 25, 2025
Merged

Bank api inv setup locks#1122
gmason0 merged 9 commits intochsami:developmentfrom
TheHaliax:BankAPI-InvSetupLocks

Conversation

@TheHaliax
Copy link
Contributor

added slot/item lockstate coverage in Rs2Bank API
implemented these changes in InventorySetups with rudimentary auto-sort based on exact setup configuration

added slot/item lockstate coverage in Rs2Bank API
implemented these changes in InventorySetups with rudimentary auto-sort based on exact setup configuration
@TheHaliax TheHaliax marked this pull request as ready for review June 22, 2025 16:53
Copy link
Contributor

@gmason0 gmason0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we revert some of the formatting changes that were made here? makes the PR difficult to follow.

Copy link
Contributor

@gmason0 gmason0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great feature - lets just clean up some of the requests here. I also would like to see more of these log messages move to log.debug instead of log.info to avoid spamming the client.log file.

Improved inventory setup logic to handle item slot assignments and locking more robustly. Added methods to lock items based on setup, improved detection and toggling of locked slots, and replaced info logs with debug logs for less verbosity. Refactored slot and lock management for better reliability and maintainability.
Added comprehensive Javadoc comments to methods in Rs2InventorySetup and Rs2Bank related to inventory and bank slot locking. These comments clarify method purposes, preconditions, postconditions, and side effects, improving code maintainability and developer understanding. No functional changes were made.
Introduces the toggleLockOnSlot method to toggle the locked state of inventory setup items, update the layout, persist configuration changes, and refresh the UI. Also improves documentation for inventory slot locking logic.
@TheHaliax TheHaliax requested a review from gmason0 June 25, 2025 05:40
@gmason0 gmason0 merged commit dce4c03 into chsami:development Jun 25, 2025
1 check passed
@TheHaliax TheHaliax deleted the BankAPI-InvSetupLocks branch June 27, 2025 21:10
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.

2 participants