Начните вводить название — например, MoreHead, Sodium или PEAK

ZUIExampleMod — иконка
Обложка V RisingМод для V Rising

ZUIExampleMod

от Zanakinz

Пример мода для тестирования с ZUI.

  • Обычный
  • 346 скачиваний
  • Версия 1.1.0
  • Обновлён 18 января 2026

О моде ZUIExampleMod

ZUIExampleMod — мод для V Rising (Ви Райзинг) от автора Zanakinz. Пример мода для тестирования с ZUI.

Его скачали 346 раз: это 225-е место среди модов V Rising в нашем каталоге, редкость — «обычный» (нижняя половина по скачиваниям). Мод обновлялся в течение года, актуальная версия — 1.1.0.

Для работы ему нужны: BepInExPack V Rising, ZUI.

Автор отметил совместимость с обновлениями игры: Oakveil.

Полное описание ZUIExampleMod

Текст автора на языке оригинала

ZUI Example Mod for VRising

A comprehensive example mod demonstrating how to use the ZUI API for VRising mods, including both legacy button integration and custom UI window creation.

Purpose: This mod showcases two different approaches to using ZUI - adding buttons to the main menu and creating fully custom UI windows.

Features

This example mod demonstrates:

  • Legacy Button Registration - Adding buttons to ZUI's main menu
  • Custom UI Windows - Creating your own standalone UI windows with custom layouts
  • UI Customization - Positioning elements, adding images, colored text, and more
  • Reflection-based API calls - Safe integration with ZUI as a soft dependency

Requirements

  • VRising game installed
  • BepInEx 6.0.0-be.733 (IL2CPP version)
  • ZUI Core Mod (REQUIRED for this showcase)
  • .NET 6.0 SDK for building

Setup Instructions

1. Build the Project

dotnet build

2. Deploy

Copy the compiled ZUIExampleMod.dll to your VRising BepInEx plugins folder:

/BepInEx/plugins/

3. Add Your Custom Image (Optional)

If you want to test the image functionality:

  1. Create a PNG image file
  2. Rename it to match what's in the code (or update the code to match your filename)
  3. Place it in the appropriate ZUI images directory

💡 What This Does

When you load the game with ZUI installed, this mod creates two different UI demonstrations:

Part 1: 🔘 Legacy Buttons (Main Menu Integration)

Adds a "Simple Stuff" category to ZUI's main menu with two buttons:

  • Hello World - Executes .say Hello command
  • Kill Self - Executes .kill command

Part 2: 🎨 Custom UI Window

Creates a completely custom 500x350 pixel window named "YourWindowName" featuring:

  • Custom title with colored text
  • Multiple text elements positioned manually
  • Categories for organization (README and COMMANDS sections)
  • Buttons at specific positions
  • Image display capability

🔧 The Core Code

The plugin uses reflection to safely call ZUI methods, making it work as a soft dependency:

private void Call(string name, params object[] args)
{
    if (_zui == null) return;
    var method = _zui.GetMethods(BindingFlags.Public | BindingFlags.Static)
                     .FirstOrDefault(m => m.Name == name && m.GetParameters().Length == args.Length);
    if (method != null) method.Invoke(null, args);
    else LogInstance.LogError($"Could not find ZUI method '{name}' with {args.Length} parameters.");
}

Creating Custom Windows

private void CreateCustomUI()
{
    Call("SetPlugin", "YourPluginName");
    Call("SetTargetWindow", "YourWindowName");
    Call("SetUI", 500, 350);  // Width x Height

    Call("SetTitle", "ZUIExampleMod");
    Call("AddText", "Custom text here", 15f, 210f);
    Call("AddButton", "Test", ".ignorethis", 320f, 220f);
    Call("AddCategory", "README:", 15f, 190f);
    Call("AddImage", "CHANGENAME.png", 20f, 40f, 460f, 150f);
}

📁 Project Structure

ZUIExampleMod/
├── Plugin.cs              # Main plugin - creates UI elements
├── MyPluginInfo.cs        # Plugin metadata
└── ZUIExampleMod.csproj   # Project configuration

🎯 How to Adapt This for Your Mod

Approach 1: Simple Menu Buttons

Perfect for basic functionality that just needs a few buttons:

Call("SetPlugin", "MyMod");
Call("SetTargetWindow", "Main");
Call("AddCategory", "My Features");
Call("AddButton", "Do Something", ".mycommand");

Approach 2: Custom UI Windows

For complex UIs with custom layouts:

Call("SetPlugin", "MyMod");
Call("SetTargetWindow", "MyCustomWindow");
Call("SetUI", 600, 400);  // Set window size

// Position elements exactly where you want
Call("AddText", "Welcome!", 10f, 10f);
Call("AddButton", "Click Me", ".command", 10f, 50f, 200f, 30f);
Call("AddImage", "logo.png", 10f, 100f, 580f, 200f);

📚 ZUI API Methods Demonstrated

Method — Description — Usage

SetPlugin(string) — Sets the plugin identifier — Call("SetPlugin", "MyMod");

SetTargetWindow(string) — Targets "Main" menu or a custom window name — Call("SetTargetWindow", "Main");

SetUI(int, int) — Creates custom window with width × height dimensions — Call("SetUI", 500, 350);

SetTitle(string) — Sets window title (supports HTML color tags) — Call("SetTitle", "My Window");

AddCategory(string) — Adds category label in main menu — Call("AddCategory", "Admin");

AddCategory(string, float, float) — Adds category label at specific X, Y position — Call("AddCategory", "README:", 15f, 190f);

AddButton(string, string) — Adds button to main menu with text and command — Call("AddButton", "Heal", ".heal");

AddButton(string, string, float, float) — Adds button at X, Y position — Call("AddButton", "Test", ".cmd", 320f, 220f);

AddButton(string, string, float, float, float, float) — Adds button with position (X, Y) and size (W, H) — Call("AddButton", "Long", ".cmd", 20f, 280f, 460f, 20f);

AddText(string, float, float) — Adds text at specific X, Y coordinates — Call("AddText", "Hello!", 15f, 210f);

AddImage(string, float, float, float, float) — Adds image with filename, X, Y, width, height — Call("AddImage", "logo.png", 20f, 40f, 460f, 150f);

🎨 Custom UI Design Tool

Want to design your custom UI visually?

Use the official ZUI Canvas Designer at https://zanakinz.github.io/ZUI

This interactive tool allows you to:

  • Visually position UI elements (buttons, text, images, categories)
  • Preview your layout in real-time
  • Export code directly for your mod
  • Experiment with different window sizes and arrangements

Instead of manually calculating X/Y coordinates, use the designer to drag and drop elements, then copy the generated

Описание длинное — здесь его начало. Читать целиком на странице автора

Нужно для работы

В r2modman ставится автоматически

Как установить ZUIExampleMod

Файл скачивается с официального сервера Thunderstore, без перезаливов и сторонних установщиков

Подробная инструкция для V Rising
  1. Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру V Rising.
  2. Создайте профиль — так моды не смешаются с чистой версией игры.
  3. Найдите «ZUIExampleMod» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами.
  4. Нажмите «Start modded» — игра запустится с модами.
  5. Чтобы сыграть без модов, запустите игру как обычно из Steam — r2modman не трогает чистую версию игры.
Вы автор мода? Поставьте ссылку на русское описание

Вставьте значок в описание на Thunderstore, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.

Описание на русском — Модка
Markdown[![Описание на русском — Модка](https://modka.app/badge.png)](https://modka.app/v-rising/zanakinz-zuiexamplemod/)
HTML<a href="https://modka.app/v-rising/zanakinz-zuiexamplemod/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>
Steam (BBCode)[url=https://modka.app/v-rising/zanakinz-zuiexamplemod/]Описание на русском — Модка[/url]

Частые вопросы о ZUIExampleMod

Как установить ZUIExampleMod?

Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру V Rising. Создайте профиль — так моды не смешаются с чистой версией игры. Найдите «ZUIExampleMod» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами. Нажмите «Start modded» — игра запустится с модами. Чтобы сыграть без модов, запустите игру как обычно из Steam — r2modman не трогает чистую версию игры.

Безопасен ли ZUIExampleMod?

Файл скачивается с официального сервера Thunderstore, куда его загрузил Zanakinz. Мы не перезаливаем и не изменяем моды.

Что нужно для работы ZUIExampleMod?

Установите вместе с ним: BepInExPack V Rising, ZUI. В менеджере модов зависимости подтягиваются автоматически.

Когда ZUIExampleMod обновлялся последний раз?

18 января 2026, актуальная версия — 1.1.0. Дата берётся с официальной страницы мода при каждом обновлении каталога.

Похожие моды

Все моды на V Rising
CoffinSleep — иконка

CoffinSleep

Мод, который ускоряет время, пока вы спите в гробу.

Легендарный38,4 тыс.Серверный

RetroCamera — иконка

RetroCamera

Оптимизированные улучшения камеры и дополнительные функции!

Легендарный29,7 тыс.

PopupTotals — иконка

PopupTotals

Показывает общее количество товара в вашем инвентаре при сборе ресурсов

Эпический26,1 тыс.

AutoBrazier — иконка

AutoBrazier

Настройка функциональности бразильца

Эпический16,2 тыс.Серверный

AutoCloseDoors — иконка

AutoCloseDoors

Режим автоматического закрытия дверей через несколько секунд.

Эпический15 тыс.Серверный

Notify — иконка

Notify

Мод, который уведомляет, когда пользователь подключается или отключается от сервера, новый пользователь подключается от сервера, когда игрок убивает босса VBlood, систему сообщений дня и систему автоматического объявления, которая работает через каждый определенный интервал.

Эпический13,8 тыс.Серверный