Skip to content

Conversation

@ryanlua
Copy link
Owner

@ryanlua ryanlua commented Dec 7, 2025

This pull request standardizes the naming of gamepad-related actions and selection parents in the backpack/inventory UI code by replacing the "RBX" prefix with "Backpack". This change improves clarity and consistency across the codebase. The most important changes are grouped below:

Gamepad Action Name Updates:

  • Changed all ContextActionService:BindAction and ContextActionService:UnbindAction calls to use action names with the "Backpack" prefix instead of "RBX" (e.g., "RBXHotbarEquip""BackpackHotbarEquip", "RBXBackpackHasGamepadFocus""BackpackHasGamepadFocus", "RBXCloseInventory""BackpackCloseInventory", "RBXRemoveSlot""BackpackRemoveSlot"). [1] [2] [3] [4] [5] [6]

Selection Parent Name Update:

  • Updated the selection parent name in GuiService:AddSelectionParent from "RBXBackpackSelection" to "BackpackSelection".

Signed-off-by: GitHub <noreply@github.com>
@ryanlua ryanlua added this to the v1.1.0 milestone Dec 7, 2025
@ryanlua ryanlua self-assigned this Dec 7, 2025
Copilot AI review requested due to automatic review settings December 7, 2025 03:31
@ryanlua ryanlua added the bug Something isn't working label Dec 7, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes gamepad-related action naming by replacing the "RBX" prefix with "Backpack" across all context action bindings and selection parents in the backpack/inventory UI code. This improves code clarity and consistency.

Key Changes:

  • Updated four gamepad action names: RBXHotbarEquipBackpackHotbarEquip, RBXBackpackHasGamepadFocusBackpackHasGamepadFocus, RBXCloseInventoryBackpackCloseInventory, RBXRemoveSlotBackpackRemoveSlot
  • Updated selection parent name: RBXBackpackSelectionBackpackSelection
  • Added deviation comments to document the naming changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ryan Luu <ryan.luu@ryanluu.dev>
@ryanlua ryanlua merged commit 23f573f into main Dec 7, 2025
4 checks passed
@ryanlua ryanlua deleted the fix-bindings branch December 7, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant