mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix wait time stopped showing in game tile (#597)
This commit is contained in:
parent
873f6546a4
commit
15bb18644f
6
dist/better-xcloud.user.js
vendored
6
dist/better-xcloud.user.js
vendored
@ -4615,8 +4615,8 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
||||
let commaIndex = str.indexOf(",", index - 10);
|
||||
return str = str.substring(0, commaIndex) + ",true" + str.substring(index), str;
|
||||
},
|
||||
patchSetCurrentlyFocusedInteractable(str) {
|
||||
let index = str.indexOf(".setCurrentlyFocusedInteractable=(");
|
||||
patchSetCurrentFocus(str) {
|
||||
let index = str.indexOf(".setCurrentFocus=(");
|
||||
if (index < 0) return !1;
|
||||
return index = str.indexOf("{", index) + 1, str = PatcherUtils.insertAt(str, index, "e && BxEvent.dispatch(window, BxEvent.NAVIGATION_FOCUS_CHANGED, { element: e });"), str;
|
||||
},
|
||||
@ -4704,7 +4704,7 @@ ${subsVar} = subs;
|
||||
"enableTvRoutes",
|
||||
"supportLocalCoOp",
|
||||
"overrideStorageGetSettings",
|
||||
getPref("ui.gameCard.waitTime.show") && "patchSetCurrentlyFocusedInteractable",
|
||||
getPref("ui.gameCard.waitTime.show") && "patchSetCurrentFocus",
|
||||
getPref("ui.layout") !== "default" && "websiteLayout",
|
||||
getPref("game.fortnite.forceConsole") && "forceFortniteConsole",
|
||||
...STATES.userAgent.capabilities.touch ? [
|
||||
|
@ -835,9 +835,9 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
||||
return str;
|
||||
},
|
||||
|
||||
// 24225.js#4127, 24.17.11
|
||||
patchSetCurrentlyFocusedInteractable(str: string) {
|
||||
let index = str.indexOf('.setCurrentlyFocusedInteractable=(');
|
||||
// 49851.js#4083, 27.0.4
|
||||
patchSetCurrentFocus(str: string) {
|
||||
let index = str.indexOf('.setCurrentFocus=(');
|
||||
if (index < 0) {
|
||||
return false;
|
||||
}
|
||||
@ -1017,7 +1017,7 @@ let PATCH_ORDERS = PatcherUtils.filterPatches([
|
||||
|
||||
'supportLocalCoOp',
|
||||
'overrideStorageGetSettings',
|
||||
getPref(PrefKey.UI_GAME_CARD_SHOW_WAIT_TIME) && 'patchSetCurrentlyFocusedInteractable',
|
||||
getPref(PrefKey.UI_GAME_CARD_SHOW_WAIT_TIME) && 'patchSetCurrentFocus',
|
||||
|
||||
getPref<UiLayout>(PrefKey.UI_LAYOUT) !== UiLayout.DEFAULT && 'websiteLayout',
|
||||
getPref(PrefKey.GAME_FORTNITE_FORCE_CONSOLE) && 'forceFortniteConsole',
|
||||
|
Loading…
x
Reference in New Issue
Block a user