\f alpha & wait mousewheel

This commit is contained in:
oc 2019-06-28 16:52:25 +08:00
parent 4a960790c3
commit f36970a785
3 changed files with 16 additions and 1 deletions

View File

@ -718,6 +718,16 @@ actions.prototype._sys_onmousewheel = function (direct) {
return;
}
// wait事件
if (core.status.lockControl && core.status.event.id == 'action' && core.status.event.data.type == 'wait') {
core.setFlag('type', 0);
var keycode = direct == 1 ? 33 : 34;
core.setFlag('keycode', keycode);
core.status.route.push("input:" + keycode);
core.doAction();
return;
}
}
////// 长按Ctrl键时 //////

View File

@ -1090,8 +1090,11 @@ ui.prototype._drawTextBox_drawImages = function (content) {
core.drawImage('ui', img, parseFloat(ss[1]), parseFloat(ss[2]));
else if (ss.length==5)
core.drawImage('ui', img, 0, 0, img.width, img.height, parseFloat(ss[1]), parseFloat(ss[2]), parseFloat(ss[3]), parseFloat(ss[4]));
else if (ss.length==9)
else if (ss.length==9 || ss.length==10) {
if (ss.length==10) core.setAlpha('ui', parseFloat(ss[9]));
core.drawImage('ui', img, parseFloat(ss[1]), parseFloat(ss[2]), parseFloat(ss[3]), parseFloat(ss[4]), parseFloat(ss[5]), parseFloat(ss[6]), parseFloat(ss[7]), parseFloat(ss[8]));
core.setAlpha('ui', 1);
}
return "";
});
}

View File

@ -915,6 +915,7 @@ utils.prototype.myconfirm = function (hint, yesCallback, noCallback) {
main.dom.inputMessage.innerHTML = hint.replace(/\n/g, '<br/>');
main.dom.inputBox.style.display = 'none';
main.dom.inputYes.focus();
core.status.holdingKeys = [];
core.platform.successCallback = yesCallback;
core.platform.errorCallback = noCallback;
@ -929,6 +930,7 @@ utils.prototype.myprompt = function (hint, value, callback) {
setTimeout(function () {
main.dom.inputBox.focus();
});
core.status.holdingKeys = [];
core.platform.successCallback = core.platform.errorCallback = callback;
}