fix: missing and invalid types and parameters

This commit is contained in:
Linden
2023-02-25 18:20:14 +11:00
parent b779ea7c3b
commit b3b49b1cbd
6 changed files with 11 additions and 9 deletions

View File

@@ -60,6 +60,7 @@ local function closeCreator(cancel)
points[#points + 1] = vec(xCoord, yCoord)
end
---@type string[]
local input = lib.inputDialog(('Name your %s Zone'):format(firstToUpper(zoneType)), {
{ type = 'input', label = 'Name', placeholder = 'none' },
{ type = 'select', label = 'Format', default = format, options = {
@@ -229,7 +230,7 @@ local function startCreator(arg, useLast)
end
if controlsActive then
DisableAllControlActions()
DisableAllControlActions(0)
EnableControlAction(0, controls['INPUT_LOOK_LR'], true)
EnableControlAction(0, controls['INPUT_LOOK_UD'], true)
EnableControlAction(0, controls['INPUT_MP_TEXT_CHAT_ALL'], true)