Skip to content

v0.1.3

Choose a tag to compare

@encodedlux encodedlux released this 03 Jul 02:36
· 7 commits to main since this release

Added

  • Added a new state-driven input binding system in inputs.luau using InputContext, InputAction, and InputBinding instances, replacing ContextActionService and direct event listeners.
  • Added onSlotRender API callback allowing dynamic customization of slot properties (BackgroundColor, BackgroundTransparency, Children, ItemNameText, ItemNameChildren).
  • Added experimental VR support, automatically adapting inputs, tool hotbar navigation, and screen bounds when a headset is active.
  • Added a dedicated attribution.luau module to decouple third-party licensing attribution.

Changed

  • Refactored useBackpack.luau to focus solely on managing backpack and character items, offloading input and event logic to inputs.luau and app.luau.
  • Centralized preferredInput, preferredTransparency, and vrEnabled reactivity inside states.luau and app.luau instead of using separate custom hooks.
  • Flattened the src/ui/hooks/backpack/ hooks folder by moving all hook files directly into src/ui/hooks/.
  • Renamed the categorybar component to categoryTabs.
  • Refactored init.luau to load all API requires at the top of the file instead of inline.
  • Simplified px.luau internal scaling logic by removing viewport resize event connections and dynamic scale factor calculations.

Removed

  • Removed direct dependency on ContextActionService for handling hotbar key and gamepad inputs.
  • Removed custom hooks usePreferredInput.luau and usePreferredTransparency.luau in favor of centralized states.
  • Removed the selectSwap state and its corresponding gamepad input action mapping.