Move all debug functions into a single developer drawer,
Not the best implementation as there is focus fighting going on between some elements and the drawer but will do for now without state management
Comparing "2.7.4" to "2.10.1" would compare each number, i.e.
2 = 2,
7 < 10,
4 > 1
Instead compare the major (2 v 2), then minor.patch (7.4 v 10.1).
where doka to do my math
Somehow, calling DetachEntity before DeleteEntity results in the
entity not being deleted (when oal is enabled).
Fortunately we don't need to detach it before deleting.
People normally complain about the most nonsensical non-issues; yet
this one was completely left alone; or more specifically, one person
attributed the issue to ox_lib but didn't bother to report the issue or
provide a fix, instead just
complaining that "ox_lib is constantly updating".
Caching the promise into a variable allows us to set input to nil and resolve the promise after, which fixes an issue with opening 2 input dialogs back to back
Add the ability to specify if an action can be interrupted. Options that I've thought of off the bat are ped going ragdoll or ped being handcuffed.
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
* feat(locales): Make all language names localised
* fix(locales): Remove duplicate locale
"cr" is incorrent locale code for Croatian and is in this folder twice. "hr.json" is the correct file.
* fix(locales/et): Language name
* tweak(interface/menu): SetNuiFocusKeepInput
Default to allow input; disable with "disableInput = false" during registration.
* refactor(web/dialog): Split interfaces
for better typing of row options for different input types
* fix(web/dialog): Use proper type for onChange event
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
* tweak(interface/menu): SetNuiFocusKeepInput
Default to allow input; disable with "disableInput = false" during registration.
* fix(web/dialog): Setting non-selectable placeholder
React doesn't like the 'selected' attribute (causing a warning in web console - not in-game).
'defaultValue' should be used instead so there is no need to create placeholder option if 'defaultValue' is already defined by row options.
* fix(web/dialog): Use proper type for onChange event
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
* feat(web/dialog): Support placeholders
* feat(web/dialog): Support default values
* feat(web/dialog): Support default state of checkbox
* feat(web/dialog): Support placeholder for number input
* feat(web/dialog): Support default value for select