Skip to content

v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Feb 16:06
· 438 commits to master since this release

Biggest changes for v3.0.0:

Breaking Changes

  • Removed getCore
  • Removed getPlayer
  • Changed addCommand syntax
  • Deprecated lib.defaultNotify, now calls lib.notify instead

New Features

  • Radial menu
  • Added ox:primaryColor and ox:primaryShade convars, which allow you to easily change the primary colour of the UI (progress bar/circle, skill check, input dialog, etc...)
  • Added support for input dialog fields to be required
  • New input dialog fields: color, date, date-range, time, multi-select, textarea
  • allowCancel input dialog option
  • New alert dialog options: size and overflow
  • Redesigned notifications, which include new notification positions: center-right and center-left
  • Added option to pass inputs to skill check, where a random one will be picked from the table
  • Added points system to the npm package
  • Probably more stuff that I forgot

Changelog

Breaking Changes

  • 4d15b38: feat(imports/addCommand)!: update syntax and support param help text (Linden)

Features

  • web/notifications: center left and center right positions #197 (Luke)
  • web/input: color input field #197 (Luke)
  • web/input: required fields #197 (Luke)
  • web/input: allow select to be cleared #197 (Luke)
  • web/input: select row icon #197 (Luke)
  • web/input: allowCancel option #197 (Luke)
  • web/input: date input #197 (Luke)
  • web/input: min and max date #197 (Luke)
  • web/input: date range picker #197 (Luke)
  • web/input: textarea row #197 (Luke)
  • web/input: multi-select row #197 (Luke)
  • web/menu: initial planet menu design #197 (Luke)
  • web: alert dialog and text ui github flavoured markdown support #197 (Luke)
  • web/input: time input field (#206) #206 (masonschafercodes)
  • web/alert: new options for alert dialog (#213) #213 (masonschafercodes)
  • imports: getNearbyObjects and getClosestObject #201 (Dolu)
  • web/progress: progress bar in context menu's metadata (#217) #217 (Marcel)
  • web/context: mouse enter and mouse leave events (#218) #218 (masonschafercodes)
  • web: primary colour and shade convars #197 (Luke)
  • web/skillcheck: random skill check key from inputs table #197 (Luke)
  • package: add radial menu exports #197 (Luke)
  • web/meu: support images as icons in context and list menu (#230) #230 (renzuzu)
  • package: points system (Luke)
  • web/radial: gap variable (DokaDoka)
  • imports/require: custom require for script files (Linden)
  • client/radial: radial menu history and radial id getter (Linden)
  • client/radial: refresh menu when current menu is removed (Linden)
  • client/radial: support refreshing menus (Linden)
  • client/radial: refresh menu when parent is re-registered (Linden)
  • web/radial: global menu pagination (Luke)
  • client/radial: return currentMenu and itemIndex onSelect (Linden)

Bug Fixes

  • locale/shared: phrase-construction for strings without placeholders (Linden)
  • imports: return coords getNearbyObjects and getNearbyVehicles #201 (Dolu)
  • client/progress: anim task/scenario check (Linden)
  • callback: return types (Linden)
  • web/notifications: add string as type to id #197 (Luke)
  • package: export radial file into index #197 (Luke)
  • client/radial: don't display radial menu when nui is focused #197 (Luke)
  • client/radial: handle submenu transition (Linden)
  • client/radial: hide radial before running onSelect (Luke)
  • client/radial: don't hide radial when opening submenu (Linden)
  • web/progress: nui callback on progress unmount (Luke)
  • client/radial: don't refresh radial menu when in sub menu (Luke)
  • imports/locale: prevent error from invalid locales (Linden)
  • web/radial: fix transition not showing for global radial menu (Luke)
  • client/radial: refresh when current submenu updates (Linden)
  • client/radial: refresh current submenu if path is still valid (Linden)
  • client/radial: don't refresh submenu if unrelated option updates (Linden)
  • missing and invalid types and parameters (Linden)
  • web/radial: go back to correct more page when going back from sub (Luke)
  • web/radial: check whether radial menu was closed during transition (Luke)

Code Refactoring

  • web: initial mantine setup #197 (Luke)
  • web/dev: mantine rewrite #197 (Luke)
  • web/alert: alert dialog mantine rewrite #197 (Luke)
  • web/input: input dialog mantine rewrite #197 (Luke)
  • web/context: context menu mantine rewrite #197 (Luke)
  • web/alert: use primary color theme for the button color #197 (Luke)
  • web/progress: progress bar mantine rewrite #197 (Luke)
  • web: context button description class #197 (Luke)
  • web/progress: hide progress bar if not visible #197 (Luke)
  • web/progress: circle progress to Mantine #197 (Luke)
  • web/skillcheck: skillcheck mantine rewrite #197 (Luke)
  • web/skillcheck: darker track colour #197 (Luke)
  • web/textui: textui mantine rewrite #197 (Luke)
  • web: scale fade transition #197 (Luke)
  • web/dialog: use fade transition #197 (Luke)
  • web/progress: use scale fade transition for progress #197 (Luke)
  • web/progress: change circle progress track colour #197 (Luke)
  • web/progress: use solid colour for progress bar background #197 (Luke)
  • web/notifications: notifications rewrite #197 (Luke)
  • web/menu: list menu mantine rewrite #197 (Luke)
  • web/transitions: improve scale fade transition #197 (Luke)
  • web/transitions: speed up initial scale fade transition #197 (Luke)
  • web/notifications: improve notification transitions #197 (Luke)
  • web/input: use form control instead of controlled state #197 (Luke)
  • web/input: remove input state #197 (Luke)
  • web/input: use mantine password field component #197 (Luke)
  • web/input: reset input form on close #197 (Luke)
  • web/progress: hide overflow on progress bar #197 (Luke)
  • web/menu: remove borders from context menu buttons #197 (Luke)
  • web/menu: adjust header icon color ternary #197 (Luke)
  • web: remove all borders from buttons #197 (Luke)
  • web/input: select backwards compat with no label #197 (Luke)
  • manifest: kkomrade #197 (Luke)
  • web/input: default select to first option #197 (Luke)
  • web/context: strict undefined check for progress #197 (Luke)
  • web/menu: cap tooltip width #197 (Luke)
  • client/interface: default notify backwards compat #197 (Luke)
  • web/notifications: increase description font size if no title #197 (Luke)
  • web/notifications: adjust line height and icon size #197 (Luke)
  • web/input: set date to current if default is set to true #197 (Luke)
  • web/input: add icon to date picker #197 (Luke)
  • web/input: use date timestamp instead of object #197 (Luke)
  • web/progress: improve progress circle alignment #197 (Luke)
  • web/input: add missing icon prop to color type #197 (Luke)
  • web/menu: planet menu data passing #197 (Luke)
  • web/menu: move planet menu styling #197 (Luke)
  • web/menu: wip radial menu #197 (Luke)
  • web/menu: properly align circle menu labels #197 (Luke)
  • web/menu: attempt alignment #197 (Luke)
  • web/menu: fix alignment #197 (DokaDoka)
  • remove deprecated code #197 (Linden)
  • web/menu: radial menu center button #197 (Luke)
  • client/progress: allow all progress bars to be cancelled #197 (Linden)
  • web/menu: remove unused radial menu styling #197 (Luke)
  • web/menu: reduce center circle size #197 (Luke)
  • web/menu: rename planet menu to radial menu #197 (Luke)
  • web/menu: display bg circle when there's less than 3 item #197 (Luke)
  • web/menu: radial menu visibility handling #197 (Luke)
  • web/menu: radial menu item onClick #197 (Luke)
  • web/menu: remove unused code #197 (Luke)
  • web/menu: always draw full radial menu circle #197 (Luke)
  • client/interface: initial lua radial menu implementation #197 (Luke)
  • web/menu: radial menu item removing and refreshing #197 (Luke)
  • init: change notify netevent name (Linden)
  • client/progressbar: better animation cancelling (#208) #208 (JnKTechstuff)
  • client/radial: ditch canInteract #197 (Luke)
  • web/transitions: adjust scale fade transition timings #197 (Luke)
  • web/menu: radial sub menu chaining #197 (Luke)
  • web/menu: make context menu metadata progress optional #197 (Luke)
  • web/menu: improve radial menu transitions #197 (Luke)
  • web/menu: rename radial menu item key to id #197 (Luke)
  • client/radial: minor tweaks and formatting #197 (Linden)
  • client/radial: clear items on resource stop #197 (Linden)
  • fxmanifest: load addKeybind #197 (Linden)
  • client/radial: use lib.addKeybind and tweak exports #197 (Linden)
  • client/context: rename lastHoveredContextItem variable #197 (Luke)
  • web/menu: radial menu onHover #197 (Luke)
  • web/radial: radial menu back on rmb #197 (Luke)
  • web/radial: disable nui focus when closing with x button #197 (Luke)
  • web/radial: move center icon into absolute div #197 (Luke)
  • web/input: separate date and time fields #197 (Luke)
  • web/input: improve typings #197 (Luke)
  • web: move all types into typings folder #197 (Luke)
  • client/radial: add isOpen check when adding global items #197 (Luke)
  • package: omit id from registerRadial items array #197 (Luke)
  • client: add missing lua typings #197 (Luke)
  • web/radial: disable transition when swapping to submenu (Linden)
  • client/radial: change keybind to toggle (Linden)
  • package: use generics to type point args (Luke)
  • package: use cache.ped for points (Luke)
  • web/radial: add stroke to center circle (Linden)
  • server/addCommand: use single command handler for aliases (Linden)
  • server/addCommand: add suggestion on command creation (Linden)
  • init: minor tweaks (Linden)
  • import/disableControls: add missing lua typings (#231) #231 (Aaron-Downham)
  • web/radial: remove pointer cursor (Luke)
  • client/radial: refresh to last available menu (Linden)
  • client/radial: don't refresh submenu if parent updated (Linden)

Chores

Commits

  • ec62398: Revert "refactor(web/menu): radial menu onHover" (Luke) #197
  • c9c90ef: Revert "refactor(client/context): rename lastHoveredContextItem variable" (Luke) #197
  • 7acad82: Revert "feat(web/context): mouse enter and mouse leave events (#218)" (masonschafercodes) #197
  • b56e682: Merge branch 'v3' (Luke) #197
  • 4d15b38: feat(imports/addCommand)!: update syntax and support param help text (Linden)
  • 60e3a12: Revert "fix(web/radial): go back to correct more page when going back from sub" (Luke)