修改字体、天气
This commit is contained in:
parent
7e3625e637
commit
83d38be844
@ -3000,7 +3000,7 @@ return code;
|
|||||||
*/;
|
*/;
|
||||||
|
|
||||||
setWeather_s
|
setWeather_s
|
||||||
: '更改天气' Weather_List '强度' Int '持续到下个本事件' Bool Newline
|
: '更改天气' Weather_List '强度' Int Newline
|
||||||
|
|
||||||
|
|
||||||
/* setWeather_s
|
/* setWeather_s
|
||||||
@ -3009,8 +3009,8 @@ helpUrl : /_docs/#/instruction
|
|||||||
default : [null,1,true]
|
default : [null,1,true]
|
||||||
colour : this.soundColor
|
colour : this.soundColor
|
||||||
if(Int_0<1 || Int_0>10) throw new Error('天气的强度等级, 在1-10之间');
|
if(Int_0<1 || Int_0>10) throw new Error('天气的强度等级, 在1-10之间');
|
||||||
Bool_0 = Bool_0 ? ', "keep": true' : ''
|
|
||||||
var code = '{"type": "setWeather", "name": "'+Weather_List_0+'", "level": '+Int_0+Bool_0+'},\n';
|
var code = '{"type": "setWeather", "name": "'+Weather_List_0+'", "level": '+Int_0+'},\n';
|
||||||
if(Weather_List_0===''||Weather_List_0==='null'||Weather_List_0==null)code = '{"type": "setWeather"},\n';
|
if(Weather_List_0===''||Weather_List_0==='null'||Weather_List_0==null)code = '{"type": "setWeather"},\n';
|
||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
@ -1494,7 +1494,6 @@ MotaActionParser = function () {
|
|||||||
this.next = MotaActionBlocks["setWeather_s"].xmlText([
|
this.next = MotaActionBlocks["setWeather_s"].xmlText([
|
||||||
data.name,
|
data.name,
|
||||||
data.level || 1,
|
data.level || 1,
|
||||||
data.keep || false,
|
|
||||||
this.next,
|
this.next,
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
|
@ -1452,8 +1452,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"HATTEN",
|
"HATTEN",
|
||||||
"Verdana",
|
"Verdana",
|
||||||
"number",
|
"number",
|
||||||
"pala",
|
"pala"
|
||||||
"simhei"
|
|
||||||
],
|
],
|
||||||
"nameMap": {
|
"nameMap": {
|
||||||
"确定": "confirm.opus",
|
"确定": "confirm.opus",
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -3114,6 +3114,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
"mhp",
|
"mhp",
|
||||||
"speed",
|
"speed",
|
||||||
"money",
|
"money",
|
||||||
|
"exp"
|
||||||
]; //属性列表,图标在函数复写core.statusBar.icons中声明,数字为project\materials\icons.png中的图标序号(可使用便捷ps追加,第一个序号为0)
|
]; //属性列表,图标在函数复写core.statusBar.icons中声明,数字为project\materials\icons.png中的图标序号(可使用便捷ps追加,第一个序号为0)
|
||||||
const drawStatusList = (baseX, baseY) => {
|
const drawStatusList = (baseX, baseY) => {
|
||||||
let curh = baseY;
|
let curh = baseY;
|
||||||
@ -3138,7 +3139,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
curh - 4 * 3,
|
curh - 4 * 3,
|
||||||
TEXT_COLOR,
|
TEXT_COLOR,
|
||||||
"#000000",
|
"#000000",
|
||||||
6
|
3
|
||||||
);
|
);
|
||||||
core.setFont("outerUI", "bold 36px Verdana");
|
core.setFont("outerUI", "bold 36px Verdana");
|
||||||
// 四舍五入
|
// 四舍五入
|
||||||
@ -3161,8 +3162,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
curh,
|
curh,
|
||||||
TEXT_COLOR,
|
TEXT_COLOR,
|
||||||
"#000000",
|
"#000000",
|
||||||
6
|
3
|
||||||
);
|
)
|
||||||
|
|
||||||
curh += 24 * 3;
|
curh += 24 * 3;
|
||||||
if (curh > 130 * 3 && core.domStyle.isVertical) {
|
if (curh > 130 * 3 && core.domStyle.isVertical) {
|
||||||
@ -3183,7 +3184,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
22 * 3,
|
22 * 3,
|
||||||
TEXT_COLOR,
|
TEXT_COLOR,
|
||||||
"#000000",
|
"#000000",
|
||||||
6
|
3
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
drawStatusList(96 * 3, 46 * 3);
|
drawStatusList(96 * 3, 46 * 3);
|
||||||
@ -3200,7 +3201,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
41 * 3,
|
41 * 3,
|
||||||
TEXT_COLOR,
|
TEXT_COLOR,
|
||||||
"#000000",
|
"#000000",
|
||||||
6
|
3
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
drawStatusList(110 * 3, 93 * 3);
|
drawStatusList(110 * 3, 93 * 3);
|
||||||
@ -21112,6 +21113,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
"天气叠加": function () {
|
"天气叠加": function () {
|
||||||
//使用方法:使用core.setWeather(天气,等级)来增加天气,使用core.setWeather()来清空天气
|
//使用方法:使用core.setWeather(天气,等级)来增加天气,使用core.setWeather()来清空天气
|
||||||
// 天气叠加功能
|
// 天气叠加功能
|
||||||
|
|
||||||
////// 更改天气效果 //////
|
////// 更改天气效果 //////
|
||||||
control.prototype.setWeather = function (type, level) {
|
control.prototype.setWeather = function (type, level) {
|
||||||
// 非雨雪
|
// 非雨雪
|
||||||
@ -21182,37 +21184,33 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
break;
|
break;
|
||||||
case "fog":
|
case "fog":
|
||||||
if (core.animateFrame.weather.fog) {
|
if (core.animateFrame.weather.fog) {
|
||||||
core.animateFrame.weather.nodes[type] = [
|
core.animateFrame.weather.nodes[type] = [{
|
||||||
{
|
|
||||||
level: number,
|
level: number,
|
||||||
x: 0,
|
x: 0,
|
||||||
y: -core.__PIXELS__ / 2,
|
y: -core.__PIXELS__ / 2,
|
||||||
dx: -Math.random() * 1.5,
|
dx: -Math.random() * 1.5,
|
||||||
dy: Math.random(),
|
dy: Math.random(),
|
||||||
delta: 0.001,
|
delta: 0.001,
|
||||||
},
|
}, ];
|
||||||
];
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "cloud":
|
case "cloud":
|
||||||
if (core.animateFrame.weather.cloud) {
|
if (core.animateFrame.weather.cloud) {
|
||||||
core.animateFrame.weather.nodes[type] = [
|
core.animateFrame.weather.nodes[type] = [{
|
||||||
{
|
|
||||||
level: number,
|
level: number,
|
||||||
x: 0,
|
x: 0,
|
||||||
y: -core.__PIXELS__ / 2,
|
y: -core.__PIXELS__ / 2,
|
||||||
dx: -Math.random() * 1.5,
|
dx: -Math.random() * 1.5,
|
||||||
dy: Math.random(),
|
dy: Math.random(),
|
||||||
delta: 0.001,
|
delta: 0.001,
|
||||||
},
|
}, ];
|
||||||
];
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "sun":
|
case "sun":
|
||||||
if (core.animateFrame.weather.sun) {
|
if (core.animateFrame.weather.sun) {
|
||||||
// 直接绘制
|
// 直接绘制
|
||||||
core.clearMap("weather" + type);
|
core.clearMap("weather" + type);
|
||||||
core.setAlpha("weather" + type, level / 10);
|
|
||||||
core.drawImage(
|
core.drawImage(
|
||||||
"weather" + type,
|
"weather" + type,
|
||||||
core.animateFrame.weather.sun,
|
core.animateFrame.weather.sun,
|
||||||
@ -21225,7 +21223,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.__PIXELS__,
|
core.__PIXELS__,
|
||||||
core.__PIXELS__
|
core.__PIXELS__
|
||||||
);
|
);
|
||||||
core.setAlpha("weather" + type, 1);
|
core.setAlpha("weather" + type, level / 10);
|
||||||
|
core.animateFrame.weather.nodes.sun = [{ level: level, opacity: level / 10, delta: 0.01 }]
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -21243,6 +21242,18 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
weather.time[one] = timestamp;
|
weather.time[one] = timestamp;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
// 晴
|
||||||
|
control.prototype._animationFrame_weather_sun = function () {
|
||||||
|
|
||||||
|
var node = core.animateFrame.weather.nodes.sun[0]
|
||||||
|
var opacity = node.opacity + node.delta;
|
||||||
|
|
||||||
|
if (opacity > node.level / 11 + 0.3 || opacity < node.level / 11 - 0.3)
|
||||||
|
node.delta = -node.delta;
|
||||||
|
node.opacity = opacity;
|
||||||
|
core.setOpacity("weathersun", core.clamp(opacity, 0, 1));
|
||||||
|
|
||||||
|
};
|
||||||
// 雨
|
// 雨
|
||||||
control.prototype._animationFrame_weather_rain = function () {
|
control.prototype._animationFrame_weather_rain = function () {
|
||||||
var ctx = core.dymCanvas.weatherrain,
|
var ctx = core.dymCanvas.weatherrain,
|
||||||
@ -21359,8 +21370,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.animateFrame.weather.cloud,
|
core.animateFrame.weather.cloud,
|
||||||
"cloud"
|
"cloud"
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
},
|
|
||||||
|
},
|
||||||
"回合战斗动画": function () {
|
"回合战斗动画": function () {
|
||||||
// 在此增加新插件
|
// 在此增加新插件
|
||||||
const animateAttack = document.createElement("canvas"); //画布设置
|
const animateAttack = document.createElement("canvas"); //画布设置
|
||||||
|
Loading…
Reference in New Issue
Block a user