commit
b789e27bec
File diff suppressed because it is too large
Load Diff
266
game/game.js
266
game/game.js
|
@ -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)){
|
||||
|
@ -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');
|
||||
}
|
||||
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);
|
||||
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;
|
||||
}
|
||||
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'){
|
||||
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');
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,40 +1,139 @@
|
|||
#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='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.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);
|
||||
}
|
||||
|
@ -42,6 +141,7 @@
|
|||
#arena.oldlayout .player.linked>.name {
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
#arena.oldlayout .player.linked>.name.name2 {
|
||||
transform: none !important;
|
||||
}
|
||||
|
@ -49,15 +149,18 @@
|
|||
.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;*/
|
||||
/* } */
|
||||
|
@ -70,6 +173,7 @@
|
|||
#deck-builder {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#deck-builder>.shadowed.list {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
|
@ -79,10 +183,12 @@
|
|||
transform: translateX(200px);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#deck-builder.shown>.shadowed.list {
|
||||
transform: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#deck-builder>.shadowed.list>.menubutton.large.create {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
|
@ -96,6 +202,7 @@
|
|||
line-height: 50px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
#deck-builder>.shadowed.list>.list-container {
|
||||
width: 100%;
|
||||
left: 0;
|
||||
|
@ -104,33 +211,41 @@
|
|||
overflow-x: visible;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#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.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: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:first-child,
|
||||
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.deckitem {
|
||||
position: relative;
|
||||
width: 170px;
|
||||
|
@ -151,28 +266,35 @@
|
|||
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;
|
||||
}
|
||||
|
||||
.dialog .deckitem {
|
||||
margin-left: 8px;
|
||||
margin-right: 9px;
|
||||
}
|
||||
|
||||
.deckitem.random {
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.deckitem.random>span {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.deckitem:last-child {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.deckitem>span {
|
||||
margin-left: 46px;
|
||||
}
|
||||
|
||||
.deckitem>.menubutton.round {
|
||||
position: absolute;
|
||||
left: -1px;
|
||||
|
@ -180,6 +302,7 @@
|
|||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
#deck-builder>.shadowed.career {
|
||||
width: 240px;
|
||||
height: 240px;
|
||||
|
@ -191,10 +314,12 @@
|
|||
transition-duration: 0.3s;
|
||||
z-index: 8;
|
||||
}
|
||||
|
||||
#deck-builder>.shadowed.career.shown {
|
||||
transform: scale(1) translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#deck-builder>.shadowed.career>div {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
|
@ -203,16 +328,19 @@
|
|||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#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>.dialog.fixed {
|
||||
left: auto;
|
||||
right: 240px;
|
||||
|
@ -225,16 +353,19 @@
|
|||
/*-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>.dialog.fixed.shown {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#deck-builder>.controls {
|
||||
opacity: 0;
|
||||
height: 50px;
|
||||
|
@ -245,12 +376,14 @@
|
|||
z-index: 9;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#deck-builder>.controls>div {
|
||||
position: relative;
|
||||
margin-top: 5px;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#deck-builder>.controls>.card-count {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
|
@ -262,15 +395,19 @@
|
|||
line-height: 50px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
#arena>.player.stone_deck {
|
||||
transform: scale(1) translateX(100px);
|
||||
opacity: 0;
|
||||
|
@ -278,13 +415,16 @@
|
|||
left: calc(5% + 50px);
|
||||
top: calc(50% - 90px);
|
||||
}
|
||||
|
||||
#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>div:not(.avatar):not(.avatar2) {
|
||||
display: none !important;
|
||||
}
|
||||
|
@ -294,54 +434,80 @@
|
|||
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}
|
||||
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}
|
||||
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;
|
||||
}
|
||||
|
||||
div[data-career='druid'] {
|
||||
background-image: url('../../image/mode/stone/career/druid.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
div[data-career='hunter'] {
|
||||
background-image: url('../../image/mode/stone/career/hunter.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
div[data-career='shaman'] {
|
||||
background-image: url('../../image/mode/stone/career/shaman.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
div[data-career='paladin'] {
|
||||
background-image: url('../../image/mode/stone/career/paladin.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
div[data-career='rogue'] {
|
||||
background-image: url('../../image/mode/stone/career/rogue.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
div[data-career='priest'] {
|
||||
background-image: url('../../image/mode/stone/career/priest.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
div[data-career='warrior'] {
|
||||
background-image: url('../../image/mode/stone/career/warrior.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;
|
||||
|
|
Loading…
Reference in New Issue