deploy: 8672f00ac1
parent
de92366e0c
commit
b40b06f683
10
fx_core.js
10
fx_core.js
|
@ -1,5 +1,5 @@
|
||||||
const dictionary = {"gIsTeamGame":"hX","game":"b","playerId":"ed","playerData":"a8","playerNames":"jx","rawPlayerNames":"xb","playerBalances":"ee","playerTerritories":"f8","gLobbyMaxJoin":"qD","gMaxPlayers":"em","gIsSingleplayer":"iy","gameState":"sK","fontSize":"fontSize","x":"fR","y":"fS","canvas":"gW","gHumans":"h9","playerStates":"hB","Translations":"aZ","txt":"nr","strs":"a1d","uiSizes":"b4","gap":"gap","i":"eM"};
|
const dictionary = {"gIsTeamGame":"hX","game":"b","playerId":"ed","playerData":"a8","playerNames":"jx","rawPlayerNames":"xb","playerBalances":"ee","playerTerritories":"f8","gLobbyMaxJoin":"qD","gMaxPlayers":"em","gIsSingleplayer":"iy","gameState":"sK","fontSize":"fontSize","x":"fR","y":"fS","canvas":"gW","gHumans":"h9","playerStates":"hB","Translations":"aZ","txt":"nr","strs":"a1d","uiSizes":"b4","gap":"gap","i":"eM"};
|
||||||
const fx_version = '0.6.4.4'; // FX Client Version
|
const fx_version = '0.6.4.5'; // FX Client Version
|
||||||
const fx_update = 'Jun 3'; // FX Client Last Updated
|
const fx_update = 'Jun 3'; // 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) {
|
||||||
|
@ -350,8 +350,8 @@ const playerList = new (function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const leaderboardFilter = new (function() {
|
const leaderboardFilter = new (function() {
|
||||||
this.playersToInclude = [0,1,8,20,24,30,32,42,50,69,200,400,500,510,511]; // for testing
|
//this.playersToInclude = [0,1,8,20,24,30,32,42,50,69,200,400,500,510,511]; // for testing
|
||||||
//this.playersToInclude = [];
|
this.playersToInclude = [];
|
||||||
this.tabLabels = ["ALL", "CLAN"];
|
this.tabLabels = ["ALL", "CLAN"];
|
||||||
// these get populated by the modified game code
|
// these get populated by the modified game code
|
||||||
this.filteredLeaderboard = [];
|
this.filteredLeaderboard = [];
|
||||||
|
@ -365,8 +365,8 @@ const leaderboardFilter = new (function() {
|
||||||
|
|
||||||
this.selectedTab = 0;
|
this.selectedTab = 0;
|
||||||
this.tabHovering = -1;
|
this.tabHovering = -1;
|
||||||
//this.enabled = false;
|
this.enabled = false;
|
||||||
this.enabled = true;
|
//this.enabled = true;
|
||||||
this.drawTabs = function(canvas, totalWidth, verticalOffset, colorForSelectedTab) {
|
this.drawTabs = function(canvas, totalWidth, verticalOffset, colorForSelectedTab) {
|
||||||
canvas.textBaseline = "middle";
|
canvas.textBaseline = "middle";
|
||||||
canvas.textAlign = "center";
|
canvas.textAlign = "center";
|
||||||
|
|
25
game.js
25
game.js
|
@ -3236,6 +3236,16 @@ function bi() {
|
||||||
function bj() {
|
function bj() {
|
||||||
var a0m, a0n, a0o, a0p, a0q, a0r, a0s, a0t, a0u, a0v, a0w, a0x, a0y, a0z, a10, a11, a12, a13, a14, a15, a16, a17, position, a18, a19, a1A, a1B, a1C = 1,
|
var a0m, a0n, a0o, a0p, a0q, a0r, a0s, a0t, a0u, a0v, a0w, a0x, a0y, a0z, a10, a11, a12, a13, a14, a15, a16, a17, position, a18, a19, a1A, a1B, a1C = 1,
|
||||||
a1D = 1;
|
a1D = 1;
|
||||||
|
var leaderboardHasChanged = true;
|
||||||
|
this.playerPos = b.ed;
|
||||||
|
|
||||||
|
function updateFilteredLb() {
|
||||||
|
if (!leaderboardHasChanged) return;
|
||||||
|
leaderboardFilter.filteredLeaderboard = leaderboardFilter.playersToInclude
|
||||||
|
.map(id => a0l[id]).sort((a, b) => a - b);
|
||||||
|
leaderboardHasChanged = false;
|
||||||
|
this.playerPos = leaderboardFilter.filteredLeaderboard.indexOf(a0l[b.ed]);
|
||||||
|
}
|
||||||
|
|
||||||
function a1F() {
|
function a1F() {
|
||||||
a0s.clearRect(0, 0, a0m, yt),
|
a0s.clearRect(0, 0, a0m, yt),
|
||||||
|
@ -3243,15 +3253,11 @@ function bj() {
|
||||||
a0s.fillRect(0, 0, a0m, a0x),
|
a0s.fillRect(0, 0, a0m, a0x),
|
||||||
a0s.fillStyle = ad.kk,
|
a0s.fillStyle = ad.kk,
|
||||||
a0s.fillRect(0, a0x, a0m, yt - a0x);
|
a0s.fillRect(0, a0x, a0m, yt - a0x);
|
||||||
if (leaderboardFilter.enabled) {
|
if (leaderboardFilter.enabled) updateFilteredLb();
|
||||||
leaderboardFilter.filteredLeaderboard = leaderboardFilter.playersToInclude
|
|
||||||
.map(id => a0l[id]).sort((a, b) => a - b);
|
|
||||||
}
|
|
||||||
var playerPos = (leaderboardFilter.enabled ?
|
var playerPos = (leaderboardFilter.enabled ?
|
||||||
leaderboardFilter.filteredLeaderboard.indexOf(a0l[b.ed]) :
|
this.playerPos :
|
||||||
a0l[b.ed]
|
a0l[b.ed]
|
||||||
);
|
);
|
||||||
this.playerPos = playerPos;
|
|
||||||
if (leaderboardFilter.hoveringOverTabs) a17 = -1;
|
if (leaderboardFilter.hoveringOverTabs) a17 = -1;
|
||||||
if (leaderboardFilter.enabled && a17 >= leaderboardFilter.filteredLeaderboard.length) a17 = -1;
|
if (leaderboardFilter.enabled && a17 >= leaderboardFilter.filteredLeaderboard.length) a17 = -1;
|
||||||
playerPos >= position && a1G(playerPos - position, ad.l7),
|
playerPos >= position && a1G(playerPos - position, ad.l7),
|
||||||
|
@ -3364,7 +3370,8 @@ function bj() {
|
||||||
(eq != a0q - 2 || a14[a0q] === a0l[b.ed] && a15[a0q] === a8.f8[b.ed]) && (a16 = dh)
|
(eq != a0q - 2 || a14[a0q] === a0l[b.ed] && a15[a0q] === a8.f8[b.ed]) && (a16 = dh)
|
||||||
}();
|
}();
|
||||||
for (var eM = a0q - 1; 0 <= eM; eM--) a14[eM] = jR[eM], a15[eM] = a8.f8[jR[eM]];
|
for (var eM = a0q - 1; 0 <= eM; eM--) a14[eM] = jR[eM], a15[eM] = a8.f8[jR[eM]];
|
||||||
a14[a0q] = a0l[b.ed], a15[a0q] = a8.f8[b.ed]
|
a14[a0q] = a0l[b.ed], a15[a0q] = a8.f8[b.ed];
|
||||||
|
leaderboardHasChanged = true;
|
||||||
}, leaderboardFilter.scrollToTop = function() {
|
}, leaderboardFilter.scrollToTop = function() {
|
||||||
position = 0;
|
position = 0;
|
||||||
}, this.fa = function(fR, fS) {
|
}, this.fa = function(fR, fS) {
|
||||||
|
@ -3391,8 +3398,8 @@ function bj() {
|
||||||
a19 = !1;
|
a19 = !1;
|
||||||
var a1X = a1Y(fS);
|
var a1X = a1Y(fS);
|
||||||
var isEmptySpace = false;
|
var isEmptySpace = false;
|
||||||
return ak.uK() && -1 !== a17 && (a17 = -1, a1F(), b7.d9 = !0), b7.dg - a18 < 350 && a1B === a1X && -1 !== (a1X = (a1X = zY(-1, a1X, a0q)) !== a0q && rT(fR, fS) ? a1X : -1) && (fR = (leaderboardFilter.enabled ? jR[leaderboardFilter
|
return ak.uK() && -1 !== a17 && (a17 = -1, a1F(), b7.d9 = !0), b7.dg - a18 < 350 && a1B === a1X && -1 !== (a1X = (a1X = zY(-1, a1X, a0q)) !== a0q && rT(fR, fS) ? a1X : -1) && (fR = (leaderboardFilter.enabled ? (updateFilteredLb(), jR[
|
||||||
.filteredLeaderboard[a1X + position] ?? (isEmptySpace = true, a0l[b.ed])] : jR[a1X + position]), a1X === a0q - 1 && (leaderboardFilter.enabled ? this.playerPos : a0l[b.ed]) >=
|
leaderboardFilter.filteredLeaderboard[a1X + position] ?? (isEmptySpace = true, a0l[b.ed])]) : jR[a1X + position]), a1X === a0q - 1 && (leaderboardFilter.enabled ? this.playerPos : a0l[b.ed]) >=
|
||||||
position + a0q - 1 && (fR = b.ed), !isEmptySpace && b.hX && donationsTracker.displayHistory(fR, a8.xb, b.iy), 0 !== a8.hA[fR] && !isEmptySpace) && g.kI(fR, 800, !1, 0), !0
|
position + a0q - 1 && (fR = b.ed), !isEmptySpace && b.hX && donationsTracker.displayHistory(fR, a8.xb, b.iy), 0 !== a8.hA[fR] && !isEmptySpace) && g.kI(fR, 800, !1, 0), !0
|
||||||
}, this.ti = function(fR, fS, deltaY) {
|
}, this.ti = function(fR, fS, deltaY) {
|
||||||
var a1Z;
|
var a1Z;
|
||||||
|
|
|
@ -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?1717430790481">
|
<link rel="stylesheet" href="main.css?1717435018305">
|
||||||
<!-- Game CSS -->
|
<!-- Game CSS -->
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
|
@ -122,8 +122,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>
|
</div>
|
||||||
<script src="variables.js?1717430790481"></script>
|
<script src="variables.js?1717435018305"></script>
|
||||||
<script src="fx_core.js?1717430790481"></script>
|
<script src="fx_core.js?1717435018305"></script>
|
||||||
<script src="game.js?1717430790481"></script>
|
<script src="game.js?1717435018305"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue