commit
b789e27bec
File diff suppressed because it is too large
Load Diff
320
game/game.js
320
game/game.js
|
@ -29,6 +29,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const nonameInitialized=localStorage.getItem('noname_inited');
|
||||||
const GeneratorFunction=(function*(){}).constructor;
|
const GeneratorFunction=(function*(){}).constructor;
|
||||||
// gnc: GeNCoroutine
|
// gnc: GeNCoroutine
|
||||||
const gnc={
|
const gnc={
|
||||||
|
@ -115,7 +116,8 @@
|
||||||
updateURL:'https://raw.githubusercontent.com/libccy/noname',
|
updateURL:'https://raw.githubusercontent.com/libccy/noname',
|
||||||
mirrorURL:'https://raw.fgit.cf/libccy/noname',
|
mirrorURL:'https://raw.fgit.cf/libccy/noname',
|
||||||
hallURL:'47.99.105.222',
|
hallURL:'47.99.105.222',
|
||||||
assetURL:'',
|
assetURL:typeof nonameInitialized!='string'||nonameInitialized=='nodejs'?'':nonameInitialized,
|
||||||
|
compatibleEdition:Boolean(typeof nonameInitialized=='string'&&nonameInitialized.match(/\/(?:com\.widget|yuri\.nakamura)\.noname\//)),
|
||||||
changeLog:[],
|
changeLog:[],
|
||||||
updates:[],
|
updates:[],
|
||||||
canvasUpdates:[],
|
canvasUpdates:[],
|
||||||
|
@ -8232,14 +8234,15 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
HTMLDivElement.prototype.setBackgroundDB=function(img){
|
HTMLDivElement.prototype.setBackgroundDB=function(img){
|
||||||
var node=this;
|
return game.getDB('image',img).then(src=>{
|
||||||
game.getDB('image',img,function(src){
|
this.style.backgroundImage=`url('${src}')`;
|
||||||
node.style.backgroundImage="url('"+src+"')";
|
this.style.backgroundSize="cover";
|
||||||
node.style.backgroundSize="cover";
|
return this;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
HTMLDivElement.prototype.setBackgroundImage=function(img){
|
HTMLDivElement.prototype.setBackgroundImage=function(img){
|
||||||
this.style.backgroundImage='url("'+lib.assetURL+img+'")';
|
this.style.backgroundImage=`url("${lib.assetURL}${img}")`;
|
||||||
|
return this;
|
||||||
},
|
},
|
||||||
HTMLDivElement.prototype.listen=function(func){
|
HTMLDivElement.prototype.listen=function(func){
|
||||||
if(lib.config.touchscreen){
|
if(lib.config.touchscreen){
|
||||||
|
@ -8535,112 +8538,6 @@
|
||||||
return get.is.sameNature(natures,nature);
|
return get.is.sameNature(natures,nature);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!('includes' in Array.prototype)) {
|
|
||||||
Object.defineProperty(Array.prototype, 'includes', {
|
|
||||||
enumerable: false,
|
|
||||||
configurable: true,
|
|
||||||
writable: true,
|
|
||||||
value: function (searchElement, fromIndex) {
|
|
||||||
if (this == null) {
|
|
||||||
throw new TypeError('"this" is null or not defined');
|
|
||||||
}
|
|
||||||
var o = Object(this);
|
|
||||||
var len = o.length >>> 0;
|
|
||||||
if (len === 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var n = fromIndex | 0;
|
|
||||||
var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
|
|
||||||
function sameValueZero(x, y) {
|
|
||||||
return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));
|
|
||||||
}
|
|
||||||
while (k < len) {
|
|
||||||
if (sameValueZero(o[k], searchElement)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
k++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if(!('flat' in Array.prototype)){
|
|
||||||
Object.defineProperty(Array.prototype, "flat", {
|
|
||||||
configurable:true,
|
|
||||||
enumerable:false,
|
|
||||||
writable:true,
|
|
||||||
value:function(depth){
|
|
||||||
if(typeof depth!='number') depth=1;
|
|
||||||
const arr=[];
|
|
||||||
for(let i=0;i<this.length;i++){
|
|
||||||
let obj=this[i];
|
|
||||||
if(depth>0&&Array.isArray(obj)){
|
|
||||||
obj.flat(depth-1).forEach(function(item){
|
|
||||||
arr.push(item)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
arr.push(obj);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (!("allSettled" in Promise)){
|
|
||||||
Object.defineProperty(Promise, "allSettled", {
|
|
||||||
configurable:true,
|
|
||||||
enumerable:false,
|
|
||||||
writable:true,
|
|
||||||
value:function allSettled(ary){
|
|
||||||
const Promise = this;
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
// if (Object.prototype.toString.call(arr) != "[object Array]")
|
|
||||||
if (!Array.isArray(ary))
|
|
||||||
return reject(new TypeError(`${typeof arr} ${ary} is not iterable(cannot read property Symbol(Symbol.iterator))`));
|
|
||||||
let args = Array.prototype.slice.call(ary);
|
|
||||||
if (args.length == 0) return resolve([]);
|
|
||||||
let arrCount = args.length;
|
|
||||||
function resolvePromise(index, value) {
|
|
||||||
if (typeof value == "object") {
|
|
||||||
var then = value.then;
|
|
||||||
if (typeof then == "function") {
|
|
||||||
then.call(value, (val) => {
|
|
||||||
args[index] = { status: "fulfilled", value: val };
|
|
||||||
if (--arrCount == 0) resolve(args);
|
|
||||||
}, (e) => {
|
|
||||||
args[index] = { status: "rejected", reason: e };
|
|
||||||
if (--arrCount == 0) resolve(args);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < args.length; ++i)
|
|
||||||
resolvePromise(i, args[i]);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if(!Object.values){
|
|
||||||
Object.defineProperty(Object, 'values', {
|
|
||||||
configurable:true,
|
|
||||||
enumerable:false,
|
|
||||||
writable:true,
|
|
||||||
value:function(obj){
|
|
||||||
if(obj!== Object(obj)) {
|
|
||||||
throw new TypeError('Object.values called on a non-object');
|
|
||||||
}
|
|
||||||
var values=[];
|
|
||||||
for(var key in obj) {
|
|
||||||
if(obj.hasOwnProperty(key)){
|
|
||||||
values.push(obj[key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return values;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
window.onkeydown=function(e){
|
window.onkeydown=function(e){
|
||||||
if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){
|
if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){
|
||||||
if(e.keyCode==116||((e.ctrlKey||e.metaKey)&&e.keyCode==82)){
|
if(e.keyCode==116||((e.ctrlKey||e.metaKey)&&e.keyCode==82)){
|
||||||
|
@ -8807,39 +8704,39 @@
|
||||||
if(typeof line=='number'&&(typeof game.readFile=='function'||location.origin!='file://')){
|
if(typeof line=='number'&&(typeof game.readFile=='function'||location.origin!='file://')){
|
||||||
function createShowCode(lines){
|
function createShowCode(lines){
|
||||||
let showCode='';
|
let showCode='';
|
||||||
if(lines.length>=10){
|
if(lines.length>=10){
|
||||||
if(line>4){
|
if(line>4){
|
||||||
for(let i=line-5;i<line+6&&i<lines.length;i++){
|
for(let i=line-5;i<line+6&&i<lines.length;i++){
|
||||||
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
|
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
for(let i=0;i<line+6&&i<lines.length;i++){
|
for(let i=0;i<line+6&&i<lines.length;i++){
|
||||||
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
|
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
showCode=lines.map((_line,i)=>`${i+1}| ${line==i+1?'⚠️':''}${_line}\n`).toString();
|
showCode=lines.map((_line,i)=>`${i+1}| ${line==i+1?'⚠️':''}${_line}\n`).toString();
|
||||||
}
|
}
|
||||||
return showCode;
|
return showCode;
|
||||||
}
|
}
|
||||||
//协议名须和html一致(网页端防跨域),且文件是js
|
//协议名须和html一致(网页端防跨域),且文件是js
|
||||||
if (typeof src=='string'&&src.startsWith(location.protocol)&&src.endsWith('.js')){
|
if (typeof src=='string'&&src.startsWith(location.protocol)&&src.endsWith('.js')){
|
||||||
//获取代码
|
//获取代码
|
||||||
const codes=lib.init.reqSync('local:'+decodeURI(src).replace(lib.assetURL,'').replace(winPath,''));
|
const codes=lib.init.reqSync('local:'+decodeURI(src).replace(lib.assetURL,'').replace(winPath,''));
|
||||||
const lines=codes.split("\n");
|
const lines=codes.split("\n");
|
||||||
str+='\n'+createShowCode(lines);
|
str+='\n'+createShowCode(lines);
|
||||||
str+='\n-------------';
|
str+='\n-------------';
|
||||||
}
|
}
|
||||||
//解析parsex里的content fun内容(通常是技能content)
|
//解析parsex里的content fun内容(通常是技能content)
|
||||||
else if(err&&err.stack&&err.stack.split('\n')[1].trim().startsWith('at Object.eval [as content]')){
|
else if(err&&err.stack&&err.stack.split('\n')[1].trim().startsWith('at Object.eval [as content]')){
|
||||||
const codes=_status.event.content;
|
const codes=_status.event.content;
|
||||||
if(typeof codes=='function'){
|
if(typeof codes=='function'){
|
||||||
const lines=codes.toString().split("\n");
|
const lines=codes.toString().split("\n");
|
||||||
str+='\n'+createShowCode(lines);
|
str+='\n'+createShowCode(lines);
|
||||||
str+='\n-------------';
|
str+='\n-------------';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(err&&err.stack) str+='\n'+decodeURI(err.stack).replace(new RegExp(lib.assetURL,'g'),'').replace(new RegExp(winPath,'g'),'');
|
if(err&&err.stack) str+='\n'+decodeURI(err.stack).replace(new RegExp(lib.assetURL,'g'),'').replace(new RegExp(winPath,'g'),'');
|
||||||
alert(str);
|
alert(str);
|
||||||
window.ea=Array.from(arguments);
|
window.ea=Array.from(arguments);
|
||||||
|
@ -8874,7 +8771,6 @@
|
||||||
else if(ua.includes('iphone')||ua.includes('ipad')||ua.includes('macintosh')){
|
else if(ua.includes('iphone')||ua.includes('ipad')||ua.includes('macintosh')){
|
||||||
lib.device='ios';
|
lib.device='ios';
|
||||||
}
|
}
|
||||||
lib.assetURL=noname_inited;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lib.assetURL.includes('com.widget.noname.qingyao')){
|
if(lib.assetURL.includes('com.widget.noname.qingyao')){
|
||||||
|
@ -33852,42 +33748,42 @@
|
||||||
}],
|
}],
|
||||||
['TW神',{
|
['TW神',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('TW')+get.prefixSpan('神')
|
return `${get.prefixSpan('TW')}${get.prefixSpan('神')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['TW将',{
|
['TW将',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('TW')+get.prefixSpan('将')
|
return `${get.prefixSpan('TW')}${get.prefixSpan('将')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['OL神',{
|
['OL神',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('OL')+get.prefixSpan('神')
|
return `${get.prefixSpan('OL')}${get.prefixSpan('神')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['旧神',{
|
['旧神',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('旧')+get.prefixSpan('神')
|
return `${get.prefixSpan('旧')}${get.prefixSpan('神')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['旧晋',{
|
['旧晋',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('旧')+get.prefixSpan('晋')
|
return `${get.prefixSpan('旧')}${get.prefixSpan('晋')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['新杀SP',{
|
['新杀SP',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('新杀')+get.prefixSpan('SP')
|
return `${get.prefixSpan('新杀')}${get.prefixSpan('SP')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['界SP',{
|
['界SP',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('界')+get.prefixSpan('SP')
|
return `${get.prefixSpan('界')}${get.prefixSpan('SP')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['S特神',{
|
['S特神',{
|
||||||
getSpan:(prefix,name)=>{
|
getSpan:(prefix,name)=>{
|
||||||
return get.prefixSpan('★')+get.prefixSpan('神')
|
return `${get.prefixSpan('★')}${get.prefixSpan('神')}`
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
]),
|
]),
|
||||||
|
@ -34163,48 +34059,34 @@
|
||||||
const backgroundMusicSetting=ui[aozhan?'aozhan_bgm':'background_music_setting'],config=backgroundMusicSetting._link.config;
|
const backgroundMusicSetting=ui[aozhan?'aozhan_bgm':'background_music_setting'],config=backgroundMusicSetting._link.config;
|
||||||
config.updatex.call(backgroundMusicSetting,[]);
|
config.updatex.call(backgroundMusicSetting,[]);
|
||||||
},
|
},
|
||||||
updateBackground:function(){
|
updateBackground:()=>{
|
||||||
var background=(_status.tempBackground||lib.config.image_background);
|
const background=_status.tempBackground||lib.config.image_background;
|
||||||
ui.background.delete();
|
ui.background.delete();
|
||||||
ui.background=ui.create.div('.background');
|
const uiBackground=ui.background=ui.create.div('.background'),style=uiBackground.style;
|
||||||
|
|
||||||
if(lib.config.image_background_blur){
|
if(lib.config.image_background_blur){
|
||||||
ui.background.style.filter='blur(8px)';
|
style.filter='blur(8px)';
|
||||||
ui.background.style.webkitFilter='blur(8px)';
|
style.webkitFilter='blur(8px)';
|
||||||
ui.background.style.transform='scale(1.05)';
|
style.transform='scale(1.05)';
|
||||||
}
|
|
||||||
else{
|
|
||||||
ui.background.style.filter='';
|
|
||||||
ui.background.style.webkitFilter='';
|
|
||||||
ui.background.style.transform='';
|
|
||||||
}
|
|
||||||
|
|
||||||
document.body.insertBefore(ui.background,document.body.firstChild);
|
|
||||||
if(background.startsWith('ext:')){
|
|
||||||
ui.background.setBackgroundImage('extension/'+background.slice(4));
|
|
||||||
}
|
}
|
||||||
|
document.body.insertBefore(uiBackground,document.body.firstChild);
|
||||||
|
if(background.startsWith('db:')) uiBackground.setBackgroundDB(background.slice(3));
|
||||||
|
else if(background.startsWith('ext:')) uiBackground.setBackgroundImage(`extension/${background.slice(4)}`);
|
||||||
else if(background=='default'){
|
else if(background=='default'){
|
||||||
ui.background.animate('start');
|
uiBackground.animate('start');
|
||||||
ui.background.style.backgroundImage="none";
|
style.backgroundImage='none';
|
||||||
}
|
}
|
||||||
else if(background.startsWith('custom_')){
|
else if(background.startsWith('custom_')){
|
||||||
ui.background.style.backgroundImage="none";
|
style.backgroundImage='none';
|
||||||
game.getDB('image',background,function(fileToLoad){
|
game.getDB('image',background).then(fileToLoad=>{
|
||||||
if(!fileToLoad) return;
|
if(!fileToLoad) return;
|
||||||
var fileReader = new FileReader();
|
const fileReader = new FileReader();
|
||||||
fileReader.onload = function(fileLoadedEvent)
|
fileReader.onload=fileLoadedEvent=>style.backgroundImage=`url(${fileLoadedEvent.target.result})`;
|
||||||
{
|
|
||||||
var data = fileLoadedEvent.target.result;
|
|
||||||
ui.background.style.backgroundImage='url('+data+')';
|
|
||||||
};
|
|
||||||
fileReader.readAsDataURL(fileToLoad, "UTF-8");
|
fileReader.readAsDataURL(fileToLoad, "UTF-8");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
else uiBackground.setBackgroundImage(`image/background/${background}.jpg`);
|
||||||
ui.background.setBackgroundImage('image/background/'+background+'.jpg');
|
style.backgroundSize='cover';
|
||||||
}
|
style.backgroundPosition='50% 50%';
|
||||||
ui.background.style.backgroundSize='cover';
|
|
||||||
ui.background.style.backgroundPosition='50% 50%';
|
|
||||||
},
|
},
|
||||||
//Generate a beatmap using the given BPM, beats, and offset
|
//Generate a beatmap using the given BPM, beats, and offset
|
||||||
//用给定的BPM、节拍和偏移生成谱面
|
//用给定的BPM、节拍和偏移生成谱面
|
||||||
|
@ -35171,39 +35053,35 @@
|
||||||
};
|
};
|
||||||
ui.window.appendChild(audio);
|
ui.window.appendChild(audio);
|
||||||
},
|
},
|
||||||
playBackgroundMusic:function(){
|
playBackgroundMusic:()=>{
|
||||||
if(lib.config.background_music=='music_off'){
|
if(lib.config.background_music=='music_off'){
|
||||||
ui.backgroundMusic.src='';
|
ui.backgroundMusic.src='';
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else if(_status._aozhan==true&&lib.config.mode_config.guozhan.aozhan_bgm!='disabled'){
|
if(_status._aozhan){
|
||||||
var aozhan=_status.tempAozhan||lib.config.mode_config.guozhan.aozhan_bgm;
|
const aozhanBGMConfiguration=lib.config.mode_config.guozhan.aozhan_bgm;
|
||||||
if(Array.isArray(aozhan)){
|
if(aozhanBGMConfiguration=='disabled') return;
|
||||||
aozhan=aozhan.randomGet('disabled',_status.currentAozhan)||lib.config.mode_config.guozhan.aozhan_bgm;
|
let aozhan=_status.tempAozhan||aozhanBGMConfiguration;
|
||||||
}
|
if(Array.isArray(aozhan)) aozhan=aozhan.randomGet('disabled',_status.currentAozhan)||aozhanBGMConfiguration;
|
||||||
if(aozhan=='random'){
|
if(aozhan=='random') aozhan=Object.keys(lib.mode.guozhan.config.aozhan_bgm.item).randomGet('disabled','random',_status.currentAozhan);
|
||||||
aozhan=Object.keys(lib.mode.guozhan.config.aozhan_bgm.item).randomGet('disabled','random',_status.currentAozhan);
|
|
||||||
}
|
|
||||||
_status.currentAozhan=aozhan;
|
_status.currentAozhan=aozhan;
|
||||||
ui.backgroundMusic.src=lib.assetURL+(aozhan.startsWith('ext:')?'extension/'+aozhan.slice(4):'audio/background/aozhan_'+aozhan+'.mp3');
|
if(aozhan.startsWith('db:')) game.getDB('image',aozhan.slice(3)).then(result=>ui.backgroundMusic.src=result);
|
||||||
|
else if(aozhan.startsWith('ext:')) ui.backgroundMusic.src=`${lib.assetURL}extension/${aozhan.slice(4)}`;
|
||||||
|
else ui.backgroundMusic.src=`${lib.assetURL}audio/background/aozhan_${aozhan}.mp3`;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else{
|
let music=_status.tempMusic||lib.config.background_music;
|
||||||
var music=_status.tempMusic||lib.config.background_music;
|
if(Array.isArray(music)) music=music.randomGet('music_off',_status.currentMusic)||lib.config.background_music;
|
||||||
if(Array.isArray(music)){
|
if(music=='music_random') music=lib.config.all.background_music.randomGet('music_off','music_random',_status.currentMusic);
|
||||||
music=music.randomGet('music_off',_status.currentMusic)||lib.config.background_music;
|
_status.currentMusic=music;
|
||||||
}
|
if(music=='music_custom'){
|
||||||
if(music=='music_random'){
|
const backgroundMusicSourceConfiguration=lib.config.background_music_src;
|
||||||
music=lib.config.all.background_music.randomGet('music_off','music_random',_status.currentMusic);
|
if(backgroundMusicSourceConfiguration) ui.backgroundMusic.src=backgroundMusicSourceConfiguration;
|
||||||
}
|
return;
|
||||||
_status.currentMusic=music;
|
|
||||||
if(music=='music_custom'){
|
|
||||||
if(lib.config.background_music_src){
|
|
||||||
ui.backgroundMusic.src=lib.config.background_music_src;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
ui.backgroundMusic.src=lib.assetURL+(music.startsWith('ext:')?'extension/'+music.slice(4):'audio/background/'+music+'.mp3');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if(music.startsWith('db:')) game.getDB('image',music.slice(3)).then(result=>ui.backgroundMusic.src=result);
|
||||||
|
else if(music.startsWith('ext:')) ui.backgroundMusic.src=`${lib.assetURL}extension/${music.slice(4)}`;
|
||||||
|
else ui.backgroundMusic.src=`${lib.assetURL}audio/background/${music}.mp3`;
|
||||||
},
|
},
|
||||||
import:function(type,content,url){
|
import:function(type,content,url){
|
||||||
if(type=='extension'){
|
if(type=='extension'){
|
||||||
|
@ -47525,7 +47403,7 @@
|
||||||
window.extension={};
|
window.extension={};
|
||||||
fetch(`${extensionURL}catalog.js`,{
|
fetch(`${extensionURL}catalog.js`,{
|
||||||
referrerPolicy:'no-referrer'
|
referrerPolicy:'no-referrer'
|
||||||
}).then(value=>value.text()).then(eval).then(loaded).catch(reason=>{
|
}).then(response=>response.text()).then(eval).then(loaded).catch(reason=>{
|
||||||
console.log(reason);
|
console.log(reason);
|
||||||
delete window.extension;
|
delete window.extension;
|
||||||
loading.innerHTML='连接失败:'+(reason instanceof Error?reason.message:String(reason));
|
loading.innerHTML='连接失败:'+(reason instanceof Error?reason.message:String(reason));
|
||||||
|
@ -57839,17 +57717,23 @@
|
||||||
}
|
}
|
||||||
return str2;
|
return str2;
|
||||||
},
|
},
|
||||||
slimNameHorizontal:function(str){
|
slimNameHorizontal:str=>{
|
||||||
var str2=lib.translate[str];
|
const slimName=lib.translate[`${str}_ab`]||lib.translate[str];
|
||||||
if(lib.translate[str+'_ab']) str2=lib.translate[str+'_ab'];
|
if(!slimName) return '';
|
||||||
if(!str2) return '';
|
const prefix=lib.translate[`${str}_prefix`];
|
||||||
if(lib.translate[str+'_prefix']&&str2.startsWith(lib.translate[str+'_prefix'])){
|
if(prefix&&slimName.startsWith(prefix)){
|
||||||
//兼容版特化处理
|
//兼容版特化处理
|
||||||
return `${get.prefixSpan(lib.translate[str+'_prefix'],str)}<span>${str2.slice(lib.translate[str+'_prefix'].length)} </span>`;
|
if(lib.compatibleEdition) return `${get.prefixSpan(prefix,str)}<span>${slimName.slice(prefix.length)} </span>`;
|
||||||
|
return `${get.prefixSpan(prefix,str)}<span>${slimName.slice(prefix.length)}</span>`;
|
||||||
}
|
}
|
||||||
return str2;
|
return slimName;
|
||||||
},
|
},
|
||||||
prefixSpan:function(prefix,name){
|
/**
|
||||||
|
* @param {string} prefix
|
||||||
|
* @param {string} name
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
|
prefixSpan:(prefix,name)=>{
|
||||||
let color='#ffffff',nature=false;
|
let color='#ffffff',nature=false;
|
||||||
const map=lib.namePrefix.get(prefix),config=lib.config.buttoncharacter_prefix;
|
const map=lib.namePrefix.get(prefix),config=lib.config.buttoncharacter_prefix;
|
||||||
if(config=='off') return '';
|
if(config=='off') return '';
|
||||||
|
@ -60962,5 +60846,11 @@
|
||||||
},
|
},
|
||||||
get:get
|
get:get
|
||||||
};
|
};
|
||||||
lib.init.init();
|
if('__core-js_shared__' in window) lib.init.init();
|
||||||
|
else{
|
||||||
|
const coreJSBundle=document.createElement('script');
|
||||||
|
coreJSBundle.onerror=coreJSBundle.onload=lib.init.init;
|
||||||
|
coreJSBundle.src=`${lib.assetURL}game/core-js-bundle.js`;
|
||||||
|
document.head.appendChild(coreJSBundle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,348 +1,514 @@
|
||||||
#arena.stone>.player.minskin[data-position='4']{top:calc(100% - 305px);left:calc(100% - 120px);}
|
#arena.stone>.player.minskin[data-position='4'] {
|
||||||
#arena.stone>.card[data-position='4']{top:calc(100% - 297px);left:calc(100% - 112px);}
|
top: calc(100% - 305px);
|
||||||
#arena.stone>.popup[data-position='4']{top:calc(100% - 340px);left:calc(100% - 112px);}
|
left: calc(100% - 120px);
|
||||||
#arena.stone>.player.minskin[data-position='6']{top:calc(100% - 305px);left:calc(100% - 260px);}
|
|
||||||
#arena.stone>.card[data-position='6']{top:calc(100% - 297px);left:calc(100% - 252px);}
|
|
||||||
#arena.stone>.popup[data-position='6']{top:calc(100% - 340px);left:calc(100% - 252px);}
|
|
||||||
#arena.stone>.player.minskin[data-position='7']{top:calc(100% - 305px);left:140px;}
|
|
||||||
#arena.stone>.card[data-position='7']{top:calc(100% - 297px);left:148px;}
|
|
||||||
#arena.stone>.popup[data-position='7']{top:calc(100% - 340px);left:148px;}
|
|
||||||
#arena.stone>.player.minskin[data-position='5']{top:calc(100% - 305px);left:0;}
|
|
||||||
#arena.stone>.card[data-position='5']{top:calc(100% - 297px);left:8px;}
|
|
||||||
#arena.stone>.popup[data-position='5']{top:calc(100% - 340px);left:8px;}
|
|
||||||
|
|
||||||
#arena.stone>.player.minskin[data-position='9']{top:30px;left:calc(100% - 120px);}
|
|
||||||
#arena.stone>.card[data-position='9']{top:38px;left:calc(100% - 112px);}
|
|
||||||
#arena.stone>.popup[data-position='9']{top:160px;left:calc(100% - 112px);}
|
|
||||||
#arena.stone>.player.minskin[data-position='11']{top:10px;left:calc(100% - 260px);}
|
|
||||||
#arena.stone>.card[data-position='11']{top:18px;left:calc(100% - 252px);}
|
|
||||||
#arena.stone>.popup[data-position='11']{top:140px;left:calc(100% - 252px);}
|
|
||||||
#arena.stone>.player.minskin[data-position='10']{top:10px;left:140px;}
|
|
||||||
#arena.stone>.card[data-position='10']{top:18px;left:148px;}
|
|
||||||
#arena.stone>.popup[data-position='10']{top:140px;left:148px;}
|
|
||||||
#arena.stone>.player.minskin[data-position='8']{top:30px;left:0;}
|
|
||||||
#arena.stone>.card[data-position='8']{top:38px;left:8px;}
|
|
||||||
#arena.stone>.popup[data-position='8']{top:160px;left:8px;}
|
|
||||||
#arena:not(.chess).mobile>.player[data-position='0']>.name{
|
|
||||||
top:30px;
|
|
||||||
}
|
|
||||||
#arena .player>.name{
|
|
||||||
top:36px;
|
|
||||||
}
|
|
||||||
#arena.slim_player .player>.name{
|
|
||||||
top:33px;
|
|
||||||
}
|
|
||||||
#arena .player.linked>.name{
|
|
||||||
transform: rotate(90deg) translate(120px,-96px);
|
|
||||||
}
|
|
||||||
#arena .player.linked>.name.name2{
|
|
||||||
transform: rotate(90deg) translate(98px,-31px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#arena.oldlayout .player.linked>.name{
|
#arena.stone>.card[data-position='4'] {
|
||||||
transform: none !important;
|
top: calc(100% - 297px);
|
||||||
}
|
left: calc(100% - 112px);
|
||||||
#arena.oldlayout .player.linked>.name.name2{
|
|
||||||
transform: none !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.player.minskin .judges{
|
#arena.stone>.popup[data-position='4'] {
|
||||||
top:14px;
|
top: calc(100% - 340px);
|
||||||
|
left: calc(100% - 112px);
|
||||||
}
|
}
|
||||||
.player>.identity.menubutton.round{
|
|
||||||
padding: 0;
|
#arena.stone>.player.minskin[data-position='6'] {
|
||||||
transform: scale(1.2) translate(-2px,2px);
|
top: calc(100% - 305px);
|
||||||
|
left: calc(100% - 260px);
|
||||||
}
|
}
|
||||||
.card .wunature{
|
|
||||||
top:74px;
|
#arena.stone>.card[data-position='6'] {
|
||||||
left:6px;
|
top: calc(100% - 297px);
|
||||||
right: auto;
|
left: calc(100% - 252px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='6'] {
|
||||||
|
top: calc(100% - 340px);
|
||||||
|
left: calc(100% - 252px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.player.minskin[data-position='7'] {
|
||||||
|
top: calc(100% - 305px);
|
||||||
|
left: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.card[data-position='7'] {
|
||||||
|
top: calc(100% - 297px);
|
||||||
|
left: 148px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='7'] {
|
||||||
|
top: calc(100% - 340px);
|
||||||
|
left: 148px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.player.minskin[data-position='5'] {
|
||||||
|
top: calc(100% - 305px);
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.card[data-position='5'] {
|
||||||
|
top: calc(100% - 297px);
|
||||||
|
left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='5'] {
|
||||||
|
top: calc(100% - 340px);
|
||||||
|
left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.player.minskin[data-position='9'] {
|
||||||
|
top: 30px;
|
||||||
|
left: calc(100% - 120px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.card[data-position='9'] {
|
||||||
|
top: 38px;
|
||||||
|
left: calc(100% - 112px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='9'] {
|
||||||
|
top: 160px;
|
||||||
|
left: calc(100% - 112px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.player.minskin[data-position='11'] {
|
||||||
|
top: 10px;
|
||||||
|
left: calc(100% - 260px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.card[data-position='11'] {
|
||||||
|
top: 18px;
|
||||||
|
left: calc(100% - 252px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='11'] {
|
||||||
|
top: 140px;
|
||||||
|
left: calc(100% - 252px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.player.minskin[data-position='10'] {
|
||||||
|
top: 10px;
|
||||||
|
left: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.card[data-position='10'] {
|
||||||
|
top: 18px;
|
||||||
|
left: 148px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='10'] {
|
||||||
|
top: 140px;
|
||||||
|
left: 148px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.player.minskin[data-position='8'] {
|
||||||
|
top: 30px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.card[data-position='8'] {
|
||||||
|
top: 38px;
|
||||||
|
left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.stone>.popup[data-position='8'] {
|
||||||
|
top: 160px;
|
||||||
|
left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena:not(.chess).mobile>.player[data-position='0']>.name {
|
||||||
|
top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena .player>.name {
|
||||||
|
top: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.slim_player .player>.name {
|
||||||
|
top: 33px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena .player.linked>.name {
|
||||||
|
transform: rotate(90deg) translate(120px, -96px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena .player.linked>.name.name2 {
|
||||||
|
transform: rotate(90deg) translate(98px, -31px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.oldlayout .player.linked>.name {
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#arena.oldlayout .player.linked>.name.name2 {
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player.minskin .judges {
|
||||||
|
top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player>.identity.menubutton.round {
|
||||||
|
padding: 0;
|
||||||
|
transform: scale(1.2) translate(-2px, 2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card .wunature {
|
||||||
|
top: 74px;
|
||||||
|
left: 6px;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* .player .equips{ */
|
/* .player .equips{ */
|
||||||
/*z-index: 4;*/
|
/*z-index: 4;*/
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
#arena:not(.chess).mobile .player[data-position='0']:not(.minskin)>.identity{
|
#arena:not(.chess).mobile .player[data-position='0']:not(.minskin)>.identity {
|
||||||
left: 100px;
|
left: 100px;
|
||||||
top: -7px;
|
top: -7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#deck-builder{
|
#deck-builder {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list{
|
|
||||||
width: 200px;
|
#deck-builder>.shadowed.list {
|
||||||
height: 100%;
|
width: 200px;
|
||||||
right: 0;
|
height: 100%;
|
||||||
top:0;
|
right: 0;
|
||||||
border-radius: 0px;
|
top: 0;
|
||||||
transform: translateX(200px);
|
border-radius: 0px;
|
||||||
opacity: 0;
|
transform: translateX(200px);
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
#deck-builder.shown>.shadowed.list{
|
|
||||||
transform: none;
|
#deck-builder.shown>.shadowed.list {
|
||||||
opacity: 1;
|
transform: none;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.menubutton.large.create{
|
|
||||||
position: absolute;
|
#deck-builder>.shadowed.list>.menubutton.large.create {
|
||||||
bottom: 10px;
|
position: absolute;
|
||||||
left: auto;
|
bottom: 10px;
|
||||||
right: 10px;
|
left: auto;
|
||||||
margin: 0;
|
right: 10px;
|
||||||
padding: 0;
|
margin: 0;
|
||||||
width: 180px;
|
padding: 0;
|
||||||
height: 50px;
|
width: 180px;
|
||||||
font-size: 36px;
|
height: 50px;
|
||||||
line-height: 50px;
|
font-size: 36px;
|
||||||
z-index: 2;
|
line-height: 50px;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container{
|
|
||||||
width:100%;
|
#deck-builder>.shadowed.list>.list-container {
|
||||||
left:0;
|
width: 100%;
|
||||||
height: calc(100% - 60px);
|
left: 0;
|
||||||
overflow-y: scroll;
|
height: calc(100% - 60px);
|
||||||
overflow-x: visible;
|
overflow-y: scroll;
|
||||||
text-align: left;
|
overflow-x: visible;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container:not(.deck){
|
|
||||||
z-index: 1;
|
#deck-builder>.shadowed.list>.list-container:not(.deck) {
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container.deck{
|
|
||||||
pointer-events: none;
|
#deck-builder>.shadowed.list>.list-container.deck {
|
||||||
opacity: 0;
|
pointer-events: none;
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container.deck.shown{
|
|
||||||
pointer-events: auto;
|
#deck-builder>.shadowed.list>.list-container.deck.shown {
|
||||||
opacity: 1;
|
pointer-events: auto;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container.deck>.card{
|
|
||||||
zoom:0.8;
|
#deck-builder>.shadowed.list>.list-container.deck>.card {
|
||||||
margin-bottom: 15px;
|
zoom: 0.8;
|
||||||
margin-top: 0;
|
margin-bottom: 15px;
|
||||||
transition: all 0s;
|
margin-top: 0;
|
||||||
|
transition: all 0s;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n+1){
|
|
||||||
margin-left: 15px;
|
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n+1) {
|
||||||
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n){
|
|
||||||
margin-left: 7px;
|
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n) {
|
||||||
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child,
|
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child,
|
||||||
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div{
|
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
.deckitem{
|
|
||||||
position: relative;
|
.deckitem {
|
||||||
width: 170px;
|
position: relative;
|
||||||
margin-left: 15px;
|
width: 170px;
|
||||||
margin-right: 0;
|
margin-left: 15px;
|
||||||
padding-left: 0;
|
margin-right: 0;
|
||||||
padding-right: 0;
|
padding-left: 0;
|
||||||
padding-top: 5px;
|
padding-right: 0;
|
||||||
padding-bottom: 5px;
|
padding-top: 5px;
|
||||||
margin-top: 15px;
|
padding-bottom: 5px;
|
||||||
margin-bottom: 0px;
|
margin-top: 15px;
|
||||||
text-align: left;
|
margin-bottom: 0px;
|
||||||
font-size:24px;
|
text-align: left;
|
||||||
line-height:30px;
|
font-size: 24px;
|
||||||
font-family:'xinwei';
|
line-height: 30px;
|
||||||
border-radius: 40px 4px 4px 40px;
|
font-family: 'xinwei';
|
||||||
background-size: cover;
|
border-radius: 40px 4px 4px 40px;
|
||||||
white-space: nowrap;
|
background-size: cover;
|
||||||
transition: all 0s;
|
white-space: nowrap;
|
||||||
|
transition: all 0s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#window:not(.nopointer) .deckitem,
|
#window:not(.nopointer) .deckitem,
|
||||||
#window:not(.nopointer) #deck-builder>.shadowed.list>.menubutton.large.create,
|
#window:not(.nopointer) #deck-builder>.shadowed.list>.menubutton.large.create,
|
||||||
#window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child){
|
#window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.dialog .deckitem{
|
|
||||||
margin-left: 8px;
|
.dialog .deckitem {
|
||||||
margin-right: 9px;
|
margin-left: 8px;
|
||||||
|
margin-right: 9px;
|
||||||
}
|
}
|
||||||
.deckitem.random{
|
|
||||||
border-radius: 4px;
|
.deckitem.random {
|
||||||
text-align: center;
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.deckitem.random>span{
|
|
||||||
margin-left: 0;
|
.deckitem.random>span {
|
||||||
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.deckitem:last-child{
|
|
||||||
margin-bottom: 15px;
|
.deckitem:last-child {
|
||||||
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
.deckitem>span{
|
|
||||||
margin-left: 46px;
|
.deckitem>span {
|
||||||
|
margin-left: 46px;
|
||||||
}
|
}
|
||||||
.deckitem>.menubutton.round{
|
|
||||||
position: absolute;
|
.deckitem>.menubutton.round {
|
||||||
left: -1px;
|
position: absolute;
|
||||||
top: -2px;
|
left: -1px;
|
||||||
width: 34px;
|
top: -2px;
|
||||||
height: 34px;
|
width: 34px;
|
||||||
|
height: 34px;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.career{
|
|
||||||
width: 240px;
|
#deck-builder>.shadowed.career {
|
||||||
height: 240px;
|
width: 240px;
|
||||||
right: 220px;
|
height: 240px;
|
||||||
bottom: 20px;
|
right: 220px;
|
||||||
opacity: 0;
|
bottom: 20px;
|
||||||
transform: scale(0) translateX(300px);
|
opacity: 0;
|
||||||
transform-origin: right bottom;
|
transform: scale(0) translateX(300px);
|
||||||
transition-duration: 0.3s;
|
transform-origin: right bottom;
|
||||||
z-index: 8;
|
transition-duration: 0.3s;
|
||||||
|
z-index: 8;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.career.shown{
|
|
||||||
transform: scale(1) translateX(0);
|
#deck-builder>.shadowed.career.shown {
|
||||||
opacity: 1;
|
transform: scale(1) translateX(0);
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.career>div{
|
|
||||||
width: 80px;
|
#deck-builder>.shadowed.career>div {
|
||||||
height: 80px;
|
width: 80px;
|
||||||
margin: 0;
|
height: 80px;
|
||||||
padding: 0;
|
margin: 0;
|
||||||
position: relative;
|
padding: 0;
|
||||||
display: inline-block;
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.career>div>.menubutton.round{
|
|
||||||
left: 15px;
|
#deck-builder>.shadowed.career>div>.menubutton.round {
|
||||||
top: 5px;
|
left: 15px;
|
||||||
|
top: 5px;
|
||||||
}
|
}
|
||||||
#deck-builder>.shadowed.career>div>.text{
|
|
||||||
font-size: 12px;
|
#deck-builder>.shadowed.career>div>.text {
|
||||||
width: 100%;
|
font-size: 12px;
|
||||||
text-align: center;
|
width: 100%;
|
||||||
top: 58px;
|
text-align: center;
|
||||||
|
top: 58px;
|
||||||
}
|
}
|
||||||
#deck-builder>.dialog.fixed{
|
|
||||||
left: auto;
|
#deck-builder>.dialog.fixed {
|
||||||
right: 240px;
|
left: auto;
|
||||||
width: calc(100% - 280px);
|
right: 240px;
|
||||||
/*opacity: 0;*/
|
width: calc(100% - 280px);
|
||||||
animation: none;
|
/*opacity: 0;*/
|
||||||
-webkit-animation:none;
|
animation: none;
|
||||||
/*transform: scale(0.8);*/
|
-webkit-animation: none;
|
||||||
/*pointer-events: none;*/
|
/*transform: scale(0.8);*/
|
||||||
/*-webkit-animation:dialog_start2 0.5s;*/
|
/*pointer-events: none;*/
|
||||||
transition: all 0.5s;
|
/*-webkit-animation:dialog_start2 0.5s;*/
|
||||||
|
transition: all 0.5s;
|
||||||
}
|
}
|
||||||
#deck-builder:not(.shown)>.dialog.fixed{
|
|
||||||
opacity: 0;
|
#deck-builder:not(.shown)>.dialog.fixed {
|
||||||
transform: scale(0.8);
|
opacity: 0;
|
||||||
pointer-events: none;
|
transform: scale(0.8);
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
#deck-builder>.dialog.fixed.shown{
|
|
||||||
opacity: 1;
|
#deck-builder>.dialog.fixed.shown {
|
||||||
transform: scale(1);
|
opacity: 1;
|
||||||
pointer-events: auto;
|
transform: scale(1);
|
||||||
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
#deck-builder>.controls{
|
|
||||||
opacity: 0;
|
#deck-builder>.controls {
|
||||||
height: 50px;
|
opacity: 0;
|
||||||
width: calc(100% - 200px);
|
height: 50px;
|
||||||
bottom: 10px;
|
width: calc(100% - 200px);
|
||||||
left: 0;
|
bottom: 10px;
|
||||||
text-align: right;
|
left: 0;
|
||||||
z-index: 9;
|
text-align: right;
|
||||||
pointer-events: none;
|
z-index: 9;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
#deck-builder>.controls>div{
|
|
||||||
position: relative;
|
#deck-builder>.controls>div {
|
||||||
margin-top:5px;
|
position: relative;
|
||||||
margin-left: 5px;
|
margin-top: 5px;
|
||||||
margin-right: 5px;
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
#deck-builder>.controls>.card-count{
|
|
||||||
position: absolute;
|
#deck-builder>.controls>.card-count {
|
||||||
width: 100px;
|
position: absolute;
|
||||||
height: 100%;
|
width: 100px;
|
||||||
left: calc(50% - 50px);
|
height: 100%;
|
||||||
text-align: center;
|
left: calc(50% - 50px);
|
||||||
font-family: 'xinwei';
|
text-align: center;
|
||||||
font-size: 24px;
|
font-family: 'xinwei';
|
||||||
line-height: 50px;
|
font-size: 24px;
|
||||||
margin: 0;
|
line-height: 50px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
#deck-builder>.controls>div:last-child{
|
|
||||||
margin-right: 40px;
|
#deck-builder>.controls>div:last-child {
|
||||||
white-space: nowrap;
|
margin-right: 40px;
|
||||||
-webkit-user-select: text;
|
white-space: nowrap;
|
||||||
|
user-select: text;
|
||||||
|
-webkit-user-select: text;
|
||||||
}
|
}
|
||||||
#deck-builder>.controls.shown{
|
|
||||||
opacity: 1;
|
#deck-builder>.controls.shown {
|
||||||
pointer-events: auto;
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
#arena>.player.stone_deck{
|
|
||||||
transform: scale(1) translateX(100px);
|
#arena>.player.stone_deck {
|
||||||
opacity: 0;
|
transform: scale(1) translateX(100px);
|
||||||
transition: all 0.5s;
|
opacity: 0;
|
||||||
left: calc(5% + 50px);
|
transition: all 0.5s;
|
||||||
top:calc(50% - 90px);
|
left: calc(5% + 50px);
|
||||||
|
top: calc(50% - 90px);
|
||||||
}
|
}
|
||||||
#arena>.player.stone_deck.shown{
|
|
||||||
transform: scale(0.8);
|
#arena>.player.stone_deck.shown {
|
||||||
opacity: 1;
|
transform: scale(0.8);
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#arena>.player.stone_deck.shown.removing{
|
|
||||||
transform: scale(0.6) translateX(-100px);
|
#arena>.player.stone_deck.shown.removing {
|
||||||
|
transform: scale(0.6) translateX(-100px);
|
||||||
}
|
}
|
||||||
#arena>.player.stone_deck>div:not(.avatar):not(.avatar2){
|
|
||||||
display: none !important;
|
#arena>.player.stone_deck>div:not(.avatar):not(.avatar2) {
|
||||||
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*#arena>.skillbar>.skillbartext:hover{
|
/*#arena>.skillbar>.skillbartext:hover{
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}*/
|
}*/
|
||||||
@keyframes skillbarglow{
|
@keyframes skillbarglow {
|
||||||
0%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
|
0% {
|
||||||
50%{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px,
|
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
|
||||||
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px}
|
}
|
||||||
100%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
|
|
||||||
}
|
50% {
|
||||||
@-webkit-keyframes skillbarglow{
|
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px,
|
||||||
0%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
|
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px
|
||||||
50%{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px,
|
}
|
||||||
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px}
|
|
||||||
100%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
|
100% {
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div[data-career='mage']{
|
@-webkit-keyframes skillbarglow {
|
||||||
background-image: url('../../image/mode/stone/career/mage.png');
|
0% {
|
||||||
background-size:cover;
|
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px,
|
||||||
|
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
|
||||||
|
}
|
||||||
}
|
}
|
||||||
div[data-career='druid']{
|
|
||||||
background-image: url('../../image/mode/stone/career/druid.png');
|
div[data-career='mage'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/mage.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='hunter']{
|
|
||||||
background-image: url('../../image/mode/stone/career/hunter.png');
|
div[data-career='druid'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/druid.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='shaman']{
|
|
||||||
background-image: url('../../image/mode/stone/career/shaman.png');
|
div[data-career='hunter'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/hunter.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='paladin']{
|
|
||||||
background-image: url('../../image/mode/stone/career/paladin.png');
|
div[data-career='shaman'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/shaman.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='rogue']{
|
|
||||||
background-image: url('../../image/mode/stone/career/rogue.png');
|
div[data-career='paladin'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/paladin.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='priest']{
|
|
||||||
background-image: url('../../image/mode/stone/career/priest.png');
|
div[data-career='rogue'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/rogue.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='warrior']{
|
|
||||||
background-image: url('../../image/mode/stone/career/warrior.png');
|
div[data-career='priest'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/priest.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='warlock']{
|
|
||||||
background-image: url('../../image/mode/stone/career/warlock.png');
|
div[data-career='warrior'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/warrior.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
div[data-career='knight']{
|
|
||||||
background-image: url('../../image/mode/stone/career/knight.png');
|
div[data-career='warlock'] {
|
||||||
background-size:cover;
|
background-image: url('../../image/mode/stone/career/warlock.png');
|
||||||
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div[data-career='knight'] {
|
||||||
|
background-image: url('../../image/mode/stone/career/knight.png');
|
||||||
|
background-size: cover;
|
||||||
|
}
|
Loading…
Reference in New Issue