36 Commits

Author SHA1 Message Date
redphx
15a2c67703 Observe root dialog 2024-05-26 11:59:38 +07:00
redphx
9166761780 Rename "Quick Bar" to "Stream Settings dialog" 2024-05-26 11:42:19 +07:00
redphx
a376f443ef Map the Share button on Xbox Series controller with the capturing screenshot feature 2024-05-21 16:51:55 +07:00
redphx
41effff226 Show gyroscope settings if the custom layout supports it 2024-05-12 12:26:34 +07:00
redphx
be897848fe Cache screenshot's canvas context 2024-05-12 11:13:32 +07:00
redphx
1be9bd8ee1 Add option for Game Bar's position 2024-05-12 08:01:49 +07:00
redphx
362c5386d1 Add microphone action for Game Bar 2024-05-11 21:15:22 +07:00
redphx
85eac4be14 Move screenshot functions to a separate file 2024-05-11 12:18:36 +07:00
redphx
40b61b173f Use singleton in GameBar 2024-05-11 11:48:07 +07:00
redphx
6b88f73e34 Add setting to enable/disable Game Bar feature 2024-05-11 10:42:30 +07:00
redphx
8bee5b2073 Init UserAgent before STATES 2024-05-11 09:39:50 +07:00
redphx
9ce906c0b2 Move User-Agent values to a separate localStorage item 2024-05-11 09:08:08 +07:00
redphx
b2e932cc4c
Game bar (#392)
* Fix games with custom touch control sometimes not showing touch icon

* Create game-bar with screenshot button

* Disable Game bar when opening the Guide

* Remove SCREENSHOT_BUTTON_POSITION pref

* Make the touch control action functional

* Show game bar when the game starts

* Fix 720p/High not working (#387)

* Update icons

* Update game bar's animations

* Reset states of Game bar actions before playing

* Don't show Touch control action on non-touch-supported devices

* Clean up

* Update translations

* Update actions' texts

* Clean up
2024-05-10 18:35:40 +07:00
redphx
26bf14eda6 Show custom touch layout's author name in toast message 2024-05-08 17:04:14 +07:00
redphx
c948b63b8d Show touch icon on games with custom layouts 2024-05-07 21:40:12 +07:00
redphx
b9355d5c01 Optimize touch control's canvas, use low-power profile and disable antialiasing 2024-05-07 17:07:15 +07:00
redphx
8fb1787222 Disable telemetry flags in meversion.js 2024-05-05 18:04:20 +07:00
redphx
07a4034cc1 Fix screenshot button now working after switching game 2024-05-03 18:05:59 +07:00
redphx
ea57e04d4f Add PatcherCache class 2024-05-03 07:36:03 +07:00
redphx
06c6b8c5af Simplify import paths again 2024-05-01 22:14:28 +07:00
redphx
0114108bdf Simplify import paths 2024-05-01 22:01:39 +07:00
redphx
edc8991a6a Create BxLogger to show colored logs 2024-04-30 18:52:56 +07:00
redphx
cd6dd1e22d Use a better method to enable touch control for all games 2024-04-29 10:05:22 +07:00
redphx
0ba8df734c Fix problem with the Android app 2024-04-28 17:17:55 +07:00
redphx
18f50e6a20 Move preferences.ts & settings.ts to utils/ 2024-04-27 15:23:49 +07:00
redphx
1753a2d525 Move modules/translations.ts to utils/translations.ts 2024-04-27 10:12:34 +07:00
redphx
293e3c8d73 Move bx-events/exposed/flags files to utils/ 2024-04-25 17:57:34 +07:00
redphx
53676ad733 Fix errors with setTimeout/setInterval 2024-04-25 17:46:02 +07:00
redphx
9a18d1697e Support build different targets 2024-04-25 17:26:47 +07:00
redphx
563a398975 Bug fixes 2024-04-24 18:03:44 +07:00
redphx
06ffcf20f7 Rename States to STATES 2024-04-24 17:09:39 +07:00
redphx
fd0f0799ee Minor fixes 2024-04-24 17:02:06 +07:00
redphx
9d0f4c380b Fix global vars 2024-04-24 16:50:59 +07:00
redphx
9a76731c69 Use globalThis to declare global variables 2024-04-23 18:23:41 +07:00
redphx
be0cbff344 Port the rest of the code 2024-04-23 17:55:52 +07:00
redphx
0febae28da Initial commit 2024-04-20 07:24:16 +07:00