Update v0.6.4.4; Fixed the leaderboard filter and donation history not being reset properly,
fixed the leaderboard tab buttons being unclickable on mobile unless you moved over themdev
parent
cc7876639c
commit
1014c1df67
2
build.js
2
build.js
|
@ -203,7 +203,7 @@ replaceOne(/,(0!==\w+\.\w+\[(\w+)\])(\)&&\w+\.\w+\(\2,800,!1,0\),)/g,
|
||||||
`, ${dict.game}.${dict.gIsTeamGame} && donationsTracker.displayHistory($2, ${rawPlayerNames}, ${gIsSingleplayer}), $1 && !isEmptySpace $3`);
|
`, ${dict.game}.${dict.gIsTeamGame} && donationsTracker.displayHistory($2, ${rawPlayerNames}, ${gIsSingleplayer}), $1 && !isEmptySpace $3`);
|
||||||
|
|
||||||
// Reset donation history and leaderboard filter when a new game is started
|
// Reset donation history and leaderboard filter when a new game is started
|
||||||
replaceOne(new RegExp(`,this\\.${dictionary.playerBalances}=new Uint32Array\\(\\w+\\.\\w+\\),`, "g"), "$& donationsTracker.reset(), leaderboardFilter.reset(), ");
|
replaceOne(new RegExp(`,this\\.${dictionary.playerBalances}.fill\\(0\\),`, "g"), "$& donationsTracker.reset(), leaderboardFilter.reset(), ");
|
||||||
|
|
||||||
{ // Player list and leaderboard filter tabs
|
{ // Player list and leaderboard filter tabs
|
||||||
// Draw player list button
|
// Draw player list button
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const fx_version = '0.6.4.3'; // FX Client Version
|
const fx_version = '0.6.4.4'; // FX Client Version
|
||||||
const fx_update = 'Jun 1'; // 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) {
|
||||||
var wins_counter = 0;
|
var wins_counter = 0;
|
||||||
|
@ -405,9 +405,9 @@ const leaderboardFilter = new (function() {
|
||||||
return isHovering;
|
return isHovering;
|
||||||
}
|
}
|
||||||
this.handleMouseDown = (xRelative) => {
|
this.handleMouseDown = (xRelative) => {
|
||||||
//console.log("click; x: ", xRelative);
|
const tab = Math.floor(xRelative / (this.windowWidth / this.tabLabels.length));
|
||||||
if (this.tabHovering !== this.selectedTab) {
|
if (this.selectedTab !== tab) {
|
||||||
this.selectedTab = this.tabHovering;
|
this.selectedTab = tab;
|
||||||
if (this.selectedTab === 0) this.clearFilter();
|
if (this.selectedTab === 0) this.clearFilter();
|
||||||
else if (this.selectedTab === 1) this.filterByOwnClan();
|
else if (this.selectedTab === 1) this.filterByOwnClan();
|
||||||
this.repaintLeaderboard();
|
this.repaintLeaderboard();
|
||||||
|
|
Loading…
Reference in New Issue