Compare commits
No commits in common. "b9231a52a4a73fa9db836ed6e3355592e8f55d74" and "2efe9c5cee0cf451525e312401f4f7ac23fbf6b0" have entirely different histories.
b9231a52a4
...
2efe9c5cee
26
fx_core.js
26
fx_core.js
|
@ -1,6 +1,6 @@
|
||||||
const dictionary = {"gIsTeamGame":"dT","game":"ay","playerId":"az","playerData":"bV","playerNames":"mU","rawPlayerNames":"mV","playerBalances":"bY","playerTerritories":"bX","gameState":"di","fontSize":"fontSize","x":"k","y":"l","canvas":"k7","gHumans":"dc","playerStates":"ly","fontGeneratorFunction":"aL.ab.bz","gIsSingleplayer":"bB","gLobbyMaxJoin":"dg","SingleplayerMenu":"eA","getSingleplayerPlayerCount":"eB","gMaxPlayers":"cU","gBots":"de","Translations":"aP","txt":"aQ","strs":"fP","uiSizes":"af","gap":"gap","i":"j"};
|
const dictionary = {"gIsTeamGame":"fC","game":"ao","playerId":"bW","playerData":"bU","playerNames":"l6","rawPlayerNames":"l7","playerBalances":"f8","playerTerritories":"bp","gameState":"aq","fontSize":"fontSize","x":"eB","y":"eC","canvas":"dF","gHumans":"cW","playerStates":"ev","fontGeneratorFunction":"n.o.dc","gIsSingleplayer":"ap","gLobbyMaxJoin":"ok","SingleplayerMenu":"jO","getSingleplayerPlayerCount":"ov","gMaxPlayers":"l4","gBots":"md","Translations":"aS","txt":"aZ","strs":"mT","uiSizes":"dY","gap":"gap","i":"l"};
|
||||||
const fx_version = '0.6.5.3'; // FX Client Version
|
const fx_version = '0.6.5.2'; // FX Client Version
|
||||||
const fx_update = 'Aug 3'; // FX Client Last Updated
|
const fx_update = 'Jul 21'; // FX Client Last Updated
|
||||||
|
|
||||||
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
|
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
|
||||||
var wins_counter = 0;
|
var wins_counter = 0;
|
||||||
|
@ -499,29 +499,15 @@ const hoveringTooltip = new (function() {
|
||||||
let recentlyShown = false;
|
let recentlyShown = false;
|
||||||
this.display = () => {}; // this gets populated by the modified game script
|
this.display = () => {}; // this gets populated by the modified game script
|
||||||
this.canvasPixelScale = 1;
|
this.canvasPixelScale = 1;
|
||||||
function handler(e) {
|
document.getElementById("canvasA").addEventListener("mousemove", e => {
|
||||||
if (!settings.hoveringTooltip || !getVar("gameState") || recentlyShown) return;
|
if (!settings.hoveringTooltip || !getVar("gameState") || recentlyShown) return;
|
||||||
let x, y;
|
|
||||||
// https://stackoverflow.com/a/61732450
|
|
||||||
if (e.type.includes(`touch`)) {
|
|
||||||
const { touches, changedTouches } = e.originalEvent ?? e;
|
|
||||||
const touch = touches[0] ?? changedTouches[0];
|
|
||||||
x = touch.pageX;
|
|
||||||
y = touch.pageY;
|
|
||||||
} else if (e.type.includes(`mouse`)) {
|
|
||||||
x = e.clientX;
|
|
||||||
y = e.clientY;
|
|
||||||
}
|
|
||||||
|
|
||||||
recentlyShown = true;
|
recentlyShown = true;
|
||||||
try {
|
try {
|
||||||
this.display(this.canvasPixelScale * x, this.canvasPixelScale * y);
|
this.display(this.canvasPixelScale * e.clientX, this.canvasPixelScale * e.clientY);
|
||||||
} catch (e) { console.error(e) }
|
} catch (e) { console.error(e) }
|
||||||
// for better performance, reduce the tooltip display frequency to no more than once every 100 ms
|
// for better performance, reduce the tooltip display frequency to no more than once every 100 ms
|
||||||
setTimeout(() => recentlyShown = false, 100);
|
setTimeout(() => recentlyShown = false, 100);
|
||||||
}
|
});
|
||||||
document.getElementById("canvasA").addEventListener("mousemove", handler.bind(this));
|
|
||||||
document.getElementById("canvasA").addEventListener("touchstart", handler.bind(this));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var donationsTracker = new (function(){
|
var donationsTracker = new (function(){
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<meta itemprop="image" content="https://fxclient.github.io/FXclient/assets/logo.png">
|
<meta itemprop="image" content="https://fxclient.github.io/FXclient/assets/logo.png">
|
||||||
|
|
||||||
<!-- FX Client CSS -->
|
<!-- FX Client CSS -->
|
||||||
<link rel="stylesheet" href="main.css?1722754327812">
|
<link rel="stylesheet" href="main.css?1722500061260">
|
||||||
<!-- Game CSS -->
|
<!-- Game CSS -->
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
|
@ -79,8 +79,8 @@
|
||||||
<p id="donationhistory_note">Note: donations from bots are not shown here</p>
|
<p id="donationhistory_note">Note: donations from bots are not shown here</p>
|
||||||
<table><tbody id="donationhistory_content"></tbody></table>
|
<table><tbody id="donationhistory_content"></tbody></table>
|
||||||
</div></span>
|
</div></span>
|
||||||
<script src="variables.js?1722754327812"></script>
|
<script src="variables.js?1722500061260"></script>
|
||||||
<script src="fx_core.js?1722754327812"></script>
|
<script src="fx_core.js?1722500061260"></script>
|
||||||
<script src="game.js?1722754327812"></script>
|
<script src="game.js?1722500061260"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue