Skip to content

Releases: overextended/ox_lib

v2.11.1

18 Sep 12:56
Compare
Choose a tag to compare

Bug Fixes

  • imports/player: return function (Linden)
  • package/cache: check if cached value is defined (Linden)

Code Refactoring

v2.11.0

18 Sep 10:38
Compare
Choose a tag to compare

Features

  • web: ability to not be able to close the context menu (Luke)
  • web: add ability to not be able to close menu (Luke)
  • web/context: allow hiding arrow by setting it to false (Luke)
  • web/input: allow defining icon for number row field (Luke)
  • client/zones: set cache.coords (Linden)
  • client/points: set cache.coords (Linden)
  • resource: zone creator (DokaDoka)
  • resource: load callbacks (Linden)
  • server/acl: add ox_lib:checkPlayerAce as callback (Linden)
  • client/resource: RegisterCommand wrapper (Linden)
  • package: interface definitions #97 (Luke)
  • resource/zoneCreator: change output format in dialog (DokaDoka)
  • resource/zoneCreator: target output format (DokaDoka)
  • client/zoneCreator: command suggestion (DokaDoka)
  • package: acl wrapper #97 (Luke)
  • package: locale wrapper #97 (Luke)
  • package: streaming wrapper #97 (Luke)
  • package: vehicle properties wrapper #97 (Luke)
  • web: version wreapper #97 (Luke)
  • client/zoneCreator: display modes (DokaDoka)
  • package: add citizen typings #97 (Luke)
  • package: cache #97 (Linden)
  • menu: Open Menu with specified item index selected #99 (Jag)

Bug Fixes

  • client/interface: fix openMenu getting defined nil (#86) #86 (Tony Stark)
  • web/menu: fix misalignment on the list buttons in the menu (Luke)
  • client/zones: zone triggers twice when inside and debug is enabled (Linden)
  • client/zones: scuffed ternary (Linden)
  • client/zones: CZone.contains return type (Linden)
  • package: remember to actually save the file #97 (Luke)
  • client/zoneCreator: prevent canceling from opening pause menu (DokaDoka)
  • client/zoneCreator: no more wild rhombus (DokaDoka)
  • package: include tsconfig files in server and shared #97 (Luke)
  • package: fix incorrect typings for context menu #97 (Luke)
  • client/zones: yet another debug fix (Linden)
  • package: include position in progress circle interface #97 (Luke)
  • package: set notification types as optional #97 (Luke)
  • package: getVehicleProperties param #97 (Linden)
  • package: use generics to define return type #97 (Luke)
  • package: checkDependency type #97 (Linden)

Code Refactoring

  • client/zoneCreator: restrict command access (Linden)
  • imports: assign modules directly to lib namespace (Linden)
  • init: type-fixes and minor adjustments (Linden)
  • client/zones: add types and change indentation (Linden)
  • client/zoneCreator: create temporary thread (Linden)
  • server/zoneCreator: output format and path, security fix (Linden)
  • imports: more type fixes (Linden)
  • package: import shared and declare cache in server/client #97 (Linden)
  • resource/interface: formatting and type definitions (Linden)
  • resource/vehicleProperties: typings and formatting (Linden)
  • resource/vehicleProperties: type fixes (Linden)

Performance Improvements

  • client/zones: reduce overhead (Linden)
  • client/points: apply optimisations used in zones (Linden)

Continuous Integration

  • release: publish new npm package version on release #97 (Luke)
  • release: fix incorrect path name (Luke)

Chores

Commits

  • client/zoneCreator: activate controls when starting creator (DokaDoka)

v2.10.5

05 Sep 00:57
Compare
Choose a tag to compare

Features

  • interface/menu: improve error handling for invalid option override (Luke)

Bug Fixes

  • client/zones: debug erroneously triggers zone:inside (Linden)

v2.10.4

29 Aug 17:00
Compare
Choose a tag to compare

Features

  • web: developer drawer (Luke)
  • web: support min and max value for number input type (Luke)

Bug Fixes

  • notification: Notification id now works as documentation states (#78) #78 (Jag)
  • web: move input dialog enter handler (Luke)
  • client/zones: convert tables to vectors (Linden)

Code Refactoring

  • web: prettier format for input dialog (Luke)

Chores

  • web: fix incorrect notification props spelling (Luke)
  • web: add prettier and format (Luke)

v2.10.3

25 Aug 14:36
Compare
Choose a tag to compare

Commits

  • callback: error handling (Linden)

v2.10.2

23 Aug 09:31
Compare
Choose a tag to compare

Bug Fixes

  • client/interface: set openMenu to nil before triggering callbacks (Linden)
  • version: properly compare minor/patch semver (Linden)

v2.10.1

22 Aug 18:52
Compare
Choose a tag to compare

Features

Bug Fixes

  • client/interface: progressbar props not deleted (Linden)

v2.10.0

22 Aug 10:57
Compare
Choose a tag to compare

Features

  • locales: Make all language names localised (#65) #65 (ANTOND)
  • web/dialog: add slider input type (#69) #69 (ANTOND)
  • client/progress: add interrupt options (#70) #70 (Jag)
  • imports: getClosestVehicle and getNearbyVehicles (#71) #71 (Jag)
  • web: onSelect function for options (Luke)

Bug Fixes

  • web/dialog: setting non-selectable placeholder (#67) #67 (ANTOND)
  • zones/client: do not overwrite zone.distance with contains (Linden)
  • zones/client: debug DrawPoly and DrawLine (Linden)
  • web: clear nui focus from input before resolving the promise (Luke)
  • client/interface: cache input promise (Luke)
  • client/interface: cache alert promise (Luke)
  • client/vehicleProperties: store neons as an array (Linden)
  • version: compare semver numbers (Linden)

Code Refactoring

  • callback: types (Linden)
  • interface/menu: set openMenu to reference menu data, not id (Linden)
  • web/dialog: split interfaces (#68) #68 (ANTOND)

Chores

  • manifest: update version (Luke)

Commits

  • interface/menu: SetNuiFocusKeepInput (Linden)
  • 274f254: Update README.md (Linden)
  • 8c8da4b: refactor(raycast/client)!: use new native (GetWorldCoordFromScreenCoord) (Linden)
  • 8defbaf: Revert "chore(manifest): update version" (Luke)

v2.9.0

06 Aug 19:14
Compare
Choose a tag to compare

List menu

New menu type added to the library, navigated by keyboard.

image

You can read the documentation on how to use it and it's features here:
https://overextended.github.io/docs/ox_lib/Interface/Client/menu/

Features

  • imports: raycast module (Linden)
  • imports: getClosestPlayer (Linden)
  • imports: loadAnimDict (Linden)
  • locales: Update czech and slovak translation (#64) #64 (ANTOND)
  • web/menu: initial list menu design #60 (Luke)
  • web/menu: menu list focus trapping #60 (Luke)
  • web/menu: array side scrolling #60 (Luke)
  • web/menu: list menu icon support #60 (Luke)
  • web/menu: add current and max option count into the list button #60 (Luke)
  • web/menu: fetchnui on item change #60 (Luke)
  • web/menu: confirm on enter callback #60 (Luke)
  • web/menu: initial list menu Lua api #60 (Luke)
  • web/menu: enter callback function #60 (Luke)
  • web/menu: visibility handling #60 (Luke)
  • web/menu: exit listener and onClose function #60 (Luke)
  • web/menu: tooltip description support #60 (Luke)
  • web/menu: include backspace in close keys #60 (Luke)
  • web/menu: reset indexes on next last item #60 (Luke)
  • web/menu: display arrow when menu is scrollable #60 (Luke)
  • web/menu: send args in callback function #60 (Luke)
  • client/interface: list menu error catching #60 (Luke)
  • client/interface: allow separately setting list menu options #60 (Luke)
  • web/menu: allow passing default index for horizontal lists #60 (Luke)
  • client/interface: allow replacing specific index in menu options #60 (Luke)
  • client/interface: menu close arg on button #60 (Luke)
  • menu: lib.hideMenu #60 (Luke)
  • imports: getNearbyPlayers (Linden)
  • web/input: support default values (#66) #66 (ANTOND)

Bug Fixes

  • client/streaming: timeout (Linden)
  • client/streaming: invalid print argument (Linden)
  • locales: update Estonian translation (#63) #63 (Dolbajoba)
  • web/menu: focus on first menu item on load #60 (Luke)
  • web/menu: set pointer events to none on body div #60 (Luke)
  • web/menu: debounce menu item selected callback #60 (Luke)
  • web/menu: fix not being able to press enter on first button index #60 (Luke)
  • web/menu: fix selected value focus getting stuck on another menu #60 (Luke)
  • web/menu: set selected index to 0 on menu open #60 (Luke)
  • web/menu: fix scrolling clipping menu items #60 (Luke)
  • web/menu: don't render no label buttons #60 (Luke)
  • web/menu: use same font for tooltip #60 (Luke)
  • client/interface: allow reregistering list menus #60 (Luke)
  • client/interface: fix indexing registered menu options with table #60 (Luke)
  • client/interface: changeSelected args #60 (Linden)
  • web/menu: offset default index #60 (Luke)
  • web/menu: fix border radius not applying when there is 6 options (Luke)

Styles

  • web/menu: change menu header font and weight #60 (Luke)

Code Refactoring

Read more

v2.8.0

28 Jul 17:10
Compare
Choose a tag to compare

Features

  • web/context: context menu exit button (Luke)

Bug Fixes

  • fxmanifest: oal-flag (Linden)
  • cache/client: change vehicle getter (Linden)

Code Refactoring

  • resource/cache: new cache event (Linden)
  • init: cache handling (Linden)
  • resource/cache: remove getVehicle method (Linden)

Chores

Commits

  • resource/version: currentVersion validation (Linden)