Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getScreenActiveResolution fix #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions packages/client/game/graphics.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ declare interface GameGraphicsUnk {

declare interface GameGraphicsLegacy {
setScreenDrawPosition(horizontalAlign: number, verticalAlign: number): void;
getScreenActiveResolution(x: number, y: number): GetActiveScreenResolutionResult;
getScreenActiveResolution(): GetActiveScreenResolutionResult;
getScreenAspectRatio(b: boolean): number;
setBlackout(state: boolean): void;
setFarShadowsSuppressed(toggle: boolean): void;
Expand Down Expand Up @@ -1251,7 +1251,7 @@ declare interface GameGraphics extends GameGraphicsLegacy {
stringParam4: string,
stringParam5: string
): void;
beginScaleformHudMovieMethod(hudComponent: number, methodName: string): boolean;
beginScaleformHudMovieMethod(hudComponent: number, methodName: string): boolean;
beginScaleformScriptHudMovieMethod(hudComponent: number, methodName: string): boolean;
beginScaleformMovieMethod(scaleform: number, methodName: string): boolean;
beginScaleformMovieMethodOnFrontend(methodName: string): boolean;
Expand Down Expand Up @@ -1445,7 +1445,7 @@ declare interface GameGraphics extends GameGraphicsLegacy {
* mp.game.graphics.setEntityOverlayPassEnabled(true);
*
* let batch = mp.game.graphics.createEntityOverlayBatch(overlayParams);
*
*
* mp.events.add('render', () => {
* batch.addThisFrame(mp.players.local);
* });
Expand All @@ -1465,20 +1465,20 @@ declare interface GameGraphics extends GameGraphicsLegacy {
*/
setEntityOverlayPassEnabled(enable: boolean): void;

/**
* @param timeout 5000 default
*/
requestStreamedTextureDictAsync(textureDict: string, timeout?: number): Promise<boolean>;
/**
* @param timeout 5000 default
*/
requestStreamedTextureDictAsync(textureDict: string, timeout?: number): Promise<boolean>;

/**
* @param timeout 5000 default
*/
waitForScriptHudScaleformMovieLoadAsync(movieId: number, timeout?: number): Promise<boolean>;
/**
* @param timeout 5000 default
*/
waitForScriptHudScaleformMovieLoadAsync(movieId: number, timeout?: number): Promise<boolean>;

/**
* @param timeout 5000 default
*/
waitForScaleformMovieLoadAsync(movieId: number, timeout?: number): Promise<boolean>;
/**
* @param timeout 5000 default
*/
waitForScaleformMovieLoadAsync(movieId: number, timeout?: number): Promise<boolean>;
}

declare interface GameGraphicsMp extends GameGraphics { }