diff --git a/App/index.htm b/App/index.htm index 50f45f2..86dfc26 100644 --- a/App/index.htm +++ b/App/index.htm @@ -107,6 +107,11 @@
+
+ + +
+
diff --git a/App/js/graphics.js b/App/js/graphics.js index 4745960..3ada1e5 100644 --- a/App/js/graphics.js +++ b/App/js/graphics.js @@ -1141,6 +1141,12 @@ temp_GRAPHICS = { }, + // Toggle hook after game start + toggleHookAfterGameStart: function(){ + APP.options.hookAfterGameStart = document.getElementById('CHECKBOX_hookAfterGameStart').checked; + localStorage.setItem('hookAfterGameStart', document.getElementById('CHECKBOX_hookAfterGameStart').checked); + }, + // Toggle show game data toggleShowGameData: function(){ diff --git a/App/js/main.js b/App/js/main.js index 90036de..45b137f 100644 --- a/App/js/main.js +++ b/App/js/main.js @@ -191,7 +191,9 @@ const APP = { // Seek game process setTimeout(function(){ - APP.gameHook.seekGame(!0); + if (APP.options.hookAfterGameStart === !0){ + APP.gameHook.seekGame(!0); + } APP.graphics.updateGuiLabel(); if (JSON.parse(localStorage.getItem('showGameData')) === !0){ TMS.css('APP_GAME_DATA', { 'display': 'block' }); diff --git a/App/js/options.js b/App/js/options.js index 9584111..51ef537 100644 --- a/App/js/options.js +++ b/App/js/options.js @@ -19,6 +19,7 @@ temp_OPTIONS = { showGameHints: !1, enableTabletMode: !1, isMenuRightClosed: !1, + hookAfterGameStart: !0, enableBgObjectiveAnimation: !0, bioRandObjectives: { reset: !1, @@ -616,7 +617,7 @@ temp_OPTIONS = { /* Get localStorage settings */ - const lStorageSettingsList = [ + [ 'enableGrid', 'hideTopMenu', 'alwaysOnTop', @@ -624,6 +625,7 @@ temp_OPTIONS = { 'enableCamHint', 'showGameHints', 'enableTabletMode', + 'hookAfterGameStart', 'enableBgObjectiveAnimation' ].forEach(function(cSettings){