mirror of https://github.com/Alia5/GlosSI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
643 B
TypeScript
23 lines
643 B
TypeScript
|
|
import type { SteamConfig } from "../../common/util/types";
|
|
import { initTweak } from "../../common/tweakApi";
|
|
|
|
// variables here are scoped to the tweak
|
|
// and are not accessible from other tweaks or even the main script
|
|
// there is no risk of conflicts
|
|
|
|
|
|
const originalFpsCorner = Number(
|
|
((await GlosSI.getSettings()).system as SteamConfig)
|
|
.InGameOverlayShowFPSCorner
|
|
) as 0 | 1 | 2 | 3 | 4;
|
|
|
|
initTweak('HideFPSCounter', {
|
|
install: () => {
|
|
SteamClient.Settings.SetInGameOverlayShowFPSCorner(0);
|
|
},
|
|
uninstall: () => {
|
|
SteamClient.Settings.SetInGameOverlayShowFPSCorner(originalFpsCorner);
|
|
}
|
|
});
|