mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-24 05:12:30 +08:00
Create enableSelection function, Make selection available during export
This commit is contained in:
+8
-1
@@ -250,6 +250,7 @@ var Engine = {
|
|||||||
string64 = string64.replace(/\s/g, '');
|
string64 = string64.replace(/\s/g, '');
|
||||||
string64 = string64.replace(/\./g, '');
|
string64 = string64.replace(/\./g, '');
|
||||||
string64 = string64.replace(/\n/g, '');
|
string64 = string64.replace(/\n/g, '');
|
||||||
|
Engine.enableSelection();
|
||||||
Events.startEvent({
|
Events.startEvent({
|
||||||
title: 'Export',
|
title: 'Export',
|
||||||
scenes: {
|
scenes: {
|
||||||
@@ -259,7 +260,8 @@ var Engine = {
|
|||||||
buttons: {
|
buttons: {
|
||||||
'done': {
|
'done': {
|
||||||
text: 'got it',
|
text: 'got it',
|
||||||
nextScene: 'end'
|
nextScene: 'end',
|
||||||
|
onChoose: Engine.disableSelection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -572,6 +574,11 @@ var Engine = {
|
|||||||
document.onselectstart = function() {return false;} // this is for IE
|
document.onselectstart = function() {return false;} // this is for IE
|
||||||
document.onmousedown = function() {return false;} // this is for the rest
|
document.onmousedown = function() {return false;} // this is for the rest
|
||||||
},
|
},
|
||||||
|
|
||||||
|
enableSelection: function() {
|
||||||
|
document.onselectstart = function() {return true;}
|
||||||
|
document.onmousedown = function() {return true;}
|
||||||
|
},
|
||||||
|
|
||||||
handleStateUpdates: function(e){
|
handleStateUpdates: function(e){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user