4 Commits

6 changed files with 125 additions and 37 deletions

View File

@ -1,6 +1,6 @@
unused_args = false
allow_defined_top = true
max_line_length = 999
max_line_length = 131
globals = {
"unified_inventory",
@ -11,8 +11,9 @@ read_globals = {
table = {fields = {"copy", "getn"}},
"dump",
"minetest", "vector",
"core", "minetest",
"ItemStack", "datastorage",
"vector",
"hb",
"doors",

View File

@ -143,18 +143,21 @@ local function formspec_add_categories(player, formspec, ui_peruser)
if ui.current_category[player_name] == category.name then
scale = 1
end
formspec[n] = formspec_button(ui_peruser, "category_"..category.name, category.symbol, categories_pos, {column-1, 0}, scale, category.label)
formspec[n] = formspec_button(ui_peruser, "category_"..category.name, category.symbol, categories_pos,
{column-1, 0}, scale, category.label)
n = n + 1
end
end
if category_count > ui_peruser.pagecols and scroll_offset > 0 then
-- prev
formspec[n] = formspec_button(ui_peruser, "prev_category", "ui_left_icon.png", categories_scroll_pos, {ui_peruser.pagecols - 2, 0}, 0.8, S("Scroll categories left"))
formspec[n] = formspec_button(ui_peruser, "prev_category", "ui_left_icon.png", categories_scroll_pos,
{ui_peruser.pagecols - 2, 0}, 0.8, S("Scroll categories left"))
n = n + 1
end
if category_count > ui_peruser.pagecols and category_count - scroll_offset > ui_peruser.pagecols then
-- next
formspec[n] = formspec_button(ui_peruser, "next_category", "ui_right_icon.png", categories_scroll_pos, {ui_peruser.pagecols - 1, 0}, 0.8, S("Scroll categories right"))
formspec[n] = formspec_button(ui_peruser, "next_category", "ui_right_icon.png", categories_scroll_pos,
{ui_peruser.pagecols - 1, 0}, 0.8, S("Scroll categories right"))
end
end

View File

@ -1,23 +1,23 @@
# textdomain: unified_inventory
Mixing=Мешать
Cooking=Варить
Cooking=Готовить
Digging=Копать
Bags=Сумки
Bag @1=Сумка @1
Small Bag=Малая сумка
Medium Bag=Средняя сумка
Large Bag=Большая сумка
All Items=
Misc. Items=
Plant Life=
Building Materials=
Tools=
Minerals and Metals=
Environment and Worldgen=
Lighting=
All Items=Все предметы
Misc. Items=Разн. предметы
Plant Life=Растения
Building Materials=Стройматериалы
Tools=Инструменты
Minerals and Metals=Металлы и минералы
Environment and Worldgen=Окружение и генер.мира
Lighting=Освещение
and = и
Scroll categories left=
Scroll categories right=
Scroll categories left=Листать влево
Scroll categories right=Листать вправо
Search=Поиск
Reset search and display everything=Сброс поиска, показать всё
First page=Первая страница
@ -32,7 +32,7 @@ Page=Страница
@1 of @2=@1 из @2
Filter=Фильтр
Can use the creative inventory=Можно использовать инвентарь творческого режима
Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally=
Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally=Отображает инвентарь в полном режиме, если простой режим установлен глобально
Crafting Grid=Решетка крафта
Crafting Guide=Книга рецептов
Set home position=Установить позицию дома
@ -59,11 +59,11 @@ Result=Результат
Ingredient=Состав
Show next recipe=Следующий рецепт
Show next usage=Следующее использование
Show previous recipe=Прошлый рецепт
Show previous usage=Прошлая страница
Show previous recipe=Предыдущий рецепт
Show previous usage=Предыдущая страница
@1 (@2)=
Give me:=Дай мне:
This recipe is too@@large to be displayed.=
This recipe is too@@large to be displayed.=Этот рецепт слишком большой
To craft grid:=На решeтку крафта:
All=Все
Crafting=Крафт
@ -76,10 +76,10 @@ Waypoints=Путевые точки
Select Waypoint #@1=Выбрать путевую точку №@1
Waypoint @1=Путевая точка @1
Set waypoint to current location=Установить путевую точку по текущей позиции
Hide waypoint=
Show waypoint=
Hide coordinates=
Show coordinates=
Hide waypoint=Скрыть точку
Show waypoint=Показать точку
Hide coordinates=Скрыть координаты
Show coordinates=Показать координаты
Change color of waypoint display=Поменять цвет путевой точки
Edit waypoint name=Переименовать путевую точку
Waypoint active=Путевая точка включена
@ -88,13 +88,4 @@ Finish editing=Закончить редакцию
World position=Позиция мира
Name=Имя
HUD text color=Цвет текста HUDа
##### not used anymore #####
invisible=невидимой
visible=видимой
Make waypoint @1=Сделать путевую точку @1
Disable=Выключить
Enable=Включить
@1 display of waypoint coordinates=@1 показ координат путевых точек
Category:=Категории:

View File

@ -0,0 +1,92 @@
# textdomain: unified_inventory
Replaces the default inventory and adds a number of features, such as a crafting guide=Замінює стандартний інвентар та додає ряд особливостей, таких як книга рецептів
Mixing=Перемішати
Cooking=Виплавити
Digging=Викопати
Bags=Сумки
Bag @1=Сумка @1
Small Bag=Мала сумка
Medium Bag=Середня сумка
Large Bag=Велика сумка
All Items=Все
Misc. Items=Різне
Plant Life=Рослини
Building Materials=Будматеріали
Tools=Інструменти
Minerals and Metals=Руди й метали
Environment and Worldgen=Оточення та генерація світу
Lighting=Освітлення
and = та
Scroll categories left=Ліворуч
Scroll categories right=Праворуч
Search=Пошук
Reset search and display everything=Скинути пошук та відобразити усе
First page=Перша сторінка
Back three pages=3 сторінки назад
Back one page=Попередня сторінка
Forward one page=Наступна сторінка
Forward three pages=3 сторінки вперед
Last page=Остання сторінка
No matching items=Не знайдено предметів
No matches.=Немає результатів.
Page=Сторінка
@1 of @2=@1 з @2
Filter=Фільтр
Can use the creative inventory=Можна використовувати творчий інвентар
Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally=Відображає повний режим, якщо простий режим сконфігуровано глобально
Crafting Grid=Сітка майстрування
Crafting Guide=Книга рецептів
Set home position=Встановити позицію дому
Home position set to: @1=Тепер дім розташований по координатам: @1
You don't have the "home" privilege!=У вас немає привілею "home"!
Go home=Додому
Set time to day=День
Time of day set to 6am=Час встановлено на 6:00
You don't have the settime privilege!=Ви не можете встановлювати час (нема привілею "settime")
Set time to night=Ніч
Time of day set to 9pm=Час встановлено на 21:00
Clear inventory=Очистити інвентар
This button has been disabled outside of creative mode to prevent accidental inventory trashing.@nUse the trash slot instead.=Цю кнопку було вимкнено в творчому режимі, щоб запобігти випадковому очищенню інвентаря.@nВикористовуйте слот смітника натомість.
Inventory cleared!=Інвентар очищено!
Trash:=Смітник:
Refill:=Заповнити:
Any item belonging to the @1 group=Будь-який елемент із групи @1
Any item belonging to the groups @1=Будь-який елемент із груп @1
Recipe @1 of @2=Рецепт @1 із @2
Usage @1 of @2=Використання @1 із @2
No recipes=Немає рецептів
No usages=Ніде не використовується
Result=Результат
Ingredient=Інгредієнт
Show next recipe=Наступний рецепт
Show next usage=Наступне використання
Show previous recipe=Попередній рецепт
Show previous usage=Попереднє використання
@1 (@2)=@1 (@2)
Give me:=Дай мені:
This recipe is too@@large to be displayed.=Цей рецепт надто великий, щоб його відобразити
To craft grid:=На сітку крафту:
All=Все
Crafting=Крафт
White=Білий
Yellow=Жовтий
Red=Червоний
Green=Зелений
Blue=Синій
Waypoints=Геомітки
Select Waypoint #@1=Вибрати геомітку №@1
Waypoint @1=Геомітка @1
Set waypoint to current location=Встановити тут
Hide waypoint=Сховати геомітку
Show waypoint=Показати геомітку
Hide coordinates=Сховати координати
Show coordinates=Показати координати
Change color of waypoint display=Змінити колір геомітки
Edit waypoint name=Перейменувати геомітку
Waypoint active=Геомітку показано
Waypoint inactive=Геомітку приховано
Finish editing=Закінчити редагування
World position=Світова позиція
Name=Назва
HUD text color=Колір тексту
Category:=Категорії:

View File

@ -329,7 +329,7 @@ ui.register_page("craftguide", {
local giveme_form =
"label[" .. (give_x + 0.1) .. "," .. (craftguidey + 2.7) .. ";" .. F(S("Give me:")) .. "]" ..
"button[" .. (give_x) .. "," .. (craftguidey + 2.9) .. ";0.75,0.5;craftguide_giveme_1;1]"
if item_def.type ~= "tool" then
if item_def and item_def.type ~= "tool" then
giveme_form = giveme_form ..
"button[" .. (give_x + 0.8) .. "," .. (craftguidey + 2.9) .. ";0.75,0.5;craftguide_giveme_10;10]" ..
"button[" .. (give_x + 1.6) .. "," .. (craftguidey + 2.9) .. ";0.75,0.5;craftguide_giveme_99;99]"

View File

@ -164,7 +164,8 @@ ui.register_page("waypoints", {
},
{
"toggle_display_pos",
waypoint.display_pos and "ui_green_icon_background.png^ui_xyz_icon.png" or "ui_red_icon_background.png^ui_xyz_icon.png^(ui_no.png^[transformR90)",
waypoint.display_pos and "ui_green_icon_background.png^ui_xyz_icon.png" or
"ui_red_icon_background.png^ui_xyz_icon.png^(ui_no.png^[transformR90)",
waypoint.display_pos and S("Hide coordinates") or S("Show coordinates")
},
{
@ -254,7 +255,7 @@ local function update_hud(player, waypoints, temp, i)
end
if waypoint.active then
temp.hud = player:hud_add({
hud_elem_type = "waypoint",
[core.features.hud_def_type_field and "type" or "hud_elem_type"] = "waypoint",
number = hud_colors[waypoint.color or 1][2] ,
name = name,
text = "m",