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

На главную

## mission.FreePortrait( slotIndex, isSmall )

Освободить ресурсы портрета данного размера в указанном слоте. См. также mission.SetPortraitBackgroundTexture и EVENT_MISSION_FREE_PORTRAIT_SLOT.

Также скрипт должен очистить фоновые слои для всех контролов, которые использовали указанный портрет.

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

    -- объявление:
    function FreePortrait( slotIndex, isSmall )

    -- параметры:
    slotIndex: number (int) - индекс слота, 0..3 для нормальных портретов, 0..15 для маленьких
    isSmall: boolean - портрет в маленьком разрешении

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

    -- примеры:
    mission.FreePortrait( 0, false )

#### 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

На главную