Merge pull request #370 from lieren2023/lieren2023-patch-27

启动页修改
This commit is contained in:
Spmario233 2023-09-21 19:13:14 +08:00 committed by GitHub
commit e5054cc520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
49 changed files with 67 additions and 1 deletions

View File

@ -1341,6 +1341,27 @@
}
}
},
splash_style:{
name:'启动页',
item:{
style1:'样式一',
style2:'样式二',
style3:'样式三',
},
visualMenu:function(node,link){
node.className='button character';
node.style.width='200px';
node.style.height=node.offsetWidth*1080/2400+'px';
node.style.display='flex';
node.style['flex-direction']='column';
node.style['align-items']='center';
node.style.backgroundSize='100% 100%';
node.setBackgroundImage('image/splash/'+link+'.jpg');
},
onclick:function(item){
game.saveConfig('splash_style',item);
}
},
// fewplayer:{
// name:'启用人数',
// intro:'设置启用新版布局的最小人数(不足时切换至默认布局)',
@ -9863,7 +9884,23 @@
node.link=lib.config.all.mode[i];
ui.create.div(node,'.splashtext',get.verticalStr(get.translation(lib.config.all.mode[i])));
if(lib.config.all.stockmode.indexOf(lib.config.all.mode[i])!=-1){
ui.create.div(node,'.avatar').setBackgroundImage('image/splash/'+lib.config.all.mode[i]+'.jpg');
// 初始启动页设置
if(lib.config.splash_style==undefined){
if(lib.device){
var item='style2';
}else{
var item='style1';
}
lib.configMenu.appearence.config.splash_style.onclick(item);
}
splash.dataset.splash_style=lib.config.splash_style;
// 扩展可通过window.splashurl设置素材读取路径
if(window.splashurl==undefined)window.splashurl='image/splash/';
if(lib.config.splash_style=='style1'||lib.config.splash_style=='style2'||lib.config.splash_style=='style3'){
ui.create.div(node,'.avatar').setBackgroundImage('image/splash/'+lib.config.splash_style+'/'+lib.config.all.mode[i]+'.jpg');
}else{
ui.create.div(node,'.avatar').setBackgroundImage(splashurl+lib.config.splash_style+'/'+lib.config.all.mode[i]+'.jpg');
}
}
else{
var avatarnode=ui.create.div(node,'.avatar');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

BIN
image/splash/style1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
image/splash/style2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
image/splash/style3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View File

@ -423,6 +423,35 @@ table {
border-radius: 12px;
}
/* 启动页style2和style3 */
#splash[data-splash_style='style2']>div,
#splash[data-splash_style='style3']>div {
width: 250px;
height: 350px;
top: calc(50% - 175px);
}
#splash[data-splash_style='style2']>div:first-child,
#splash[data-splash_style='style3']>div:first-child {
margin-left: 15px;
}
#splash[data-splash_style='style2']>div:last-child,
#splash[data-splash_style='style3']>div:last-child {
margin-right: 15px;
}
#splash[data-splash_style='style2']>div>.splashtext,
#splash[data-splash_style='style3']>div>.splashtext {
font-family: 'shousha';
font-size: 65px;
}
#splash[data-splash_style='style2'].slim>div>.splashtext,
#splash[data-splash_style='style3'].slim>div>.splashtext {
right: 10px;
bottom: 5px;
}
#splash[data-splash_style='style2'].slim>div>.avatar,
#splash[data-splash_style='style3'].slim>div>.avatar {
width: 240px;
}
#arena.playerhidden>.player,
#arena.playerhidden>#mebg,