Merge pull request #468 from Tipx-L/PR-Branch

The Polyfill Update.
This commit is contained in:
Spmario233 2023-10-05 14:54:37 +08:00 committed by GitHub
commit b789e27bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27596 additions and 494 deletions

27046
game/core-js-bundle.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -29,6 +29,7 @@
}
}
}
const nonameInitialized=localStorage.getItem('noname_inited');
const GeneratorFunction=(function*(){}).constructor;
// gnc: GeNCoroutine
const gnc={
@ -115,7 +116,8 @@
updateURL:'https://raw.githubusercontent.com/libccy/noname',
mirrorURL:'https://raw.fgit.cf/libccy/noname',
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:[],
updates:[],
canvasUpdates:[],
@ -8232,14 +8234,15 @@
}
});
HTMLDivElement.prototype.setBackgroundDB=function(img){
var node=this;
game.getDB('image',img,function(src){
node.style.backgroundImage="url('"+src+"')";
node.style.backgroundSize="cover";
return game.getDB('image',img).then(src=>{
this.style.backgroundImage=`url('${src}')`;
this.style.backgroundSize="cover";
return this;
});
};
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){
if(lib.config.touchscreen){
@ -8535,112 +8538,6 @@
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){
if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){
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://')){
function createShowCode(lines){
let showCode='';
if(lines.length>=10){
if(line>4){
for(let i=line-5;i<line+6&&i<lines.length;i++){
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
}
}else{
for(let i=0;i<line+6&&i<lines.length;i++){
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
}
}
}else{
showCode=lines.map((_line,i)=>`${i+1}| ${line==i+1?'⚠️':''}${_line}\n`).toString();
if(lines.length>=10){
if(line>4){
for(let i=line-5;i<line+6&&i<lines.length;i++){
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
}
}else{
for(let i=0;i<line+6&&i<lines.length;i++){
showCode+=`${i+1}| ${line==i+1?'⚠️':''}${lines[i]}\n`;
}
}
}else{
showCode=lines.map((_line,i)=>`${i+1}| ${line==i+1?'⚠️':''}${_line}\n`).toString();
}
return showCode;
}
//协议名须和html一致(网页端防跨域)且文件是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 lines=codes.split("\n");
str+='\n'+createShowCode(lines);
str+='\n-------------';
//获取代码
const codes=lib.init.reqSync('local:'+decodeURI(src).replace(lib.assetURL,'').replace(winPath,''));
const lines=codes.split("\n");
str+='\n'+createShowCode(lines);
str+='\n-------------';
}
//解析parsex里的content fun内容(通常是技能content)
else if(err&&err.stack&&err.stack.split('\n')[1].trim().startsWith('at Object.eval [as content]')){
const codes=_status.event.content;
if(typeof codes=='function'){
const lines=codes.toString().split("\n");
str+='\n'+createShowCode(lines);
str+='\n-------------';
}
}
}
const codes=_status.event.content;
if(typeof codes=='function'){
const lines=codes.toString().split("\n");
str+='\n'+createShowCode(lines);
str+='\n-------------';
}
}
}
if(err&&err.stack) str+='\n'+decodeURI(err.stack).replace(new RegExp(lib.assetURL,'g'),'').replace(new RegExp(winPath,'g'),'');
alert(str);
window.ea=Array.from(arguments);
@ -8874,7 +8771,6 @@
else if(ua.includes('iphone')||ua.includes('ipad')||ua.includes('macintosh')){
lib.device='ios';
}
lib.assetURL=noname_inited;
}
if(lib.assetURL.includes('com.widget.noname.qingyao')){
@ -33852,42 +33748,42 @@
}],
['TW神',{
getSpan:(prefix,name)=>{
return get.prefixSpan('TW')+get.prefixSpan('神')
return `${get.prefixSpan('TW')}${get.prefixSpan('神')}`
},
}],
['TW将',{
getSpan:(prefix,name)=>{
return get.prefixSpan('TW')+get.prefixSpan('将')
return `${get.prefixSpan('TW')}${get.prefixSpan('将')}`
},
}],
['OL神',{
getSpan:(prefix,name)=>{
return get.prefixSpan('OL')+get.prefixSpan('神')
return `${get.prefixSpan('OL')}${get.prefixSpan('神')}`
},
}],
['旧神',{
getSpan:(prefix,name)=>{
return get.prefixSpan('旧')+get.prefixSpan('神')
return `${get.prefixSpan('旧')}${get.prefixSpan('神')}`
},
}],
['旧晋',{
getSpan:(prefix,name)=>{
return get.prefixSpan('旧')+get.prefixSpan('晋')
return `${get.prefixSpan('旧')}${get.prefixSpan('晋')}`
},
}],
['新杀SP',{
getSpan:(prefix,name)=>{
return get.prefixSpan('新杀')+get.prefixSpan('SP')
return `${get.prefixSpan('新杀')}${get.prefixSpan('SP')}`
},
}],
['界SP',{
getSpan:(prefix,name)=>{
return get.prefixSpan('界')+get.prefixSpan('SP')
return `${get.prefixSpan('界')}${get.prefixSpan('SP')}`
},
}],
['S特神',{
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;
config.updatex.call(backgroundMusicSetting,[]);
},
updateBackground:function(){
var background=(_status.tempBackground||lib.config.image_background);
updateBackground:()=>{
const background=_status.tempBackground||lib.config.image_background;
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){
ui.background.style.filter='blur(8px)';
ui.background.style.webkitFilter='blur(8px)';
ui.background.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));
style.filter='blur(8px)';
style.webkitFilter='blur(8px)';
style.transform='scale(1.05)';
}
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'){
ui.background.animate('start');
ui.background.style.backgroundImage="none";
uiBackground.animate('start');
style.backgroundImage='none';
}
else if(background.startsWith('custom_')){
ui.background.style.backgroundImage="none";
game.getDB('image',background,function(fileToLoad){
style.backgroundImage='none';
game.getDB('image',background).then(fileToLoad=>{
if(!fileToLoad) return;
var fileReader = new FileReader();
fileReader.onload = function(fileLoadedEvent)
{
var data = fileLoadedEvent.target.result;
ui.background.style.backgroundImage='url('+data+')';
};
const fileReader = new FileReader();
fileReader.onload=fileLoadedEvent=>style.backgroundImage=`url(${fileLoadedEvent.target.result})`;
fileReader.readAsDataURL(fileToLoad, "UTF-8");
});
}
else{
ui.background.setBackgroundImage('image/background/'+background+'.jpg');
}
ui.background.style.backgroundSize='cover';
ui.background.style.backgroundPosition='50% 50%';
else uiBackground.setBackgroundImage(`image/background/${background}.jpg`);
style.backgroundSize='cover';
style.backgroundPosition='50% 50%';
},
//Generate a beatmap using the given BPM, beats, and offset
//用给定的BPM、节拍和偏移生成谱面
@ -35171,39 +35053,35 @@
};
ui.window.appendChild(audio);
},
playBackgroundMusic:function(){
playBackgroundMusic:()=>{
if(lib.config.background_music=='music_off'){
ui.backgroundMusic.src='';
return;
}
else if(_status._aozhan==true&&lib.config.mode_config.guozhan.aozhan_bgm!='disabled'){
var aozhan=_status.tempAozhan||lib.config.mode_config.guozhan.aozhan_bgm;
if(Array.isArray(aozhan)){
aozhan=aozhan.randomGet('disabled',_status.currentAozhan)||lib.config.mode_config.guozhan.aozhan_bgm;
}
if(aozhan=='random'){
aozhan=Object.keys(lib.mode.guozhan.config.aozhan_bgm.item).randomGet('disabled','random',_status.currentAozhan);
}
if(_status._aozhan){
const aozhanBGMConfiguration=lib.config.mode_config.guozhan.aozhan_bgm;
if(aozhanBGMConfiguration=='disabled') return;
let aozhan=_status.tempAozhan||aozhanBGMConfiguration;
if(Array.isArray(aozhan)) aozhan=aozhan.randomGet('disabled',_status.currentAozhan)||aozhanBGMConfiguration;
if(aozhan=='random') aozhan=Object.keys(lib.mode.guozhan.config.aozhan_bgm.item).randomGet('disabled','random',_status.currentAozhan);
_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{
var music=_status.tempMusic||lib.config.background_music;
if(Array.isArray(music)){
music=music.randomGet('music_off',_status.currentMusic)||lib.config.background_music;
}
if(music=='music_random'){
music=lib.config.all.background_music.randomGet('music_off','music_random',_status.currentMusic);
}
_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');
}
let music=_status.tempMusic||lib.config.background_music;
if(Array.isArray(music)) music=music.randomGet('music_off',_status.currentMusic)||lib.config.background_music;
if(music=='music_random') music=lib.config.all.background_music.randomGet('music_off','music_random',_status.currentMusic);
_status.currentMusic=music;
if(music=='music_custom'){
const backgroundMusicSourceConfiguration=lib.config.background_music_src;
if(backgroundMusicSourceConfiguration) ui.backgroundMusic.src=backgroundMusicSourceConfiguration;
return;
}
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){
if(type=='extension'){
@ -47525,7 +47403,7 @@
window.extension={};
fetch(`${extensionURL}catalog.js`,{
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);
delete window.extension;
loading.innerHTML='连接失败:'+(reason instanceof Error?reason.message:String(reason));
@ -57839,17 +57717,23 @@
}
return str2;
},
slimNameHorizontal:function(str){
var str2=lib.translate[str];
if(lib.translate[str+'_ab']) str2=lib.translate[str+'_ab'];
if(!str2) return '';
if(lib.translate[str+'_prefix']&&str2.startsWith(lib.translate[str+'_prefix'])){
slimNameHorizontal:str=>{
const slimName=lib.translate[`${str}_ab`]||lib.translate[str];
if(!slimName) return '';
const prefix=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;
const map=lib.namePrefix.get(prefix),config=lib.config.buttoncharacter_prefix;
if(config=='off') return '';
@ -60962,5 +60846,11 @@
},
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);
}
}

View File

@ -1,348 +1,514 @@
#arena.stone>.player.minskin[data-position='4']{top:calc(100% - 305px);left:calc(100% - 120px);}
#arena.stone>.card[data-position='4']{top:calc(100% - 297px);left:calc(100% - 112px);}
#arena.stone>.popup[data-position='4']{top:calc(100% - 340px);left:calc(100% - 112px);}
#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.stone>.player.minskin[data-position='4'] {
top: calc(100% - 305px);
left: calc(100% - 120px);
}
#arena.oldlayout .player.linked>.name{
transform: none !important;
}
#arena.oldlayout .player.linked>.name.name2{
transform: none !important;
#arena.stone>.card[data-position='4'] {
top: calc(100% - 297px);
left: calc(100% - 112px);
}
.player.minskin .judges{
top:14px;
#arena.stone>.popup[data-position='4'] {
top: calc(100% - 340px);
left: calc(100% - 112px);
}
.player>.identity.menubutton.round{
padding: 0;
transform: scale(1.2) translate(-2px,2px);
#arena.stone>.player.minskin[data-position='6'] {
top: calc(100% - 305px);
left: calc(100% - 260px);
}
.card .wunature{
top:74px;
left:6px;
right: auto;
#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 {
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{ */
/*z-index: 4;*/
/*z-index: 4;*/
/* } */
#arena:not(.chess).mobile .player[data-position='0']:not(.minskin)>.identity{
left: 100px;
top: -7px;
#arena:not(.chess).mobile .player[data-position='0']:not(.minskin)>.identity {
left: 100px;
top: -7px;
}
#deck-builder{
overflow: hidden;
#deck-builder {
overflow: hidden;
}
#deck-builder>.shadowed.list{
width: 200px;
height: 100%;
right: 0;
top:0;
border-radius: 0px;
transform: translateX(200px);
opacity: 0;
#deck-builder>.shadowed.list {
width: 200px;
height: 100%;
right: 0;
top: 0;
border-radius: 0px;
transform: translateX(200px);
opacity: 0;
}
#deck-builder.shown>.shadowed.list{
transform: none;
opacity: 1;
#deck-builder.shown>.shadowed.list {
transform: none;
opacity: 1;
}
#deck-builder>.shadowed.list>.menubutton.large.create{
position: absolute;
bottom: 10px;
left: auto;
right: 10px;
margin: 0;
padding: 0;
width: 180px;
height: 50px;
font-size: 36px;
line-height: 50px;
z-index: 2;
#deck-builder>.shadowed.list>.menubutton.large.create {
position: absolute;
bottom: 10px;
left: auto;
right: 10px;
margin: 0;
padding: 0;
width: 180px;
height: 50px;
font-size: 36px;
line-height: 50px;
z-index: 2;
}
#deck-builder>.shadowed.list>.list-container{
width:100%;
left:0;
height: calc(100% - 60px);
overflow-y: scroll;
overflow-x: visible;
text-align: left;
#deck-builder>.shadowed.list>.list-container {
width: 100%;
left: 0;
height: calc(100% - 60px);
overflow-y: scroll;
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;
opacity: 0;
#deck-builder>.shadowed.list>.list-container.deck {
pointer-events: none;
opacity: 0;
}
#deck-builder>.shadowed.list>.list-container.deck.shown{
pointer-events: auto;
opacity: 1;
#deck-builder>.shadowed.list>.list-container.deck.shown {
pointer-events: auto;
opacity: 1;
}
#deck-builder>.shadowed.list>.list-container.deck>.card{
zoom:0.8;
margin-bottom: 15px;
margin-top: 0;
transition: all 0s;
#deck-builder>.shadowed.list>.list-container.deck>.card {
zoom: 0.8;
margin-bottom: 15px;
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+div{
margin-top: 15px;
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div {
margin-top: 15px;
}
.deckitem{
position: relative;
width: 170px;
margin-left: 15px;
margin-right: 0;
padding-left: 0;
padding-right: 0;
padding-top: 5px;
padding-bottom: 5px;
margin-top: 15px;
margin-bottom: 0px;
text-align: left;
font-size:24px;
line-height:30px;
font-family:'xinwei';
border-radius: 40px 4px 4px 40px;
background-size: cover;
white-space: nowrap;
transition: all 0s;
.deckitem {
position: relative;
width: 170px;
margin-left: 15px;
margin-right: 0;
padding-left: 0;
padding-right: 0;
padding-top: 5px;
padding-bottom: 5px;
margin-top: 15px;
margin-bottom: 0px;
text-align: left;
font-size: 24px;
line-height: 30px;
font-family: 'xinwei';
border-radius: 40px 4px 4px 40px;
background-size: cover;
white-space: nowrap;
transition: all 0s;
}
#window:not(.nopointer) .deckitem,
#window:not(.nopointer) #deck-builder>.shadowed.list>.menubutton.large.create,
#window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child){
cursor: pointer;
#window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child) {
cursor: pointer;
}
.dialog .deckitem{
margin-left: 8px;
margin-right: 9px;
.dialog .deckitem {
margin-left: 8px;
margin-right: 9px;
}
.deckitem.random{
border-radius: 4px;
text-align: center;
.deckitem.random {
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;
left: -1px;
top: -2px;
width: 34px;
height: 34px;
.deckitem>.menubutton.round {
position: absolute;
left: -1px;
top: -2px;
width: 34px;
height: 34px;
}
#deck-builder>.shadowed.career{
width: 240px;
height: 240px;
right: 220px;
bottom: 20px;
opacity: 0;
transform: scale(0) translateX(300px);
transform-origin: right bottom;
transition-duration: 0.3s;
z-index: 8;
#deck-builder>.shadowed.career {
width: 240px;
height: 240px;
right: 220px;
bottom: 20px;
opacity: 0;
transform: scale(0) translateX(300px);
transform-origin: right bottom;
transition-duration: 0.3s;
z-index: 8;
}
#deck-builder>.shadowed.career.shown{
transform: scale(1) translateX(0);
opacity: 1;
#deck-builder>.shadowed.career.shown {
transform: scale(1) translateX(0);
opacity: 1;
}
#deck-builder>.shadowed.career>div{
width: 80px;
height: 80px;
margin: 0;
padding: 0;
position: relative;
display: inline-block;
#deck-builder>.shadowed.career>div {
width: 80px;
height: 80px;
margin: 0;
padding: 0;
position: relative;
display: inline-block;
}
#deck-builder>.shadowed.career>div>.menubutton.round{
left: 15px;
top: 5px;
#deck-builder>.shadowed.career>div>.menubutton.round {
left: 15px;
top: 5px;
}
#deck-builder>.shadowed.career>div>.text{
font-size: 12px;
width: 100%;
text-align: center;
top: 58px;
#deck-builder>.shadowed.career>div>.text {
font-size: 12px;
width: 100%;
text-align: center;
top: 58px;
}
#deck-builder>.dialog.fixed{
left: auto;
right: 240px;
width: calc(100% - 280px);
/*opacity: 0;*/
animation: none;
-webkit-animation:none;
/*transform: scale(0.8);*/
/*pointer-events: none;*/
/*-webkit-animation:dialog_start2 0.5s;*/
transition: all 0.5s;
#deck-builder>.dialog.fixed {
left: auto;
right: 240px;
width: calc(100% - 280px);
/*opacity: 0;*/
animation: none;
-webkit-animation: none;
/*transform: scale(0.8);*/
/*pointer-events: none;*/
/*-webkit-animation:dialog_start2 0.5s;*/
transition: all 0.5s;
}
#deck-builder:not(.shown)>.dialog.fixed{
opacity: 0;
transform: scale(0.8);
pointer-events: none;
#deck-builder:not(.shown)>.dialog.fixed {
opacity: 0;
transform: scale(0.8);
pointer-events: none;
}
#deck-builder>.dialog.fixed.shown{
opacity: 1;
transform: scale(1);
pointer-events: auto;
#deck-builder>.dialog.fixed.shown {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
#deck-builder>.controls{
opacity: 0;
height: 50px;
width: calc(100% - 200px);
bottom: 10px;
left: 0;
text-align: right;
z-index: 9;
pointer-events: none;
#deck-builder>.controls {
opacity: 0;
height: 50px;
width: calc(100% - 200px);
bottom: 10px;
left: 0;
text-align: right;
z-index: 9;
pointer-events: none;
}
#deck-builder>.controls>div{
position: relative;
margin-top:5px;
margin-left: 5px;
margin-right: 5px;
#deck-builder>.controls>div {
position: relative;
margin-top: 5px;
margin-left: 5px;
margin-right: 5px;
}
#deck-builder>.controls>.card-count{
position: absolute;
width: 100px;
height: 100%;
left: calc(50% - 50px);
text-align: center;
font-family: 'xinwei';
font-size: 24px;
line-height: 50px;
margin: 0;
#deck-builder>.controls>.card-count {
position: absolute;
width: 100px;
height: 100%;
left: calc(50% - 50px);
text-align: center;
font-family: 'xinwei';
font-size: 24px;
line-height: 50px;
margin: 0;
}
#deck-builder>.controls>div:last-child{
margin-right: 40px;
white-space: nowrap;
-webkit-user-select: text;
#deck-builder>.controls>div:last-child {
margin-right: 40px;
white-space: nowrap;
user-select: text;
-webkit-user-select: text;
}
#deck-builder>.controls.shown{
opacity: 1;
pointer-events: auto;
#deck-builder>.controls.shown {
opacity: 1;
pointer-events: auto;
}
#arena>.player.stone_deck{
transform: scale(1) translateX(100px);
opacity: 0;
transition: all 0.5s;
left: calc(5% + 50px);
top:calc(50% - 90px);
#arena>.player.stone_deck {
transform: scale(1) translateX(100px);
opacity: 0;
transition: all 0.5s;
left: calc(5% + 50px);
top: calc(50% - 90px);
}
#arena>.player.stone_deck.shown{
transform: scale(0.8);
opacity: 1;
#arena>.player.stone_deck.shown {
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{
opacity: 1;
}*/
@keyframes skillbarglow{
0%{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}
}
@-webkit-keyframes skillbarglow{
0%{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}
@keyframes skillbarglow {
0% {
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='mage']{
background-image: url('../../image/mode/stone/career/mage.png');
background-size:cover;
@-webkit-keyframes skillbarglow {
0% {
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');
background-size:cover;
div[data-career='mage'] {
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');
background-size:cover;
div[data-career='druid'] {
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');
background-size:cover;
div[data-career='hunter'] {
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');
background-size:cover;
div[data-career='shaman'] {
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');
background-size:cover;
div[data-career='paladin'] {
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');
background-size:cover;
div[data-career='rogue'] {
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');
background-size:cover;
div[data-career='priest'] {
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');
background-size:cover;
div[data-career='warrior'] {
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');
background-size:cover;
div[data-career='warlock'] {
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;
}