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

На главную

## mission.GetChatInput()

Возвращает состояние строки ввода с префиксами/слеш-командами. Строка ввода получается в результате разбора исходного текста на наличие слеш-команд.

    -- система
    UIState

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

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

    -- параметры:
    нет

    -- возвращаемые значение:
    таблица с полями:
     sysCmdType: string - тип команды (ее идентификатор)
     hasPrefix: boolean - есть ли префикс (и слеш-команды)
     cmdName: WString - имя активной слеш-команды (в случае наличия префикса)
     cmdArg: WString - аргумент активной слеш-команды (или пустая строка)
     text: WString - текст, оставшийся после разбора и выделения слеш-команд

    -- пример:
    local input = mission.GetChatInput()

    wtEditLine:SetText( input.text )

    if input.hasPrefix then
     -- отобразить строку ввода с учетом префиксов слеш-команды (cmdName и cmdArg)
    else
     -- отобразить строку ввода без всяких префиксов (только EditLine)
    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

На главную