mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +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(/\./g, '');
|
||||
string64 = string64.replace(/\n/g, '');
|
||||
Engine.enableSelection();
|
||||
Events.startEvent({
|
||||
title: 'Export',
|
||||
scenes: {
|
||||
@@ -259,7 +260,8 @@ var Engine = {
|
||||
buttons: {
|
||||
'done': {
|
||||
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.onmousedown = function() {return false;} // this is for the rest
|
||||
},
|
||||
|
||||
enableSelection: function() {
|
||||
document.onselectstart = function() {return true;}
|
||||
document.onmousedown = function() {return true;}
|
||||
},
|
||||
|
||||
handleStateUpdates: function(e){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user