跳到主要内容

自定义GUI加载界面


第一步,在服务端中新建GermPlugin/gui/germ_gui_loading.yml,并填入对应基础配置

#如果萌芽界面加载时间超过50ms 就会自动打开这个界面
#可自行替换该界面组件
germ_gui_loading:
options:
startX: w/2
startY: h/2-16
blur: true
texture:
type: texture
path: textures/gui/loading/connect.png
width: "16"
height: "16"
locationX: "-32"
locationY: "-12"
gif:
type: texture
path: textures/gui/loading/loading.gif
width: "10"
height: "10"
locationX: "28"
locationY: "-8"
text:
initDos:
- update`<->`thisGui@thisPart@texts@Loading
- delay`<->`200
- update`<->`thisGui@thisPart@texts@Loading.
- delay`<->`200
- update`<->`thisGui@thisPart@texts@Loading..
- delay`<->`200
- update`<->`thisGui@thisPart@texts@Loading...
- delay`<->`200
- goto`<->`1
type: label
texts: [ "Loading..." ]
align: left
locationX: "-12"
locationY: "-8"


第二步,按照之前的教程来调整背景大小并添加你的需要的组件吧 😝