Пользовательские дополнения
На главную
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
EventAddonLoadStateChanged
EventUserScreenshot
FunctionCommonAddonCreateChildForm
FunctionCommonCreateValuedObject
FunctionCommonCreateValuedText
FunctionCommonEnableUIRender
FunctionCommonExtractWStringFromValuedText
FunctionCommonFormatFloat
FunctionCommonFormatInt
FunctionCommonGetAddonInfo
FunctionCommonGetAddonMainForm
FunctionCommonGetAddonName
FunctionCommonGetApiType
FunctionCommonGetBitAnd
FunctionCommonGetBitOr
FunctionCommonGetCredits
FunctionCommonGetCSSList
FunctionCommonGetDateTimeFromMs
FunctionCommonGetEmptyWstring
FunctionCommonGetInstanceIdByInteger
FunctionCommonGetIntFromWString
FunctionCommonGetLocalDateTime
FunctionCommonGetMsFromDateTime
FunctionCommonGetRandFloat
FunctionCommonGetRandInt
FunctionCommonGetScriptCfgVar
FunctionCommonGetStateManagedAddons
FunctionCommonGetStateName
FunctionCommonGetTerritoryInfo
FunctionCommonGetTexturePath
FunctionCommonIsEmptyValuedObject
FunctionCommonIsEmptyWstring
FunctionCommonIsOnPayToPlayShard
FunctionCommonIsSubstring
FunctionCommonIsSubstringEx
FunctionCommonIsTextFiltered
FunctionCommonIsUIRenderEnabled
FunctionCommonIsValuedObject
FunctionCommonIsValuedText
FunctionCommonIsWString
FunctionCommonLogError
FunctionCommonLogInfo
FunctionCommonLogWarning
FunctionCommonMakeUserAddonFullName
FunctionCommonMakeUserScreenshot
FunctionCommonOnEvent
FunctionCommonOnReaction
FunctionCommonQuitGame
FunctionCommonRegisterEventHandler
FunctionCommonRegisterReactionHandler
FunctionCommonRequestIntegerByInstanceId
FunctionCommonSetCursor
FunctionCommonSetTextValues
FunctionCommonStateLoadManagedAddon
FunctionCommonStateLoadManagedAddonGroup
FunctionCommonStateUnloadManagedAddon
FunctionCommonStateUnloadManagedAddonGroup
FunctionCommonUnRegisterEvent
FunctionCommonUnRegisterEventHandler
FunctionCommonUnRegisterReactionHandler
FunctionCompareWString
FunctionCompareWStringEx
FunctionEscapeWString
FunctionGetWStringLength
FunctionGlobal
FunctionTruncateWString
CategoryLuaApi
CategoryFunction
CategoryCommon
На главную