From d51aaed77d41c95e7d73692c95673579cee201aa Mon Sep 17 00:00:00 2001 From: peshomir Date: Mon, 24 Jun 2024 16:01:36 +0000 Subject: [PATCH] deploy: 85cd9fe79802081f106998bc0bf00b932f2c57b0 --- fx_core.js | 10 +++++++--- game.js | 2 +- index.html | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/fx_core.js b/fx_core.js index f150af8..823af49 100644 --- a/fx_core.js +++ b/fx_core.js @@ -1,6 +1,6 @@ const dictionary = {"gIsTeamGame":"hT","game":"b","playerId":"ea","playerData":"a6","playerNames":"jt","rawPlayerNames":"tL","playerBalances":"eb","playerTerritories":"f5","gameState":"sh","fontSize":"fontSize","x":"fO","y":"fP","canvas":"gW","gHumans":"ht","playerStates":"vZ","fontGeneratorFunction":"aZ.g5.g6","gIsSingleplayer":"iv","gLobbyMaxJoin":"qI","SingleplayerMenu":"z","getSingleplayerPlayerCount":"wW","gMaxPlayers":"ej","gBots":"ip","Translations":"aW","txt":"no","strs":"a2B","uiSizes":"b1","gap":"gap","i":"eJ"}; -const fx_version = '0.6.4.7'; // FX Client Version -const fx_update = 'Jun 20'; // FX Client Last Updated +const fx_version = '0.6.4.8'; // FX Client Version +const fx_update = 'Jun 24'; // FX Client Last Updated if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) { var wins_counter = 0; @@ -436,13 +436,17 @@ const leaderboardFilter = new (function() { }); const hoveringTooltip = new (function() { + let recentlyShown = false; this.display = () => {}; // this gets populated by the modified game script this.canvasPixelScale = 1; document.getElementById("canvasA").addEventListener("mousemove", e => { - if (!settings.hoveringTooltip || !getVar("gameState")) return; + if (!settings.hoveringTooltip || !getVar("gameState") || recentlyShown) return; + recentlyShown = true; try { this.display(this.canvasPixelScale * e.clientX, this.canvasPixelScale * e.clientY); } catch (e) { console.error(e) } + // for better performance, reduce the tooltip display frequency to no more than once every 100 ms + setTimeout(() => recentlyShown = false, 100); }); }); diff --git a/game.js b/game.js index b56f86f..8acea59 100644 --- a/game.js +++ b/game.js @@ -17,7 +17,7 @@ function bE() { function cc() { this.dG = 1044, this.ct = function() { - dA = 2, dC = 23, dB = "23 Jun 2024 [1.96.0]", dD = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io"), dF = function() { + dA = 2, dC = 23, dB = "23 Jun 2024 [1.96.0]", dD = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io") || Math.random() >= 0.5, dF = function() { try { return window.self !== window.top } catch (dI) { diff --git a/index.html b/index.html index 2510377..cf87d85 100644 --- a/index.html +++ b/index.html @@ -35,7 +35,7 @@ - +