Merge branch 'MihailRis:main' into main

This commit is contained in:
Cogitary
2024-03-18 00:11:22 +04:00
committed by GitHub
8 changed files with 28 additions and 9 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
# Run with compiled executable file:
[Windows 64 bit](https://github.com/MihailRis/VoxelEngine-Cpp/releases/download/v19/voxelengine_v19_win64.zip)
[Linux x86_64 (.AppImage)](https://github.com/MihailRis/VoxelEngine-Cpp/releases/download/v19/VoxelEngine-0.19-x86_64.AppImage)
[Download | Скачать](https://github.com/MihailRis/VoxelEngine-Cpp/releases/tag/v20.0)
# Controls:
+6
View File
@@ -278,6 +278,12 @@ Open block UI and inventory. Throws an exception if block has no UI layout.
Returns block inventory ID (if *"inventory-size"=0* a virtual inventory will be created), and UI layout ID.
```python
hud.show_overlay(layoutid: str, playerinv: bool)
```
Show overlay with layout specified. Shows player inventory also if playerinv is **true**
> [!NOTE]
> Only one block may be open at same time
+6
View File
@@ -271,6 +271,12 @@ hud.open_block(x: int, y: int, z: int) -> int, str
Возвращает id инвентаря блока (при *"inventory-size"=0* создаётся виртуальный инвентарь, который удаляется после закрытия), и id макета UI.
```python
hud.show_overlay(layoutid: str, playerinv: bool)
```
Показывает элемент в режиме оверлея. Также показывает инвентарь игрока, если playerinv - **true**
> [!NOTE]
> Одновременно может быть открыт только один блок
+6
View File
@@ -23,6 +23,7 @@ menu.Controls=Кіраванне
menu.Back to Main Menu=Вярнуцца ў Меню
menu.Settings=Налады
menu.Content=Кантэнт
menu.Audio=Гук
world.Seed=Зерне
world.Name=Назва
@@ -41,6 +42,11 @@ settings.Fog Curve=Крывая Туману
settings.Backlight=Падсветка
settings.V-Sync=Вертыкальная Сінхранізацыя
settings.Camera Shaking=Труска Камеры
settings.Master Volume=Агульная Гучнасць
settings.Regular Sounds=Звычайныя Гукі
settings.UI Sounds=Гукі Інтэрфейсу
settings.Ambient=Фон
settings.Music=Музыка
settings.FOV=Поле Зроку
settings.Mouse Sensitivity=Адчувальнасць Мышы
+1 -1
View File
@@ -22,7 +22,7 @@ world.Seed=Зерно
world.Name=Назва
menu.Create World=Створити Світ
world.World generator=Генератор світла
world.World generator=Генератор світу
world.generators.default=Звичайні
world.generators.flat=Плоскі
world.convert-request=Є зміни в індексах! Конвертувати світ?
+3
View File
@@ -426,6 +426,9 @@ void TextBox::drawBackground(const GfxContext* pctx, Assets* assets) {
auto batch = pctx->getBatch2D();
batch->texture(nullptr);
auto subctx = pctx->sub();
subctx.setScissors(glm::vec4(pos.x, pos.y, size.x, size.y));
if (valid) {
if (isFocused() && !multiline) {
batch->setColor(focusedColor);
+4 -4
View File
@@ -15,16 +15,16 @@ GfxContext::GfxContext(
{}
GfxContext::~GfxContext() {
if (g2d) {
g2d->flush();
}
while (scissorsCount--) {
Window::popScissor();
}
if (parent == nullptr)
return;
if (g2d) {
g2d->flush();
}
if (fbo != parent->fbo) {
if (fbo) {
+1 -1
View File
@@ -42,7 +42,7 @@ inline audio::speakerid_t play_sound(
static_cast<float>(y),
static_cast<float>(z)
),
false,
relative,
volume,
pitch,
false,