# Пользовательские дополнения

На главную

## mission.GetChatInputSimilarCommands( text )

Возвращает список команд, являющихся подходящими вариантами-продолжениями для переданной строки. Правила описаны на странице: [:InterfaceChat#head-cac61000afaf8de829a2e1c3c58685451ab696d1: InterfaceChat, строка ввода текста].

    -- система
    UIState

    -- библиотека:
    mission

    -- объявление:
    function GetChatInputSimilarCommands( text )

    -- параметры:
    text: WString - строка, для которой надо вернуть похожие команды

    -- возвращаемые значения:
    таблица, индексированная [0..], содержащая значения-таблицы с полями:
     alias: WString - (локализованный) алиас команды
     sysId: string - системный идентификатор команды

    -- пример:
    local cmds = mission.GetChatInputSimilarCommands( inputText )
    for i = 0, GetTableSize( cmds ) - 1 do
     local cmd = cmds[i]
     LogInfo( " ", i, ": sysId = ", cmd.sysId, ", alias = ", cmd.alias )
    end

#### Search: "CategoryLuaApi" "CategoryChat"

EnumAccessionResult
EnumChatFailedType
EventCantSendChatByDelay
EventChatAvatarMuted
EventChatMessage
EventChatMessageIsFlood
EventChatMessageRejected
EventChatMessageWithObjects
EventChatNamedError
EventChatSentToAlt
EventCustomEmote
EventEmoteText
EventGlobalNotice
EventPlayedCommandResponse
EventSlashCommandFailed
EventSlashCommandPrefixChanged
EventUnknownSlashCommand
EventVeteranranksCommandResponse
EventWhisperFailed
FunctionMissionClearChatInput
FunctionMissionGetChatInput
FunctionMissionGetChatInputSimilarCommands
FunctionMissionSetChatInputArg
FunctionMissionSetChatInputData
FunctionMissionSetChatInputHistoryMaxSize
FunctionMissionSetChatInputNextData
FunctionMissionSetChatInputPrevData
FunctionMissionSetChatInputText
FunctionMissionSetChatInputType

#### Search: "CategoryLuaApi" "CategoryMission"

CategoryDragAndDrop
EventAvatarLogoutCancelled
EventAvatarWillBeRemoved
EventCameraDirectionChanged
EventCantLeaveGameInCombat
EventLoginlotteryChanged
EventMissionDragAndDropDragCancelled
EventMissionDragAndDropDragOver
EventMissionDragAndDropDragTo
EventMissionDragAndDropDropAttempt
EventMissionDragAndDropPickAttempt
EventMissionFreePortraitSlot
EventMissionInitialized
EventMissionLoadingProgress
EventUnstuckSpellChanged
EventUnstuckSpellEffect
FunctionMissionCancelLogout
FunctionMissionClearCharacterScene
FunctionMissionClearChatInput
FunctionMissionDragAndDropCancelDrag
FunctionMissionDragAndDropConfirmDropAttempt
FunctionMissionDragAndDropConfirmPickAttempt
FunctionMissionDragAndDropRegister
FunctionMissionDragAndDropUnregister
FunctionMissionDressCharacterScene
FunctionMissionFreePortrait
FunctionMissionGetCameraDirection
FunctionMissionGetChatInput
FunctionMissionGetChatInputSimilarCommands
FunctionMissionGetLoginLotteryInfo
FunctionMissionGetLotteryHistory
FunctionMissionGetLotteryInfo
FunctionMissionGetMaxCharacterSceneCount
FunctionMissionGetMonthDaysCount
FunctionMissionGetPlayTimeMs
FunctionMissionGetShardName
FunctionMissionGetUnstuckSpell
FunctionMissionGetWeakFactionBonus
FunctionMissionGetWeakFactionId
FunctionMissionLoginLotteryReceivePrizes
FunctionMissionLogout
FunctionMissionRequestLotteryHistory
FunctionMissionResetCharacterSceneRotation
FunctionMissionRotateCharacterScene
FunctionMissionSetAEMarkDecal
FunctionMissionSetAEMarkMinRange
FunctionMissionSetAEMarkOutOfRangeDecal
FunctionMissionSetAEMarkRadius
FunctionMissionSetAEMarkRange
FunctionMissionSetAEMarkVisObj
FunctionMissionSetCharacterScene
FunctionMissionSetCharacterScenePosition
FunctionMissionSetCharacterSceneScaleFactor
FunctionMissionSetCharacterSceneSmoothRotation
FunctionMissionSetChatInputArg
FunctionMissionSetChatInputData
FunctionMissionSetChatInputHistoryMaxSize
FunctionMissionSetChatInputNextData
FunctionMissionSetChatInputPrevData
FunctionMissionSetChatInputText
FunctionMissionSetChatInputType
FunctionMissionSetMarkerObject
FunctionMissionSetMountScene
FunctionMissionSetPortraitBackgroundTexture
FunctionMissionShowAEMark
Portraits

CategoryLuaApi CategoryFunction CategoryMission CategoryChat

На главную