mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-19 22:19:35 +00:00
99 lines
3.3 KiB
Java
99 lines
3.3 KiB
Java
package com.coloryr.allmusic.server.core.objs.message;
|
|
|
|
public class HudObj {
|
|
public String state;
|
|
public String set;
|
|
public String set1;
|
|
public String set2;
|
|
public String set3;
|
|
public String reset;
|
|
public String emptyMusic;
|
|
public String emptyList;
|
|
public String emptyLyric;
|
|
public String picSize;
|
|
public String picRotate;
|
|
public String picSpeed;
|
|
public String music;
|
|
public String lyric;
|
|
public String list;
|
|
public String ktv;
|
|
|
|
public static HudObj make() {
|
|
HudObj obj = new HudObj();
|
|
obj.init();
|
|
|
|
return obj;
|
|
}
|
|
|
|
public boolean check() {
|
|
if (state == null)
|
|
return true;
|
|
if (set == null)
|
|
return true;
|
|
if (set1 == null)
|
|
return true;
|
|
if (set2 == null)
|
|
return true;
|
|
if (set3 == null)
|
|
return true;
|
|
if (reset == null)
|
|
return true;
|
|
if (emptyMusic == null)
|
|
return true;
|
|
if (emptyList == null)
|
|
return true;
|
|
if (emptyLyric == null)
|
|
return true;
|
|
if (picSize == null)
|
|
return true;
|
|
if (music == null)
|
|
return true;
|
|
if (lyric == null)
|
|
return true;
|
|
if (list == null)
|
|
return true;
|
|
if (picRotate == null)
|
|
return true;
|
|
if (picSpeed == null)
|
|
return true;
|
|
return ktv == null;
|
|
}
|
|
|
|
public void init() {
|
|
if (state == null)
|
|
state = "§d[AllMusic3]§e设置信息位置:" + PAL.hud + ",状态:" + PAL.state;
|
|
if (set == null)
|
|
set = "§d[AllMusic3]§e已设置[" + PAL.hud + "]的坐标为[" + PAL.x + ", " + PAL.y + "]";
|
|
if (set1 == null)
|
|
set1 = "§d[AllMusic3]§e已设置[" + PAL.hud + "]的对齐方式为[" + PAL.dir + "]";
|
|
if (set2 == null)
|
|
set2 = "§d[AllMusic3]§e已设置[" + PAL.hud + "]的颜色为[" + PAL.color + "]";
|
|
if (set3 == null)
|
|
set3 = "§d[AllMusic3]§e已设置[" + PAL.hud + "]的阴影为[" + PAL.state + "]";
|
|
if (reset == null)
|
|
reset = "§d[AllMusic3]§e界面[" + PAL.hud + "]恢复至默认位置";
|
|
if (emptyMusic == null)
|
|
emptyMusic = "没有播放的音乐";
|
|
if (emptyList == null)
|
|
emptyList = "队列中无歌曲";
|
|
if (emptyLyric == null)
|
|
emptyLyric = "无歌词";
|
|
if (picSize == null)
|
|
picSize = "§d[AllMusic3]§e设置图片尺寸为[" + PAL.size + "]";
|
|
if (picRotate == null)
|
|
picRotate = "§d[AllMusic3]§e设置图片旋转为[" + PAL.state + "]";
|
|
if (picSpeed == null)
|
|
picSpeed = "§d[AllMusic3]§e设置图片旋转速度为[" + PAL.size + "]";
|
|
if (music == null)
|
|
music = PAL.name + " " + PAL.allTime + "/" + PAL.nowTime
|
|
+ "\n" + PAL.musicAuthor + "\n" + PAL.musicAlia + "\n" + PAL.musicAl
|
|
+ "\nby: " + PAL.player;
|
|
if (lyric == null)
|
|
lyric = PAL.lyric + "\n" + PAL.tlyric;
|
|
if (ktv == null)
|
|
ktv = "§e" + PAL.klyric + "§f" + PAL.lyric + "§r\n" + PAL.tlyric;
|
|
if (list == null)
|
|
list = "播放列表里面有" + PAL.size + "首歌\n" + PAL.list;
|
|
}
|
|
}
|