You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆕 Card Background
This commit is contained in:
@@ -19,6 +19,7 @@ export class UserProfileParser implements IMessageParser
|
||||
private _backgroundId: number;
|
||||
private _standId: number;
|
||||
private _overlayId: number;
|
||||
private _cardBackgroundId: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
@@ -38,6 +39,7 @@ export class UserProfileParser implements IMessageParser
|
||||
this._backgroundId = 0;
|
||||
this._standId = 0;
|
||||
this._overlayId = 0;
|
||||
this._cardBackgroundId = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -71,6 +73,8 @@ export class UserProfileParser implements IMessageParser
|
||||
this._backgroundId = wrapper.readInt();
|
||||
this._standId = wrapper.readInt();
|
||||
this._overlayId = wrapper.readInt();
|
||||
|
||||
if(wrapper.bytesAvailable >= 4) this._cardBackgroundId = wrapper.readInt();
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -155,4 +159,9 @@ export class UserProfileParser implements IMessageParser
|
||||
{
|
||||
return this._overlayId;
|
||||
}
|
||||
|
||||
public get cardBackgroundId(): number
|
||||
{
|
||||
return this._cardBackgroundId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user