diff --git a/patches.js b/patches.js index ce4f7bf..e28c5d7 100644 --- a/patches.js +++ b/patches.js @@ -167,20 +167,19 @@ canvas.font=aY.g0.g1(1,fontSize),canvas.fillStyle="rgba("+gR+","+tD+","+hj+",0.6 } { // Name rendering patches - Display density of other players & Hide bot names features - const r = matchRawCode(`bD.dO.data[7].value?a9W(i,jm,jk,jl,ctx):a9V(ctx,i,jm,jk,jl,a9S)))`); - const settingsSwitchNameAndBalance = `${r.bD}.${r.dO}.${r.data}[7].${r.value}`; + const { placeBalanceAbove } = matchRawCode(`,aGH+=Math.floor(.78*fontSize),placeBalanceAbove?aGN(a7,aGJ,aGG,aGH,hT):aGM(hT,a7,aGJ,aGG,aGH,aGI)`); // Balance rendering; Renders density when the "Reverse Name/Balance" setting is off replaceRawCode("function a9V(ctx,i,fontSize,x,y,a9S){i=ac.jv.formatNumber(playerData.playerBalances[i]);a9S>>1&1?(ctx.lineWidth=.05*fontSize,ctx.strokeStyle=a9U(fontSize,a9S%2),ctx.strokeText(i,x,y)):(1>1&1?(ctx.lineWidth=.05*fontSize,ctx.strokeStyle=a9U(fontSize,a9S%2),ctx.strokeText(i,x,y)):(1\w+),(?\w+),(?\w+),(?\w+),(?\w+)\){)(\6\.fillText\((?\w+)\.(?\w+)\[\2\],\4,\5\)),(\2<(?\w+)\.(?\w+)&&2!==\8\.(?\w+)\[[^}]+)}/g, `$1 var ___id = $2; var showName = $ < $.$ || !__fx.settings.hideBotNames; if (showName) $7, $10; - ${settingsSwitchNameAndBalance} && __fx.settings.showPlayerDensity && ( + ${placeBalanceAbove} && __fx.settings.showPlayerDensity && ( __fx.settings.coloredDensity && ($.fillStyle = __fx.utils.textStyleBasedOnDensity(___id)), $.fillText(__fx.utils.getDensity(___id), $, showName ? $ + $ : $) ); }`); diff --git a/src/main.js b/src/main.js index 48a1518..a3601eb 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ -const fx_version = '0.6.6.15'; // FX Client Version -const fx_update = 'Jan 19'; // FX Client Last Updated +const fx_version = '0.6.6.16'; // FX Client Version +const fx_update = 'Feb 1'; // FX Client Last Updated import settingsManager from './settings.js'; import { clanFilter, leaderboardFilter } from "./clanFilters.js";