描述
此模组允许你使用 json 文件修改主菜单,你可以更改原版菜单中几乎所有内容的 / 位置。此外,你还可以在主菜单中添加新内容,例如幻灯片、网页链接或全新的子菜单。
用法
首次运行此模组后,你唯一需要注意的区别是主菜单中会多出一个按钮。查看 config/CustomMainMenu 文件夹,你会看到一个名为 menu.json 的文件。里面列出了原版主菜单的所有元素,修改内容并在游戏中按下刷新按钮,即可即时查看所做的更改(当你满意结果后,可以移除刷新按钮)。如果你曾经处理过 json 文件,这里的各项内容应该很容易理解。有关可以向菜单添加的不同内容的更多信息,请参阅 Pages。
所有 斜体属性都支持随机值。示例:"text" : ["Text1","Text2","Text3","Text4"]。每次 Minecraft 运行时,都会从这些值中随机选择一个。
对于纹理 / 图像 / 文本属性,它需要一个资源定位符(或者如果使用 web 作为资源域,则对于图像是一个指向在线图像的 url)。你可以使用资源包或 Resource Loader(更简单)来添加自己的资源。
示例
如果你不想查看所有链接,也可以转到图片标签页查看一些效果。
- Config / 效果
- Config / 效果
- Config / 效果
Config/ 效果(自定义按钮文本颜色和纹理)- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果 <- 幻灯片示例
- Config / 效果 <- 新功能示例
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config / 效果
- Config (1) (2) / 效果
- Coming Soon(如果你制作了不错的作品,欢迎发布其 Config 和截图)
由于格式变更,其中一些示例可能无法在最新的 CMM 版本中正常工作 / 显示正确,但它们仍然能提供关于如何实现示例中展示效果的见解。此外,其中一些示例可能需要自定义图像,因此当你自己使用时它们看起来可能会有点奇怪。
实用工具
报告问题
在github 上创建 issue 之前,请确保:
- 你的 json 文件确实是有效的 json(使用在线 json 检查器运行它)
- 所有资源定位符(例如图像路径)完全小写(在 json 文件中和文件系统中)
- 你没有遗漏任何非可选的属性 / 部分。
- 你的属性名称 100% 正确
- 如果遇到缺失纹理的情况,请在资源文件夹中创建一个名为 debug 的文件夹。这将导致 Resource Loader 在找不到 Minecraft 请求的文件时向调试日志打印一行信息。(调试日志位于 fml-client-latest.log 中)。确保文件路径 100% 正确(在 Windows 上,你可以尝试使用 Win + R “运行”它)
联系方式
如果你有想要可修改的功能建议,或者想报告发现的 bug,请在我的 github issue tracker 上进行反馈,而不是在 curseforge 上 :).
欢迎在任何整合包中使用此模组 :). 你不需要向我发送任何东西。
Description
This mod allows you to modify the main menu using a json file, you can modify the content / position of pretty much everything the vanilla menu contains. In addition you can also add new stuff to your menu like a slideshow, web links or completely new sub menus.
Usage
After your first run with this mod the only difference you should notice is that there is an additional button added in your main menu. If you look in the config/CustomMainMenu folder you will notice a file called menu.json. In there you will see all elements the vanilla main menu has, modifying the content and pressing the refresh button ingame will allow you to instantly see what changes you made (You can remove the refresh button once you are happy with your result). Everything in there should be fairly self explanatory if you have ever worked with json files. See the Pages for more Information about the different stuff you can add to your menu.
All cursive properties allow a random value. Example: "text" : ["Text1","Text2","Text3","Text4"]. One of the values will be selected randomly every minecraft run.
For the texture / image / text property it takes a resource location (or (for images) if you use web as your resource domain an url to an image online). You can add your own resources ones using either a resource pack or Resource Loader (easier).
Examples
If you don't wanna go through all the links you can also go to the images tab to see some of the results.
- Config / Result
- Config / Result
- Config / Result
Config/ Result (Custom button text colors & textures)- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config / Result <- Slideshow example
- Config / Result <- New Action stuff
- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config / Result
- Config (1) (2) / Result
- Coming Soon (Also if you have made something nice feel free to post the config & an image of it)
Some of these examples might not work / look properly with the latest CMM version due to changes in the format, they will still provide insight on how the stuff displayed in the example was done though. Also some of these examples might require custom images, these will therefore also look a bit weird when you use them yourself.
Useful Tools
- Textcraft: Websites to generate "logo" type text stuff.
- Minotar: Simple way to get a players skin / head / whatever through an url. Can for example be used together with "web:" to get the avatar of the user as an image.
Reporting Issues
Before creating an issue on github make sure that:
- Your json file is actually valid json (Run it through an online json checker)
- All your resource locations (For example paths to images) are completely lower case (In the json file and your file system)
- You aren't missing any properties / sections that aren't optional.
- That your property names are 100% correct
- If you get missing textures create a folder called debug in your resources folder. That will cause Resource Loader to print a line to the debug log whenever it can't find a file minecraft requested. (Debug log can be found in fml-client-latest.log). Make sure the file path is 100% correct (On Windows you can try to "run" it using Win + R)
Contact
If you have suggestions on what you want modifiable or wanna report a bug you found please do that on my github issue tracker and not on curseforge :).
Feel free to use this mod in any modpack :). You don't have to send me anything.
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Main Menu
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复(By mysticdrew):connectToServer 导致与其他模组冲突的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧