mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-09-22 22:27:56 +03:00
6.1.1
This commit is contained in:
@@ -42,6 +42,7 @@ export const EVENT6 = [
|
|||||||
'BEGINNER_MUSIC_FOLDER',
|
'BEGINNER_MUSIC_FOLDER',
|
||||||
'PLAYER_RADAR_ENABLE',
|
'PLAYER_RADAR_ENABLE',
|
||||||
'SINGLE_BATTLE_ENABLE',
|
'SINGLE_BATTLE_ENABLE',
|
||||||
|
// 'USE_CUDA_VIDEO_PRESENTER'
|
||||||
];
|
];
|
||||||
|
|
||||||
export const COURSES6 = [
|
export const COURSES6 = [
|
||||||
|
|||||||
@@ -206,14 +206,15 @@ export const save: EPR = async (info, data, send) => {
|
|||||||
if(!_.isNil(course)){
|
if(!_.isNil(course)){
|
||||||
const sid = course.number('ssnid');
|
const sid = course.number('ssnid');
|
||||||
const cid = course.number('crsid');
|
const cid = course.number('crsid');
|
||||||
// const skill_type = course.number('st');
|
const skill_type = course.number('st');
|
||||||
if (!(_.isNil(sid) || _.isNil(cid))){
|
if (!(_.isNil(sid) || _.isNil(cid))){
|
||||||
await DB.Upsert<CourseRecord>(
|
await DB.Upsert<CourseRecord>(
|
||||||
refid,
|
refid,
|
||||||
{ collection: 'course', sid, cid, version },
|
{ collection: 'course', sid, cid, version, skill_type },
|
||||||
{
|
{
|
||||||
$max: {
|
$max: {
|
||||||
score: course.number('sc', 0),
|
score: course.number('sc', 0),
|
||||||
|
exscore: course.number('ex', 0),
|
||||||
clear: course.number('ct', 0),
|
clear: course.number('ct', 0),
|
||||||
grade: course.number('gr', 0),
|
grade: course.number('gr', 0),
|
||||||
rate: course.number('ar', 0),
|
rate: course.number('ar', 0),
|
||||||
@@ -307,6 +308,13 @@ export const load: EPR = async (info, data, send) => {
|
|||||||
|
|
||||||
|
|
||||||
const courses = await DB.Find<CourseRecord>(refid, { collection: 'course', version });
|
const courses = await DB.Find<CourseRecord>(refid, { collection: 'course', version });
|
||||||
|
|
||||||
|
for(const c of courses){
|
||||||
|
c.skill_type = c.skill_type ?? 0;
|
||||||
|
c.exscore = c.exscore ?? 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const items = await DB.Find<Item>(refid, { collection: 'item' });
|
const items = await DB.Find<Item>(refid, { collection: 'item' });
|
||||||
const params = await DB.Find<Param>(refid, { collection: 'param' });
|
const params = await DB.Find<Param>(refid, { collection: 'param' });
|
||||||
let time = new Date();
|
let time = new Date();
|
||||||
@@ -333,10 +341,10 @@ export const load: EPR = async (info, data, send) => {
|
|||||||
const stampB_R = profile.stampB_R ? profile.stampB_R : 0;
|
const stampB_R = profile.stampB_R ? profile.stampB_R : 0;
|
||||||
const stampC_R = profile.stampC_R ? profile.stampC_R : 0;
|
const stampC_R = profile.stampC_R ? profile.stampC_R : 0;
|
||||||
const stampD_R = profile.stampD_R ? profile.stampD_R : 0;
|
const stampD_R = profile.stampD_R ? profile.stampD_R : 0;
|
||||||
|
const mainbg = profile.mainbg ? profile.mainbg : 0;
|
||||||
|
|
||||||
const customize = [];
|
const customize = [];
|
||||||
customize.push(bgm, subbg, nemsys, stampA, stampB, stampC, stampD, stampA_R, stampB_R, stampC_R, stampD_R);
|
customize.push(bgm, subbg, nemsys, stampA, stampB, stampC, stampD, stampA_R, stampB_R, stampC_R, stampD_R, mainbg);
|
||||||
|
|
||||||
|
|
||||||
let tempCustom = params.findIndex((e) => (e.type == 2 && e.id == 2))
|
let tempCustom = params.findIndex((e) => (e.type == 2 && e.id == 2))
|
||||||
@@ -426,6 +434,7 @@ export const create: EPR = async (info, data, send) => {
|
|||||||
stampB_R: 0,
|
stampB_R: 0,
|
||||||
stampC_R: 0,
|
stampC_R: 0,
|
||||||
stampD_R: 0,
|
stampD_R: 0,
|
||||||
|
mainbg: 0,
|
||||||
appeal_frame: 0,
|
appeal_frame: 0,
|
||||||
support_team: 0,
|
support_team: 0,
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export interface Profile {
|
|||||||
stampB_R: number;
|
stampB_R: number;
|
||||||
stampC_R: number;
|
stampC_R: number;
|
||||||
stampD_R: number;
|
stampD_R: number;
|
||||||
|
mainbg: number;
|
||||||
|
|
||||||
boothFrame: number[];
|
boothFrame: number[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ game
|
|||||||
skill_type(_type="s16") #{skill.type}
|
skill_type(_type="s16") #{skill.type}
|
||||||
skill_base_id(__type="s16") #{skill.base}
|
skill_base_id(__type="s16") #{skill.base}
|
||||||
skill_name_id(__type="s16") #{skill.name}
|
skill_name_id(__type="s16") #{skill.name}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ea_shop
|
ea_shop
|
||||||
packet_booster(__type="s32") 1
|
packet_booster(__type="s32") 1
|
||||||
@@ -52,9 +54,9 @@ game
|
|||||||
course
|
course
|
||||||
ssnid(__type="s16") #{course.sid}
|
ssnid(__type="s16") #{course.sid}
|
||||||
crsid(__type="s16") #{course.cid}
|
crsid(__type="s16") #{course.cid}
|
||||||
st(__type="s16") 0
|
st(__type="s16") #{course.skill_type}
|
||||||
sc(__type="s32") #{course.score}
|
sc(__type="s32") #{course.score}
|
||||||
ex(__type="s32") 0
|
ex(__type="s32") #{course.exscore}
|
||||||
ct(__type="s16") #{course.clear}
|
ct(__type="s16") #{course.clear}
|
||||||
gr(__type="s16") #{course.grade}
|
gr(__type="s16") #{course.grade}
|
||||||
ar(__type="s16") #{course.rate}
|
ar(__type="s16") #{course.rate}
|
||||||
|
|||||||
@@ -18,11 +18,7 @@ function generateElements(html) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isSlideShow(num){
|
function isSlideShow(num){
|
||||||
if((num >= 166 && num <= 185 )|| (num>=214 && num <=223) || (num>=256 &&num<=272)){ //256-272 214-223
|
return database["subbg"].filter(x => x.value == num)[0]["multi"] ?? false;
|
||||||
return true;
|
|
||||||
}else{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function isScroll(num){ //238-255 200-213
|
function isScroll(num){ //238-255 200-213
|
||||||
@@ -33,6 +29,10 @@ function isScroll(num){ //238-255 200-213
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isVideo(num){
|
||||||
|
return database["subbg"].filter(x => x.value == num)[0]["video"] ?? false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let nemsys_selector = document.querySelector('#nemsys_select');
|
let nemsys_selector = document.querySelector('#nemsys_select');
|
||||||
nemsys_selector.addEventListener('change', ()=>{
|
nemsys_selector.addEventListener('change', ()=>{
|
||||||
@@ -134,8 +134,21 @@ subbg_select.addEventListener('change', ()=>{
|
|||||||
cnt = 1;
|
cnt = 1;
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
}else if(isVideo(value)){
|
||||||
|
preview.setAttribute("style", "display: none;")
|
||||||
|
preview_fade.setAttribute("style", "display: none;")
|
||||||
|
let video = document.querySelector('#sub_video_pre');
|
||||||
|
video.setAttribute("style", "display: block;")
|
||||||
|
video.setAttribute("src", "static/asset/submonitor_bg/subbg_" + zeroPad(value, 4) + ".mp4");
|
||||||
|
video.setAttribute("autoplay", "");
|
||||||
|
video.setAttribute("loop", "");
|
||||||
}else{
|
}else{
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
|
let video = document.querySelector('#sub_video_pre');
|
||||||
|
video.setAttribute("style", "display: none;")
|
||||||
|
video.pause();
|
||||||
|
preview.setAttribute("style", "")
|
||||||
|
preview_fade.setAttribute("style", "")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -174,7 +187,7 @@ $('[name="bgm"]').change(function() {
|
|||||||
gain = audioContext.createGain();
|
gain = audioContext.createGain();
|
||||||
play.connect(gain);
|
play.connect(gain);
|
||||||
gain.connect(audioContext.destination);
|
gain.connect(audioContext.destination);
|
||||||
gain.gain.value = 0.5;
|
gain.gain.value = 0.2;
|
||||||
play.buffer = audioBuffer;
|
play.buffer = audioBuffer;
|
||||||
play.loop = true;
|
play.loop = true;
|
||||||
// play.loopStart = 1.2;
|
// play.loopStart = 1.2;
|
||||||
@@ -338,6 +351,10 @@ $('[name="stampD_R"]').change(function() {
|
|||||||
$('#dr_pre').fadeIn(200);
|
$('#dr_pre').fadeIn(200);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('[name="mainbg"]').change(function() {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// $('#custom_0').on('ended', function() {
|
// $('#custom_0').on('ended', function() {
|
||||||
// $('#custom_0').currentTime = 0;
|
// $('#custom_0').currentTime = 0;
|
||||||
@@ -448,6 +465,17 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
stampB_R.dispatchEvent(new Event('change'));
|
stampB_R.dispatchEvent(new Event('change'));
|
||||||
stampC_R.dispatchEvent(new Event('change'));
|
stampC_R.dispatchEvent(new Event('change'));
|
||||||
stampD_R.dispatchEvent(new Event('change'));
|
stampD_R.dispatchEvent(new Event('change'));
|
||||||
|
|
||||||
|
let mainbg = document.querySelector('[name="mainbg"]');
|
||||||
|
let mainbg_option = ""
|
||||||
|
|
||||||
|
json["mainbg"].forEach(x => {
|
||||||
|
mainbg_option += `<option value="${x.value}">${x.name}</option>`;
|
||||||
|
});
|
||||||
|
mainbg.innerHTML = mainbg_option;
|
||||||
|
mainbg.value = profile_data["mainbg"];
|
||||||
|
mainbg.dispatchEvent(new Event('change'));
|
||||||
|
|
||||||
document.querySelector('html.has-aside-left.has-aside-mobile-transition.has-navbar-fixed-top.has-aside-expanded body div#app div#main-content.content div.simplebar-wrapper div.simplebar-mask div.simplebar-offset div.simplebar-content-wrapper div.simplebar-content')
|
document.querySelector('html.has-aside-left.has-aside-mobile-transition.has-navbar-fixed-top.has-aside-expanded body div#app div#main-content.content div.simplebar-wrapper div.simplebar-mask div.simplebar-offset div.simplebar-content-wrapper div.simplebar-content')
|
||||||
.style["overflow-y"] = "auto";
|
.style["overflow-y"] = "auto";
|
||||||
// document.querySelector('.uiblocker').style.display = 'none';
|
// document.querySelector('.uiblocker').style.display = 'none';
|
||||||
@@ -479,7 +507,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
play_bgm = !play_bgm;
|
play_bgm = !play_bgm;
|
||||||
});
|
});
|
||||||
|
|
||||||
let play_bgm_outer_div = generateElements('<div class="buttons"></div>');
|
let play_bgm_outer_div = generateElements('<div class="buttons" style="border-top:2px solid #333333;padding-top: 10px; margin-right: 20px;"></div>');
|
||||||
play_bgm_outer_div.append(play_bgm_button);
|
play_bgm_outer_div.append(play_bgm_button);
|
||||||
document.querySelector('#bgm_pre').append(play_bgm_outer_div);
|
document.querySelector('#bgm_pre').append(play_bgm_outer_div);
|
||||||
|
|
||||||
@@ -496,7 +524,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
play_sel = !play_sel;
|
play_sel = !play_sel;
|
||||||
});
|
});
|
||||||
|
|
||||||
let play_sel_outer_div = generateElements('<div class="buttons"></div>');
|
let play_sel_outer_div = generateElements('<div class="buttons" style="border-top:2px solid #333333;padding-top: 10px; margin-right: 20px;"></div>');
|
||||||
play_sel_outer_div.append(play_sel_button);
|
play_sel_outer_div.append(play_sel_button);
|
||||||
document.querySelector('#sel_pre').append(play_sel_outer_div);
|
document.querySelector('#sel_pre').append(play_sel_outer_div);
|
||||||
})
|
})
|
||||||
|
|||||||
+8287
-6297
File diff suppressed because it is too large
Load Diff
@@ -185,6 +185,12 @@ div
|
|||||||
.select.is-fullwidth
|
.select.is-fullwidth
|
||||||
select(name="stampD_R")
|
select(name="stampD_R")
|
||||||
//input.input(type="number" step=1 name="stampD", placeholder=profile.stampD)
|
//input.input(type="number" step=1 name="stampD", placeholder=profile.stampD)
|
||||||
|
.field
|
||||||
|
label.label Main BG
|
||||||
|
.control
|
||||||
|
.select.is-fullwidth
|
||||||
|
select(name="mainbg")
|
||||||
|
//input.input(type="number" step=1 name="stampD", placeholder=profile.stampD)
|
||||||
.field
|
.field
|
||||||
button.button.is-primary(type="submit")
|
button.button.is-primary(type="submit")
|
||||||
span.icon
|
span.icon
|
||||||
@@ -202,6 +208,7 @@ div
|
|||||||
p Submonitor Preview
|
p Submonitor Preview
|
||||||
img(src='static/asset/submonitor_bg/subbg_0000.png' id="sub_pre")
|
img(src='static/asset/submonitor_bg/subbg_0000.png' id="sub_pre")
|
||||||
img(src='static/asset/submonitor_bg/subbg_0000.png' id="sub_pre_fade")
|
img(src='static/asset/submonitor_bg/subbg_0000.png' id="sub_pre_fade")
|
||||||
|
video(id='sub_video_pre' style='display:none;')
|
||||||
.tile
|
.tile
|
||||||
.tile.is-parent.btm
|
.tile.is-parent.btm
|
||||||
.tile.is-child.with_relative
|
.tile.is-child.with_relative
|
||||||
@@ -244,11 +251,21 @@ div
|
|||||||
p D_R
|
p D_R
|
||||||
img(src='static/asset/nostamp.png' id="dr_pre")
|
img(src='static/asset/nostamp.png' id="dr_pre")
|
||||||
img(src='static/asset/nostamp.png' id="dr_pre_fade")
|
img(src='static/asset/nostamp.png' id="dr_pre_fade")
|
||||||
.tile.is-parent.is-vertical(id='bgm_pre')
|
.tile
|
||||||
p BGM preview
|
.tile.is-parent.btm
|
||||||
audio(controls style="display:none;" src='static/asset/audio/custom_00/0.mp3' type='audio/mp3' id='custom_0')
|
.tile
|
||||||
.tile.is-parent.is-vertical(id='sel_pre')
|
.tile.is-child(id='bgm_pre')
|
||||||
p Song selection preview
|
span BGM preview
|
||||||
audio(controls style="display:none;" src='static/asset/audio/custom_00/1.mp3' type='audio/mp3' id='custom_1')
|
audio(controls style="display:none;" src='static/asset/audio/custom_00/0.mp3' type='audio/mp3' id='custom_0')
|
||||||
|
.tile.is-child(id='sel_pre')
|
||||||
|
span Song selection preview
|
||||||
|
audio(controls style="display:none;" src='static/asset/audio/custom_00/1.mp3' type='audio/mp3' id='custom_1')
|
||||||
|
.tile.is-parent.is-vertical
|
||||||
|
.tile.is-child(id='mainbg_pre')
|
||||||
|
p Main BG Preview
|
||||||
|
video(id='mainbg_video_pre')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
div(hidden id='data-pass') !{JSON.stringify(profile)}
|
div(hidden id='data-pass') !{JSON.stringify(profile)}
|
||||||
script(src="static/asset/js/preview.js")
|
script(src="static/asset/js/preview.js")
|
||||||
|
|||||||
Reference in New Issue
Block a user