Skip to content

SmallJiu/Dialog

Repository files navigation

以下英文均使用机翻并含有少量人工润色。包括此警告。

The following English is translated using machine translation with a small amount of manual translation added. Include this warning.

此Mod为开发者提供了类似于各大RPG游戏内与NPC交互后显示的对话框的功能。

This Mod provides developers with a feature similar to the dialog displayed after interacting with NPCs in major RPG games.

点击任意选项均会在客户端与服务端触发一次事件。

Clicking on any option will trigger an event on client and server sides.

本mod有以下默认对话框选项:

This mod has the following default dialog options:

1.按钮:普普通通的按钮。变种:多标题选项

1.Button: A common button. extends: MultipleTitle

2.文本框:普普通通的文本输入框。

2.TextField: A common text input box.

3.单选项:只能选择单个的选项。变种:物品单选项。

3.RadioButton: Only a single option can be selected. extends: ItemRadioButton.

4.多选项:可以选择好多个的选项。变种:物品多选项。

4.Checkbox: You can choose from multiple options. extends: ItemCheckbox.

5.限时单选项:限定时间的单选。变种:物品限时单选项。

5.TimerRadioButton: A single choice with a limited time. extends: TimerItemRadioButton.

6.限时多选项:限定时间的多选。变种:物品限时多选项。

6.TimerCheckbox: Checkbox options with limited time. extends: TimerItemCheckbox.

7.多标题选项:常用于展示剧情,可替代需要打开多个对话框来展示不同的title,但相同的'确定'按钮的情况。

7.MultipleTitle: commonly used to display the multiple text, can replace the situation where multiple dialog boxes need to be opened to display different texts but with the same 'OK' button.

当然,您也可以为自己自定义一个或多个对话框选项。

Of course, you can also customize one or more dialog options for yourself.

启用配置项 'Enable_Test_Dialog' 并重启客户端,进入存档破坏一个红石块可显示对话框的例子。

Enable configuration 'Enable_Test_Dialog', after restart and join the game, breaking a red stone block to displaying the example dialog.

mod演示视频:https://www.bilibili.com/video/BV1Fv4y1q7dK

Mod demonstration video: https://www.bilibili.com/video/BV1Fv4y1q7dK

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published