Skip to content

Latest commit

 

History

History
2365 lines (1542 loc) · 49.6 KB

Inventory.md

File metadata and controls

2365 lines (1542 loc) · 49.6 KB

container.sqf

CONTAINER_SIZE_W

Type: constant

Description:

Replaced value:

3

File: client\Inventory\container.sqf at line 14

CONTAINER_SIZE_Y

Type: constant

Description:

Replaced value:

File: client\Inventory\container.sqf at line 15

SIZE_BUTTON

Type: constant

Description:

Replaced value:

3

File: client\Inventory\container.sqf at line 16

TIME_CONTAINER_ONLOAD

Type: constant

Description:

Replaced value:

0.25

File: client\Inventory\container.sqf at line 18

TIME_CONTAINER_ONUNLOAD

Type: constant

Description: из TIME_PREPARE_SLOTS

Replaced value:

0.09

File: client\Inventory\container.sqf at line 20

inventory_openContainer

Type: function

Description:

File: client\Inventory\container.sqf at line 22

createWidget_contSlot

Type: function

Description:

  • Param: _display
  • Param: _slotName
  • Param: _pos
  • Param: _slotId
  • Param: _ctgScr

File: client\Inventory\container.sqf at line 107

inventory_loadContainerSlots

Type: function

Description:

File: client\Inventory\container.sqf at line 149

inventory_onPrepareContainer

Type: function

Description:

File: client\Inventory\container.sqf at line 245

inventory_closeContainer

Type: function

Description:

File: client\Inventory\container.sqf at line 266

inventory_onChangeLocContainer

Type: function

Description:

File: client\Inventory\container.sqf at line 279

inventory_unloadContainerMenu

Type: function

Description:

File: client\Inventory\container.sqf at line 292

inventory_onContainerOpen

Type: function

Description: Открывает контейнер и загружает данные

  • Param: _main
  • Param: _data

File: client\Inventory\container.sqf at line 316

inventory_onContainerContentUpdate

Type: function

Description:

  • Param: _data

File: client\Inventory\container.sqf at line 387

inventory_onUpdateContainer

Type: function

Description: цикл в маин треде

File: client\Inventory\container.sqf at line 422

inventory_onPressContainerSlot

Type: function

Description:

  • Param: _slotFrom

File: client\Inventory\container.sqf at line 456

inventory_onReleaseSlotFromContainer

Type: function

Description:

  • Param: _slotTo

File: client\Inventory\container.sqf at line 480

inventory_onTransferSlotContainer

Type: function

Description:

  • Param: _containerSlot
  • Param: _slotTo

File: client\Inventory\container.sqf at line 514

inventory_onReleaseSlotToContainer

Type: function

Description:

File: client\Inventory\container.sqf at line 533

functions.sqf

SIZE_INVSLOT

Type: constant

Description:

Replaced value:

7

File: client\Inventory\functions.sqf at line 14

MYPERSON_FADEVAL_EXIT

Type: constant

Description:

Replaced value:

0.9

File: client\Inventory\functions.sqf at line 16

MYPERSON_FADEVAL_ENTER

Type: constant

Description:

Replaced value:

0.2

File: client\Inventory\functions.sqf at line 17

MYPERSON_FADETIME

Type: constant

Description:

Replaced value:

0.5

File: client\Inventory\functions.sqf at line 18

setslotpos(obj,xpos,ypos)

Type: constant

Description:

  • Param: obj
  • Param: xpos
  • Param: ypos

Replaced value:

[obj,[_xp + ((_wp + _biasW) * xpos),_yp + ((_hp + SLOT_BIASH) * ypos)] , TIME_PREPARE_SLOTS] call widgetSetPositionOnly

File: client\Inventory\functions.sqf at line 405

DEMAP(index,side)

Type: constant

Description:

  • Param: index
  • Param: side

Replaced value:

(inventory_slotpos_map select index select side)

File: client\Inventory\functions.sqf at line 434

POS_LEFTUP

Type: constant

Description:

Replaced value:

_xp + ((_wp + _biasW) * DEMAP(INV_BACKPACK,0)),_yp + ((_hp + SLOT_BIASH) * DEMAP(INV_BACKPACK,1))

File: client\Inventory\functions.sqf at line 435

POS_RIGHTDOWN

Type: constant

Description:

Replaced value:

_xp + ((_wp + _biasW) * DEMAP(INV_HAND_R,0)) + _wp,_yp + ((_hp + SLOT_BIASH) * DEMAP(INV_HAND_R,1)) + _hp

File: client\Inventory\functions.sqf at line 436

inventory_isGlobalVisible

Type: Variable

Description:

Initial value:

true

File: client\Inventory\functions.sqf at line 106

inventory_init

Type: function

Description:

File: client\Inventory\functions.sqf at line 20

inventory_setHideHands

Type: function

Description:

  • Param: _mode

File: client\Inventory\functions.sqf at line 40

inventory_restoreHide

Type: function

Description:

  • Param: _now
  • Param: _applyCommit (optional, default true)

File: client\Inventory\functions.sqf at line 91

inventory_setGlobalVisible

Type: function

Description: установка видимости слотов на глобальном уровне

  • Param: _mode

File: client\Inventory\functions.sqf at line 109

inventory_applyColorTheme

Type: function

Description:

File: client\Inventory\functions.sqf at line 127

inventory_widgetSetPicture

Type: function

Description: Псевдоним widgetSetPicture в этом модуле

  • Param: _pic
  • Param: _val

File: client\Inventory\functions.sqf at line 134

createWidget_invSlot

Type: function

Description:

  • Param: _display
  • Param: _slotName
  • Param: _pos
  • Param: _slotId

File: client\Inventory\functions.sqf at line 164

openInventory

Type: function

Description:

File: client\Inventory\functions.sqf at line 233

inventory_onPrepareSlots

Type: function

Description:

  • Param: _xp
  • Param: _yp
  • Param: _wp
  • Param: _hp

File: client\Inventory\functions.sqf at line 391

inventory_resetPositionHandWidgets

Type: function

Description:

File: client\Inventory\functions.sqf at line 480

closeInventory

Type: function

Description:

File: client\Inventory\functions.sqf at line 490

closeInventory_handle

Type: function

Description: Событие закрытия инвентаря

File: client\Inventory\functions.sqf at line 522

inventoryGetPictureById

Type: function

Description:

File: client\Inventory\functions.sqf at line 531

inventoryGetSlotNameById

Type: function

Description:

File: client\Inventory\functions.sqf at line 535

inventoryGetWidgetById

Type: function

Description:

File: client\Inventory\functions.sqf at line 539

inventoryGetWidgetOnMouse

Type: function

Description:

File: client\Inventory\functions.sqf at line 544

inventoryGetContainerWidgetOnMouse

Type: function

Description:

File: client\Inventory\functions.sqf at line 556

inventoryIsInContainerWidgetsZone

Type: function

Description:

File: client\Inventory\functions.sqf at line 567

inventoryIsInWidgetsZone

Type: function

Description:

File: client\Inventory\functions.sqf at line 571

inventoryIsInsideSelfWidget

Type: function

Description:

File: client\Inventory\functions.sqf at line 575

inventory_onUpdate

Type: function

Description:

File: client\Inventory\functions.sqf at line 583

inventory_onMousePress

Type: function

Description: Событие при нажатии мышки на слот

  • Param: _obj
  • Param: _key

File: client\Inventory\functions.sqf at line 725

inventory_onMouseRelease

Type: function

Description: событие при отпускании мышки на слоте

  • Param: _obj
  • Param: _key

File: client\Inventory\functions.sqf at line 774

inventory_onMouseScroll

Type: function

Description: При скроллинге мышкой

  • Param: _disp
  • Param: _scroll

File: client\Inventory\functions.sqf at line 816

inventory_onSlotUpdate

Type: function

Description:

  • Param: _slotid
  • Param: _data
  • Param: _supressRestoreHide (optional, default false)

File: client\Inventory\functions.sqf at line 844

inventory_syncGerms

Type: function

Description:

  • Param: _data

File: client\Inventory\functions.sqf at line 891

inventory_internal_syncGermsBodyPartKey

Type: function

Description:

  • Param: _partKey
  • Param: _opacity

File: client\Inventory\functions.sqf at line 909

inventory_syncModelPos

Type: function

Exists if INVENTORY_USE_NEW_RENDER_ICONS defined

Description:

  • Param: _wid

File: client\Inventory\functions.sqf at line 928

inventory_onSlotListUpdate

Type: function

Description:

  • Param: _data

File: client\Inventory\functions.sqf at line 957

inventory_onReleaseSlot

Type: function

Description:

  • Param: _slotTo

File: client\Inventory\functions.sqf at line 965

inventory_onPressSlot

Type: function

Description:

  • Param: _slotFrom

File: client\Inventory\functions.sqf at line 1033

inventory_onPutDownItem

Type: function

Description: параметр _isFastPutdown - событие безопасного выкладывания из руки

  • Param: _id (optional, default cd_activeHand)
  • Param: _isFastPutdown (optional, default false)

File: client\Inventory\functions.sqf at line 1060

inventory_onDropItem

Type: function

Description: Событие которое выбрасывает предмет из инвентаря

  • Param: _id (optional, default cd_activeHand)

File: client\Inventory\functions.sqf at line 1105

inventory_onTransferSlot

Type: function

Description: Событие при передачи из одного слота в другой

  • Param: _slotFrom
  • Param: _slotTo

File: client\Inventory\functions.sqf at line 1119

inventory_onInteractTargetWith

Type: function

Description:

  • Param: _obj
  • Param: _slotData

File: client\Inventory\functions.sqf at line 1156

inventory_onMainAction

Type: function

Description:

File: client\Inventory\functions.sqf at line 1173

inventory_onExtraAction

Type: function

Description:

File: client\Inventory\functions.sqf at line 1209

inventory_onClick

Type: function

Description:

File: client\Inventory\functions.sqf at line 1267

inventory_onExamine

Type: function

Description:

File: client\Inventory\functions.sqf at line 1308

inventory_changeActiveHand

Type: function

Description: Смена активной руки

File: client\Inventory\functions.sqf at line 1363

inventory_changeTwoHandsMode

Type: function

Description:

File: client\Inventory\functions.sqf at line 1376

inventory_onChangeActiveHand

Type: function

Description:

  • Param: _notAct
  • Param: _act
  • Param: _setToNew (optional, default false)

File: client\Inventory\functions.sqf at line 1381

inventory_isEmptyHands

Type: function

Description:

File: client\Inventory\functions.sqf at line 1406

inventory_isEmptyActiveHand

Type: function

Description:

File: client\Inventory\functions.sqf at line 1410

inventory_getModelById

Type: function

Description:

File: client\Inventory\functions.sqf at line 1412

inventory_getSlotDataById

Type: function

Description:

File: client\Inventory\functions.sqf at line 1416

inventory_getContainerSlotDataById

Type: function

Description:

File: client\Inventory\functions.sqf at line 1420

helpers.hpp

INVENTORY_LOG

Type: constant

Description: comment this if dont need logging

Replaced value:

File: client\Inventory\helpers.hpp at line 11

BACKGROUND_COLOR_NOITEM

Type: constant

Description: #define INVENTORY_USE_NEW_RENDER_ICONS

Replaced value:

[0.161,0.322,0.204,0.25]

File: client\Inventory\helpers.hpp at line 19

BACKGROUND_COLOR

Type: constant

Description: #define INVENTORY_USE_NEW_RENDER_ICONS

Replaced value:

(["inv_slot_back"] call ct_getValue)/*[0.161,0.322,0.204,0.5]*/

File: client\Inventory\helpers.hpp at line 19

BACKGROUND_COLOR_ACTIVEHAND

Type: constant

Description:

Replaced value:

(["inv_slot_act"] call ct_getValue)/*[0,0.6,0,0.5]*/

File: client\Inventory\helpers.hpp at line 21

BACKGROUND_COLOR_CANINTERACT

Type: constant

Description:

Replaced value:

[0,0.4,0,0.7]

File: client\Inventory\helpers.hpp at line 22

PRESSED_LINK

Type: constant

Description:

Replaced value:

0 //ссылка на ивентарный нажатый слот

File: client\Inventory\helpers.hpp at line 24

PRESSED_DRAG

Type: constant

Description: ссылка на ивентарный нажатый слот

Replaced value:

1 //ссылка на драгуемую ктгшку

File: client\Inventory\helpers.hpp at line 25

INDEX_DRAGGER

Type: constant

Description: ссылка на драгуемую ктгшку

Replaced value:

-9

File: client\Inventory\helpers.hpp at line 27

SLOT_BIASH

Type: constant

Description:

Replaced value:

0.3

File: client\Inventory\helpers.hpp at line 29

TIME_PREPARE_SLOTS

Type: constant

Description: время на подготовку (выезжание слотов)

Replaced value:

0.09

File: client\Inventory\helpers.hpp at line 32

TIME_PREPARE_DRAG

Type: constant

Description: Время на подготовку (появление) драга

Replaced value:

0.1

File: client\Inventory\helpers.hpp at line 34

DRAG_FADE_PROCESS

Type: constant

Description: Непрозрачность драг-иконки во время перетаскивания

Replaced value:

0.4

File: client\Inventory\helpers.hpp at line 36

getDragSlot

Type: constant

Description: drag managment. Драг это иконка предмета, идущая за указателем мыши при isDragProcess

Replaced value:

(inventory_pressedwidget select PRESSED_DRAG)

File: client\Inventory\helpers.hpp at line 40

onDragInit(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

inventory_pressedwidget set [PRESSED_DRAG,wid]; wid ctrlSetFade 1; wid ctrlCommit 0

File: client\Inventory\helpers.hpp at line 42

isInteractibleAction

Type: constant

Description:

Replaced value:

((inventory_previewObject getVariable ["isInteractible",false]) || (typeof getInteractibleTarget == BASIC_MOB_TYPE))

File: client\Inventory\helpers.hpp at line 44

getInteractibleTarget

Type: constant

Description: #define isInteractibleAction ((inventory_previewObject getVariable ["isInteractible",false]) && inventory_isPressedInteractButton || (typeof getInteractibleTarget == BASIC_MOB_TYPE))

Replaced value:

(inventory_previewObject getVariable ["interactibleTarget",objnull])

File: client\Inventory\helpers.hpp at line 46

getPressedSlot

Type: constant

Description: link managment . Нажатый это просто референс на виджет из инвентаря

Replaced value:

(inventory_pressedwidget select PRESSED_LINK)

File: client\Inventory\helpers.hpp at line 50

isDragProcess

Type: constant

Description:

Replaced value:

(! (getPressedSlot isequalto widgetNull))

File: client\Inventory\helpers.hpp at line 52

isHandDrag

Type: constant

Description:

Replaced value:

((getSlotId(getPressedSlot) in [INV_HAND_L,INV_HAND_R]) && !isContainerSlot(getPressedSlot))

File: client\Inventory\helpers.hpp at line 54

onPressSlot(slotwid)

Type: constant

Description:

  • Param: slotwid

Replaced value:

[slotwid] call inventory_onPressSlot

File: client\Inventory\helpers.hpp at line 56

onReleaseSlot(zone)

Type: constant

Description:

  • Param: zone

Replaced value:

[zone] call inventory_onReleaseSlot

File: client\Inventory\helpers.hpp at line 58

getSlotId(wid)

Type: constant

Description: other

  • Param: wid

Replaced value:

(wid getvariable "slotid")

File: client\Inventory\helpers.hpp at line 62

getSlotIcon(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

(wid getVariable "icon")

File: client\Inventory\helpers.hpp at line 64

getSlotDirtOverlay(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

(wid getvariable "dirtOverlay")

File: client\Inventory\helpers.hpp at line 66

getSlotBackground(wid)

Type: constant

Description: #define widgetSetPicture inventory_widgetSetPicture

  • Param: wid

Replaced value:

(wid getVariable "background")

File: client\Inventory\helpers.hpp at line 71

getSlotName(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

(wid getVariable "slotname")

File: client\Inventory\helpers.hpp at line 73

isEmptySlot(id)

Type: constant

Description:

  • Param: id

Replaced value:

((inventory_slotdata select (id)) isequalto [])

File: client\Inventory\helpers.hpp at line 75

isEmptyWidget(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

isEmptySlot(getSlotId(wid))

File: client\Inventory\helpers.hpp at line 77

getSlotDataById(id)

Type: constant

Description:

  • Param: id

Replaced value:

((id) call inventory_getSlotDataById)

File: client\Inventory\helpers.hpp at line 79

getPressedSlotPosition

Type: constant

Description:

Replaced value:

inventory_pressedSlotPosition

File: client\Inventory\helpers.hpp at line 81

setPressedSlotPosition(pos)

Type: constant

Description:

  • Param: pos

Replaced value:

inventory_pressedSlotPosition = (pos)

File: client\Inventory\helpers.hpp at line 82

isInsidePressedSlot

Type: constant

Description:

Replaced value:

inventory_isInsidePressedSlot

File: client\Inventory\helpers.hpp at line 84

getVerbMenuWidget

Type: constant

Description:

Replaced value:

(inventory_verbMenuWidgets select 0)

File: client\Inventory\helpers.hpp at line 86

isInsideVerbMenu_inv

Type: constant

Description: название данной функции заменено, потому что isInsideVerbMenu уже определён в Interactions

Replaced value:

(getVerbMenuWidget call isMouseInsideWidget)

File: client\Inventory\helpers.hpp at line 88

isOpenedVerbMenu

Type: constant

Description:

Replaced value:

(!(getVerbMenuWidget isEqualTo widgetNull))

File: client\Inventory\helpers.hpp at line 89

getContainerMainCtg

Type: constant

Description: container helpers

Replaced value:

(inventory_containerWidgets select 0)

File: client\Inventory\helpers.hpp at line 92

getContainerSlotsCtg

Type: constant

Description:

Replaced value:

(inventory_containerWidgets select 1)

File: client\Inventory\helpers.hpp at line 93

getContainerNameText

Type: constant

Description:

Replaced value:

(inventory_containerWidgets select 2)

File: client\Inventory\helpers.hpp at line 94

container_index_name

Type: constant

Description: internal macro for inventory::containerCommonData

Replaced value:

0

File: client\Inventory\helpers.hpp at line 97

container_index_ref

Type: constant

Description:

Replaced value:

1

File: client\Inventory\helpers.hpp at line 98

container_index_object

Type: constant

Description:

Replaced value:

2

File: client\Inventory\helpers.hpp at line 99

container_index_posoffset

Type: constant

Description:

Replaced value:

3

File: client\Inventory\helpers.hpp at line 100

container_index_isInWorld

Type: constant

Description: assoc with container_index_object

Replaced value:

container_index_object

File: client\Inventory\helpers.hpp at line 102

container_object_awaitGenerateValue

Type: constant

Description: this does not used

Replaced value:

-1

File: client\Inventory\helpers.hpp at line 104

getWorldContainer

Type: constant

Description:

Replaced value:

(inventory_containerCommonData select container_index_object)

File: client\Inventory\helpers.hpp at line 106

getContainerRef

Type: constant

Description:

Replaced value:

(inventory_containerCommonData select container_index_ref)

File: client\Inventory\helpers.hpp at line 107

getContainerPosOffset

Type: constant

Description:

Replaced value:

(inventory_containerCommonData select container_index_posoffset)

File: client\Inventory\helpers.hpp at line 108

setContainerPosOffset(val)

Type: constant

Description:

  • Param: val

Replaced value:

inventory_containerCommonData set [container_index_posoffset,val]

File: client\Inventory\helpers.hpp at line 109

isWorldContainer

Type: constant

Description:

Replaced value:

(getWorldContainer isEqualType objnull)

File: client\Inventory\helpers.hpp at line 110

isContainerSlot(slot)

Type: constant

Description:

  • Param: slot

Replaced value:

(slot getVariable ["isContainerSlot",false])

File: client\Inventory\helpers.hpp at line 113

nullContainerCommonData

Type: constant

Description:

Replaced value:

["","","none",[0,0,0]]

File: client\Inventory\helpers.hpp at line 115

nullPostionPreviewObject

Type: constant

Description:

Replaced value:

[0,0,0]

File: client\Inventory\helpers.hpp at line 116

SELF_CTG_SIZE_H

Type: constant

Description: self widgets

Replaced value:

5

File: client\Inventory\helpers.hpp at line 119

getSelfCtg

Type: constant

Description:

Replaced value:

(inventory_selfWidgets select 0)

File: client\Inventory\helpers.hpp at line 120

setSelfCtg(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

inventory_selfWidgets set [0,wid]

File: client\Inventory\helpers.hpp at line 121

getSelfCtgText

Type: constant

Description:

Replaced value:

(inventory_selfWidgets select 1)

File: client\Inventory\helpers.hpp at line 123

setSelfCtgText(wid)

Type: constant

Description:

  • Param: wid

Replaced value:

inventory_selfWidgets set [1,wid]

File: client\Inventory\helpers.hpp at line 124

TIME_TO_RELOAD_EXTRAACTION

Type: constant

Description: timing protection

Replaced value:

0.8

File: client\Inventory\helpers.hpp at line 127

TIME_TO_RELOAD_ALTCLICKACTION

Type: constant

Description:

Replaced value:

0.8

File: client\Inventory\helpers.hpp at line 128

INV_HIDE_UPDATE_DELAY

Type: constant

Description: hiding inventory

Replaced value:

0.1

File: client\Inventory\helpers.hpp at line 131

INV_HIDE_PERUPDATE_DELAY

Type: constant

Description:

Replaced value:

0.09

File: client\Inventory\helpers.hpp at line 132

invlog(mes,ft)

Type: constant

Exists if INVENTORY_LOG defined

Description:

  • Param: mes
  • Param: ft

Replaced value:

logformat(mes,ft)

File: client\Inventory\helpers.hpp at line 143

invlog(mes,ft)

Type: constant

Exists if INVENTORY_LOG not defined

Description:

  • Param: mes
  • Param: ft

Replaced value:

File: client\Inventory\helpers.hpp at line 147

inventory.hpp

INV_BACKPACK

Type: constant

Description: Порядок слотов отвечает за их порядок отрисовки в инвентаре

Replaced value:

0

File: client\Inventory\inventory.hpp at line 9

INV_ARMOR

Type: constant

Description:

Replaced value:

1

File: client\Inventory\inventory.hpp at line 10

INV_HEAD

Type: constant

Description:

Replaced value:

2

File: client\Inventory\inventory.hpp at line 11

INV_BACK

Type: constant

Description: Порядок слотов отвечает за их порядок отрисовки в инвентаре

Replaced value:

3

File: client\Inventory\inventory.hpp at line 9

INV_CLOTH

Type: constant

Description:

Replaced value:

4

File: client\Inventory\inventory.hpp at line 13

INV_FACE

Type: constant

Description:

Replaced value:

5

File: client\Inventory\inventory.hpp at line 14

INV_HAND_L

Type: constant

Description:

Replaced value:

6

File: client\Inventory\inventory.hpp at line 15

INV_BELT

Type: constant

Description:

Replaced value:

7

File: client\Inventory\inventory.hpp at line 16

INV_HAND_R

Type: constant

Description:

Replaced value:

8

File: client\Inventory\inventory.hpp at line 17

INV_LIST_HANDS

Type: constant

Description:

Replaced value:

[INV_HAND_L,INV_HAND_R]

File: client\Inventory\inventory.hpp at line 19

INV_LIST_ALL

Type: constant

Description:

Replaced value:

[INV_BACKPACK, INV_ARMOR, INV_HEAD, INV_BACK,INV_CLOTH,INV_FACE,INV_HAND_L,INV_BELT,INV_HAND_R]

File: client\Inventory\inventory.hpp at line 20

INV_LIST_VARNAME

Type: constant

Description:

Replaced value:

["INV_BACKPACK","INV_ARMOR","INV_HEAD","INV_BACK","INV_CLOTH","INV_FACE","INV_HAND_L","INV_BELT","INV_HAND_R"]

File: client\Inventory\inventory.hpp at line 21

INV_LIST_SLOTNAMES

Type: constant

Description:

Replaced value:

["Спина","Броня","Голова","Плечо","Одеяния","Лицо","Левая рука","Пояс","Правая рука"]

File: client\Inventory\inventory.hpp at line 22

INV_LIST_FACE

Type: constant

Description:

Replaced value:

[INV_HEAD,INV_FACE]

File: client\Inventory\inventory.hpp at line 24

INV_LIST_TORSO

Type: constant

Description:

Replaced value:

[INV_BACKPACK,INV_BACK,INV_CLOTH,INV_BELT,INV_ARMOR]

File: client\Inventory\inventory.hpp at line 25

SD_NAME

Type: constant

Description:

Replaced value:

0

File: client\Inventory\inventory.hpp at line 27

SD_ICON

Type: constant

Description:

Replaced value:

1

File: client\Inventory\inventory.hpp at line 28

SD_POINTER

Type: constant

Description:

Replaced value:

2

File: client\Inventory\inventory.hpp at line 29

SD_MODEL

Type: constant

Description:

Replaced value:

3

File: client\Inventory\inventory.hpp at line 30

PATH_PICTURE_INV(icon)

Type: constant

Description: default picture path

  • Param: icon

Replaced value:

PATH_PICTURE("inventory\items\" + (icon) + ".paa")

File: client\Inventory\inventory.hpp at line 34

inventory_init.sqf

PIC_PATH(name)

Type: constant

Description:

  • Param: name

Replaced value:

(PATH_PICTURE_FOLDER + "inventory\" + name + ".paa")

File: client\Inventory\inventory_init.sqf at line 11

TEMP_ITEM_ICON

Type: constant

Description:

Replaced value:

PIC_PATH("items\temp_item")

File: client\Inventory\inventory_init.sqf at line 12

inventory_sloticons_default

Type: Variable

Description: ассоциатор путей до картинок

Initial value:

[...

File: client\Inventory\inventory_init.sqf at line 21

inventory_const_dirtOverlayIcon

Type: Variable

Description:

Initial value:

PIC_PATH("dirt_overlay")

File: client\Inventory\inventory_init.sqf at line 33

inventory_const_partkeyToSlots

Type: Variable

Description:

Initial value:

[...

File: client\Inventory\inventory_init.sqf at line 34

inventory_slotdataDirt

Type: Variable

Description:

Initial value:

inventory_const_partkeyToSlots apply ...

File: client\Inventory\inventory_init.sqf at line 41

invenotry_commitNowAllGerms

Type: Variable

Description:

Initial value:

false//используется для быстрого применения грязи при открытии инвентаря

File: client\Inventory\inventory_init.sqf at line 43

inventory_openModeSlotsId

Type: Variable

Description: используется для быстрого применения грязи при открытии инвентаря

Initial value:

[INV_BACKPACK,INV_ARMOR,INV_HEAD,INV_BACK,INV_CLOTH,INV_FACE,INV_BELT]

File: client\Inventory\inventory_init.sqf at line 45

inventory_slotnames_default

Type: Variable

Description:

Initial value:

INV_LIST_SLOTNAMES

File: client\Inventory\inventory_init.sqf at line 49

inventory_slotpos_map

Type: Variable

Description:

Initial value:

[...

File: client\Inventory\inventory_init.sqf at line 51

inventor_slot_widgets

Type: Variable

Description:

Initial value:

[]

File: client\Inventory\inventory_init.sqf at line 63

inventory_slotdata

Type: Variable

Description:

Initial value:

_inventory_slotdata apply ...

File: client\Inventory\inventory_init.sqf at line 68

isInventoryOpen

Type: Variable

Description:

Initial value:

false

File: client\Inventory\inventory_init.sqf at line 70

inventory_modifierScroll

Type: Variable

Description:

Initial value:

false//множитель прокручивания при нажатом шифте

File: client\Inventory\inventory_init.sqf at line 72

inventory_pressedwidget

Type: Variable

Description: common flags and other info

Initial value:

[widgetNull,widgetNull]

File: client\Inventory\inventory_init.sqf at line 75

inventory_pressedSlotPosition

Type: Variable

Description:

Initial value:

[0,0]

File: client\Inventory\inventory_init.sqf at line 76

inventory_isInsidePressedSlot

Type: Variable

Description:

Initial value:

false //На данный момент (Legacy - 0.5.148) данная переменная только устанавливает значения, но не использует их.

File: client\Inventory\inventory_init.sqf at line 77

inventory_invWidgetSize

Type: Variable

Description: На данный момент (Legacy - 0.5.148) данная переменная только устанавливает значения, но не использует их.

Initial value:

[0,0,0,0]

File: client\Inventory\inventory_init.sqf at line 79

inventory_verbMenuWidgets

Type: Variable

Description:

Initial value:

[widgetNull]

File: client\Inventory\inventory_init.sqf at line 81

inventory_lastPressedSlotId

Type: Variable

Description:

Initial value:

-1 //нигде не используется?

File: client\Inventory\inventory_init.sqf at line 82

inventory_verbItemPointer

Type: Variable

Description: нигде не используется?

Initial value:

""

File: client\Inventory\inventory_init.sqf at line 83

inventory_protectAltClick

Type: Variable

Description: inventory_protectExtraAction = false;

Initial value:

false

File: client\Inventory\inventory_init.sqf at line 86

inventory_containerCommonData

Type: Variable

Description:

Initial value:

nullContainerCommonData//name,ref,local game object

File: client\Inventory\inventory_init.sqf at line 88

inventory_containerData

Type: Variable

Description: name,ref,local game object

Initial value:

[]// check SD_<var>

File: client\Inventory\inventory_init.sqf at line 89

inventory_isOpenContainer

Type: Variable

Description: check SD_

Initial value:

false

File: client\Inventory\inventory_init.sqf at line 90

inventory_containerWidgets

Type: Variable

Description:

Initial value:

[widgetNull,widgetNull]//0 - ctg,1 - ctgScroll

File: client\Inventory\inventory_init.sqf at line 91

inventory_containerSlots

Type: Variable

Description: 0 - ctg,1 - ctgScroll

Initial value:

[]//список виджетов иконок внутри контейнера

File: client\Inventory\inventory_init.sqf at line 92

inventory_freeSpaceSlots

Type: Variable

Description: список виджетов иконок внутри контейнера

Initial value:

[]//список виджетов свободного места

File: client\Inventory\inventory_init.sqf at line 93

inventory_contWidgetSize

Type: Variable

Description: список виджетов свободного места

Initial value:

[0,0,0,0]

File: client\Inventory\inventory_init.sqf at line 94

inventory_isPressedRMBDrag

Type: Variable

Description:

Initial value:

false //для защиты драга пкмом

File: client\Inventory\inventory_init.sqf at line 96

inventory_isPressedInteractButton

Type: Variable

Description: для защиты драга пкмом

Initial value:

false //специальный модификатор интерации

File: client\Inventory\inventory_init.sqf at line 97

inventory_isOutsideDragCatch

Type: Variable

Description: специальный модификатор интерации

Initial value:

false //указатель защиты от main action при условии: mouseDown > move outside current slot > move inside current

File: client\Inventory\inventory_init.sqf at line 99

inventory_supressInventoryOpen

Type: Variable

Description: указатель защиты от main action при условии: mouseDown > move outside current slot > move inside current

Initial value:

false //подавляет открытие инвентарных функций. работает для ПКМ по предмету

File: client\Inventory\inventory_init.sqf at line 101

inventory_lastFocusedWidget

Type: Variable

Description: подавляет открытие инвентарных функций. работает для ПКМ по предмету

Initial value:

[widgetNull] //последний в фокусе для увеличения

File: client\Inventory\inventory_init.sqf at line 103

inventory_canHideHands

Type: Variable

Description: Скрывает инвентарь

Initial value:

false

File: client\Inventory\inventory_init.sqf at line 106

inventory_isFullHide

Type: Variable

Description:

Initial value:

false

File: client\Inventory\inventory_init.sqf at line 107

inventory_hideAfter

Type: Variable

Description:

Initial value:

10

File: client\Inventory\inventory_init.sqf at line 108

inventory_hideValue

Type: Variable

Description:

Initial value:

0

File: client\Inventory\inventory_init.sqf at line 109

inventory_hideTimestamp

Type: Variable

Description:

Initial value:

-1

File: client\Inventory\inventory_init.sqf at line 110

inventory_hideHandler

Type: Variable

Description:

Initial value:

-1

File: client\Inventory\inventory_init.sqf at line 111

inventory_isHoldMode

Type: Variable

Description: Инвентарь по удержанию

Initial value:

false

File: client\Inventory\inventory_init.sqf at line 114

inventory_selfWidgets

Type: Variable

Description: Селф окно

Initial value:

[widgetNull,widgetNull] //0 ctg,1 text

File: client\Inventory\inventory_init.sqf at line 117

PreviewObject.sqf

MAX_ONMOUSECURSOR_DROP_ANGLE

Type: constant

Description: угол наклона при котором режим выкладывания меняется с центра экрана на мышь

Replaced value:

-0.2

File: client\Inventory\PreviewObject.sqf at line 13

PUTDOWN_RADIUS

Type: constant

Description: дистанция выкладывания

Replaced value:

INTERACT_ITEM_DISTANCE

File: client\Inventory\PreviewObject.sqf at line 16

__internal_resetBackColor

Type: constant

Description:

Replaced value:

getSlotBackground(getDragSlot) setBackgroundColor BACKGROUND_COLOR

File: client\Inventory\PreviewObject.sqf at line 51

resetBackgrounDragSlot

Type: constant

Description:

Replaced value:

_visObj hideObject false; __internal_resetBackColor

File: client\Inventory\PreviewObject.sqf at line 52

inventory_previewObject

Type: Variable

Description:

Initial value:

objnull

File: client\Inventory\PreviewObject.sqf at line 18

inventory_lastDirPreviewObject

Type: Variable

Description:

Initial value:

0

File: client\Inventory\PreviewObject.sqf at line 19

inventory_createPreviewObject

Type: function

Description:

  • Param: _slotId

File: client\Inventory\PreviewObject.sqf at line 21

inventory_onVisualPreviewObject

Type: function

Description:

File: client\Inventory\PreviewObject.sqf at line 48

inventory_collectInfoOnPutdown

Type: function

Description:

  • Param: _isFastPutdown

File: client\Inventory\PreviewObject.sqf at line 118

inventory_deletePreviewObject

Type: function

Description:

File: client\Inventory\PreviewObject.sqf at line 133

verbs.sqf

TIME_PREPARE_VERBMENU

Type: constant

Description: as TIME_PREPARE_SLOTS

Replaced value:

0.09

File: client\Inventory\verbs.sqf at line 12

inventory_onGetItemVerbs

Type: function

Description:

  • Param: _slot

File: client\Inventory\verbs.sqf at line 14

inventory_onLoadVerbsInventory

Type: function

Description:

  • Param: _targetName
  • Param: _verbList
  • Param: _slotId
  • Param: _pointer

File: client\Inventory\verbs.sqf at line 31

inventory_onPrepareVerbMenu

Type: function

Description:

File: client\Inventory\verbs.sqf at line 70

inventory_onPressVerb

Type: function

Description:

  • Param: _control

File: client\Inventory\verbs.sqf at line 87

inventory_unloadVerbMenu

Type: function

Description:

File: client\Inventory\verbs.sqf at line 107