Skip to content

Releases: encodedlux/sling

v0.1.5

Choose a tag to compare

@encodedlux encodedlux released this 20 Jul 21:50

Added

  • Added the setEquipHandler API callback allowing developers to intercept tool equipping/unequipping and route it through their own server-side network/replication layer (providing compatibility for Server-Authoritative games).

Changed

  • Refactored input bindings to use ContextActionService (CAS) instead of Roblox's new InputContext/InputAction system (IAS), resolving server authority replication errors.
  • Simplified theme configuration definitions by removing the state getter from theme properties.

Full Changelog: v0.1.4...v0.1.5

v0.1.4

Choose a tag to compare

@encodedlux encodedlux released this 05 Jul 04:40

Fixed

  • Fixed hotbar selection hotkeys for layout-dependent keyboards (like AZERTY/QWERTZ) by calculating key offsets directly from physical KeyCode values.

v0.1.3

Choose a tag to compare

@encodedlux encodedlux released this 03 Jul 02:36

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.

v0.1.2

Choose a tag to compare

@encodedlux encodedlux released this 16 Jun 18:45

Added

  • New Hotbar APIs: setHotbar, onHotbarChanged, and onBackpackLoaded event hooks to manage and persist hotbar configurations.
  • Added slotEquipStrokeOutline boolean property to customize slot equip highlight borders.

Changed

  • Events Renamed: Renamed backpack events to be more explicit (e.g., changed onBackpackRemoved to onBackpackItemRemoved).
  • Restructured project directories into core/ and ui/ areas.

v0.1.1

Choose a tag to compare

@encodedlux encodedlux released this 09 Jun 23:54

Added

  • Support PreferredTransparency contrast to inventory and slots.

Fixed

  • Fixed category indexing bugs in UI Labs by cleanly separating "All" initialization into useBackpack.

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@encodedlux encodedlux released this 09 Jun 07:47

Initial Release