From e34620b9bd7eeee525bc3b408854375356f86c3a Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 25 Nov 2024 07:21:11 +0300 Subject: [PATCH] update doc/*/xml-ui-layouts.md --- doc/en/xml-ui-layouts.md | 5 ++++- doc/ru/xml-ui-layouts.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/en/xml-ui-layouts.md b/doc/en/xml-ui-layouts.md index 788814e5..d598faa2 100644 --- a/doc/en/xml-ui-layouts.md +++ b/doc/en/xml-ui-layouts.md @@ -142,6 +142,8 @@ Element must be in direct sub-element of *inventory*. - `sharefunc` - Lua event called on LMB + Shift. Inventory id and slot index passed as arguments. - `updatefunc` - Lua event called on slot content update.Inventory id and slot index passed as arguments. - `onrightclick` - Lua event called on RMB click. Inventory id and slot index passed as arguments. +- `taking` - the ability to take an item from a slot. +- `placing` - the ability to put an item in a slot. ## *slots-grid* @@ -154,4 +156,5 @@ Element must be in direct sub-element of *inventory*. - `sharefunc` - Lua event called on LMB + Shift. Inventory id and slot index passed as arguments. - `updatefunc` - Lua event called on slot content update.Inventory id and slot index passed as arguments. - `onrightclick` - Lua event called on RMB click. Inventory id and slot index passed as arguments. - +- `taking` - the ability to take an item from a slot. +- `placing` - the ability to put an item in a slot. diff --git a/doc/ru/xml-ui-layouts.md b/doc/ru/xml-ui-layouts.md index 28777950..f4502a94 100644 --- a/doc/ru/xml-ui-layouts.md +++ b/doc/ru/xml-ui-layouts.md @@ -143,6 +143,8 @@ - `sharefunc` - lua событие вызываемое при использовании ЛКМ + Shift. Передается id инвентаря и индекс слота - `updatefunc` - lua событие вызываемое при изменении содержимого слота - `onrightclick` - lua событие вызываемое при использовании ПКМ. Передается id инвентаря и индекс слота +- `taking` - возможность взять предмет из слота. +- `placing` - возможность положить предмет в слот. ## Сетка слотов - *slots-grid* @@ -156,3 +158,5 @@ - `sharefunc` - lua событие вызываемое при использовании ЛКМ + Shift. Передается id инвентаря и индекс слота - `updatefunc` - lua событие вызываемое при изменении содержимого слота - `onrightclick` - lua событие вызываемое при использовании ПКМ. Передается id инвентаря и индекс слота +- `taking` - возможность взять предмет из слота. +- `placing` - возможность положить предмет в слот.