gh-pages
peshomir 2024-05-20 15:39:13 +00:00
parent 9d6cc45695
commit f66059f80a
3 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,5 @@
const dictionary = {"gIsTeamGame":"hM","playerId":"eU","playerNames":"jm","playerBalances":"eV","playerTerritories":"ez","gHumans":"h1","playerStates":"h3","gLobbyMaxJoin":"px","gIsSingleplayer":"im","gameState":"rS","uiSizes":"b0","gap":"gap"};
const fx_version = '0.6.4'; // FX Client Version
const fx_version = '0.6.4.1'; // FX Client Version
const fx_update = 'May 20'; // FX Client Last Updated
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
@ -434,10 +434,11 @@ const leaderboardFilter = new (function() {
const hoveringTooltip = new (function() {
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;
try {
this.display(e.clientX, e.clientY);
this.display(this.canvasPixelScale * e.clientX, this.canvasPixelScale * e.clientY);
} catch (e) { console.error(e) }
});
});

View File

@ -2010,6 +2010,7 @@ function bU() {
coordY = aj.fW(mouseY),
coord = aj.fY(coordX, coordY),
point = aj.fa(coord);
if (coordX < 0 || coordY < 0) return;
k.vQ(point);
}
this.click = function(g8, g9, tE) {
@ -6993,8 +6994,9 @@ function c4() {
var g5, gA, aEr, qb = aEo(document.documentElement.clientWidth),
xM = aEo(window.visualViewport && 2 !== b7.id ? window.visualViewport.height : document.documentElement.clientHeight);
return g5 = qb, gA = xM, aEr = 0 !== b7.id || g5 < gA ? 700 : 1200, aEr = Math.min(aEr / ((g5 + gA) / 2), 1), aEr = 0 === b9.dG.data[1].value ? 2 * aEr / 3 : Math.min(aEr + (b9.dG.data[1].value - 1) * (1 - aEr) / 2, 1), aK.nH = (window
.devicePixelRatio || 1) * aEr, gf && !aEm ? (aEm = !0, document.body.removeChild(sj)) : aEm && (aEm = !1, document.body.appendChild(sj)), g5 = Math.floor(.5 + qb * aK.nH), gA = Math.floor(.5 + xM * aK.nH), !(g5 === aK.g5 && gA === aK
.gA || ag.tR() && y.tG) && (aK.g5 = g5, aK.gA = gA, aK.min = yR(g5, gA), aK.max = wC(g5, gA), aK.fw = eR(g5 + gA, 2), aK.o6 = g5 / gA, sj.width = g5, sj.height = gA, sj.style.width = qb + "px", sj.style.height = xM + "px", 1)
.devicePixelRatio || 1) * aEr, hoveringTooltip.canvasPixelScale = aK.nH, gf && !aEm ? (aEm = !0, document.body.removeChild(sj)) : aEm && (aEm = !1, document.body.appendChild(sj)), g5 = Math.floor(.5 + qb * aK.nH), gA = Math.floor(.5 +
xM * aK.nH), !(g5 === aK.g5 && gA === aK.gA || ag.tR() && y.tG) && (aK.g5 = g5, aK.gA = gA, aK.min = yR(g5, gA), aK.max = wC(g5, gA), aK.fw = eR(g5 + gA, 2), aK.o6 = g5 / gA, sj.width = g5, sj.height = gA, sj.style.width = qb + "px",
sj.style.height = xM + "px", 1)
}
this.g5 = 0, this.gA = 0, this.min = 0, this.max = 0, this.fw = 0, this.o6 = 1, this.nH = 1, this.cr = function() {
this.g5 = aEo(document.documentElement.clientWidth) + 2, this.gA = aEo(document.documentElement.clientHeight) + 2

View File

@ -34,7 +34,7 @@
<meta itemprop="image" content="https://fxclient.github.io/FXclient/assets/logo.png">
<!-- FX Client CSS -->
<link rel="stylesheet" href="main.css?1716214185632">
<link rel="stylesheet" href="main.css?1716219552198">
<!-- Game CSS -->
<style>
html,
@ -121,8 +121,8 @@
<p id="donationhistory_note">Note: donations from bots are not shown here</p>
<table><tbody id="donationhistory_content"></tbody></table>
</div>
<script src="variables.js?1716214185632"></script>
<script src="fx_core.js?1716214185632"></script>
<script src="game.js?1716214185632"></script>
<script src="variables.js?1716219552198"></script>
<script src="fx_core.js?1716219552198"></script>
<script src="game.js?1716219552198"></script>
</body>
</html>