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

На главную


common.LogWarning( filter, text01, ... )

Выводит список строк в консоль/чат с префиксом "script: " с уровнем WARNING. Переданные строки объединяются в одну. В качестве аргументов можно передавать как нелокализованные, так и локализованные строки.

Параметр filter определяет фильтр логирования - если он не включен соответствующими командами (см. DebugGame), команда будет проигнорирована.

Можно использовать глобальную переменную luaLogWarningShowAddonPath (см. DebugGame) для включения/выключения вывода пути до аддона.

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

-- объявление:
function LogWarning( filter, text01, ... )

-- параметры:
filter: string - фильтр логирования
text01: string or WString - первый обязательный текстовый аргумент
...: list of string or WString - список необязательных текстовых аргументов

-- возвращаемые значения:
нет

-- примеры:
common.LogWarning( "common", "The operation may be too long!" )
common.LogWarning( "common", "The operation may be too long! ", debugCommon.ToWString( "Or very-very-very long!" ) )

Search: "CategoryLuaApi" "CategoryCommon"

CategoryCommon
EventUserScreenshot
FunctionCommonAddonCreateChildForm
FunctionCommonConfirmAcceptEula
FunctionCommonCreateValuedText
FunctionCommonFormatFloat
FunctionCommonFormatInt
FunctionCommonGetAddonInfo
FunctionCommonGetAddonName
FunctionCommonGetBitAnd
FunctionCommonGetEmptyWstring
FunctionCommonGetGameBuildInfo
FunctionCommonGetGameVersion
FunctionCommonGetGlobalConfigSection
FunctionCommonGetInstanceIdByInteger
FunctionCommonGetIntFromWString
FunctionCommonGetRandFloat
FunctionCommonGetRandInt
FunctionCommonGetScriptCfgVar
FunctionCommonGetStateDebugName
FunctionCommonGetStateManagedAddons
FunctionCommonIsEmptyWstring
FunctionCommonIsEulaAccepted
FunctionCommonIsFinalRelease
FunctionCommonIsGfxApprovedDriver
FunctionCommonIsValuedObject
FunctionCommonIsValuedText
FunctionCommonIsWString
FunctionCommonLogError
FunctionCommonLogInfo
FunctionCommonLogWarning
FunctionCommonMakeUserAddonFullName
FunctionCommonMakeUserScreenshot
FunctionCommonOnEvent
FunctionCommonOnReaction
FunctionCommonOpenUrl
FunctionCommonQuitGame
FunctionCommonRegisterEventHandler
FunctionCommonRegisterReactionHandler
FunctionCommonRequestIntegerByInstanceId
FunctionCommonSendEvent
FunctionCommonSetCursor
FunctionCommonSetGlobalConfigSection
FunctionCommonStateLoadManagedAddon
FunctionCommonStateLoadManagedAddonGroup
FunctionCommonStateUnloadManagedAddon
FunctionCommonStateUnloadManagedAddonGroup
FunctionCommonUnRegisterEvent
FunctionCommonUnRegisterEventHandler
FunctionCompareWString
FunctionGlobal


CategoryLuaApi CategoryFunction CategoryCommon

На главную