Pixel MK Menu

模组

· 作者 apolo49

Pixel MK Menu 是一款面向 Minecraft 的客户端 GUI 模组。它会修改主菜单、按钮、暂停菜单以及其他杂项图形用户界面。

0 本站下载 0 关注 更新于 2 年前

最新 1.1.2 · 1.20.6 · NeoForge

一键开服(送7天)

Logo

执行摘要

Pixel MK Menu 是一款面向客户端的图形用户界面(GUI)模组。它改变了主菜单、按钮、暂停菜单以及其他各类 GUI 的外观。

目录

简介

Minecraft 的主菜单及其他菜单并不够现代、简洁或美观。 从菜单编辑器模组、GUI 重设计模组以及其他模组 GUI 的流行程度可以看出, 原版菜单往往不尽如人意。这种对菜单进行改造的需求,以及即将发布的 Pixel MK 4 整合包,填补了此前由 Voxel Modpack 移植过来的 Voxel Menu 模组在 Pixel MK 1 和 2 中留下的空白。

本模组是该模组的移植版/继任者,重新设计了菜单,并引入了现代化的模组支持以及对 Forge 的支持。

变更内容

Pixel MK Menu 目前仅更改主菜单、Create 的主菜单 (如果加载了 Create)以及暂停菜单。

主菜单

主菜单最多包含 10 个按钮。当与 Pixel MK Menu 同时启用/安装了 Create 和 Quark 时, 通常按钮数量仅为 8 个。

默认菜单

带有 Pixel MK Menu 的主菜单图片

如您所见,主菜单看起来更加简洁精致。这种现代感 直接反映了整个整合包的风格,并通过资源包等方式在整合包中得以体现。如果不喜欢该菜单,可以将其移除且不会产生任何后果。

菜单上新增的一个按钮是静音按钮,用于完全禁用菜单音乐。 也可以通过配置文件来静音菜单音乐,以恢复原版菜单音乐。

此外,还可以通过 JSON 文件在主菜单左上角添加整合包定义,为菜单增添一点额外细节。这最终也将扩展为一个完整的按钮和动态屏幕。

集成 Create 和 Quark 时

安装了 Pixel MK Menu 并与 Quark 和 Create 一起使用的带有 Pixel MK Menu 的主菜单图片

通过 Quark 和 Create 添加的按钮已内置于模组中,但任何其他按钮 都需要通过其他模组作者的判定来确定是否添加,除非通过问题跟踪器请求并获得批准。

添加方法详见 此处。

暂停菜单

暂停菜单

暂停菜单经过重新设计,占用的屏幕空间更小, 不再使背景变暗,因此在在线游戏时更容易看清周围环境。 暂停菜单还关联了动画效果。

添加按钮

此功能在 1.20.6 中尚不存在

要添加按钮,只需在 Forge Event Bus 上捕获事件 (AddModButtonsEvent 事件) 即可。

该事件的源文件位于 AddModButtonsEvent.java。

使用的代码大致如下:

import com.pixelmk.pixelmkmenu.event.AddModButtonsEvent;
import net.minecraft.client.gui.components.Button;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.SubscribeEvent;

// ...

```java
public void init() {
    // ...
    MinecraftForge.EVENT_BUS.addListener(this::addButton);
    // ...
}

@SubscribeEvent
public void addButton(AddModButtonsEvent event) {
    event.createButton("examplemod.usingStringButton",
        $ -> {LOGGER.info("This button was created using a string")});
    event.createButton(new TranslatableComponent("examplemod.usingComponentButton"),
        $ -> {LOGGER.info("This button was created using a component")});
    event.addButton(new Button("examplemod.usingMCButton"),
        $ -> {LOGGER.info("This button was created using a Minecraft Button")});
}

鸣谢

  • 编程 - Pixel MK 团队的 Joe Targett

  • 部分代码参考并修改自 Pack Menu 和 Somnia Awoken。

  • 音乐由 eXtaticus、Kuraishin、ph00tbag 和 FelixMoog 创作。

  • 美术由 Joe Targett 制作。

  • 创意来自 xIGBClutchIx、Mumfrey 以及 VoxelModPack Team 的其他成员。

许可证

MIT License

Copyright (c) 2024 Joe Targett, Pixel MK Group

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源