You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 Added username to send badge
This commit is contained in:
@@ -4,11 +4,13 @@ export class BadgeReceivedParser implements IMessageParser
|
|||||||
{
|
{
|
||||||
private _badgeId: number;
|
private _badgeId: number;
|
||||||
private _badgeCode: string;
|
private _badgeCode: string;
|
||||||
|
private _senderName: string;
|
||||||
|
|
||||||
public flush(): boolean
|
public flush(): boolean
|
||||||
{
|
{
|
||||||
this._badgeId = 0;
|
this._badgeId = 0;
|
||||||
this._badgeCode = null;
|
this._badgeCode = null;
|
||||||
|
this._senderName = '';
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,6 +21,7 @@ export class BadgeReceivedParser implements IMessageParser
|
|||||||
|
|
||||||
this._badgeId = wrapper.readInt();
|
this._badgeId = wrapper.readInt();
|
||||||
this._badgeCode = wrapper.readString();
|
this._badgeCode = wrapper.readString();
|
||||||
|
this._senderName = wrapper.bytesAvailable ? wrapper.readString() : '';
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -32,4 +35,9 @@ export class BadgeReceivedParser implements IMessageParser
|
|||||||
{
|
{
|
||||||
return this._badgeCode;
|
return this._badgeCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get senderName(): string
|
||||||
|
{
|
||||||
|
return this._senderName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,6 +239,8 @@ export class RoomPreviewer
|
|||||||
|
|
||||||
if(this.isRoomEngineReady)
|
if(this.isRoomEngineReady)
|
||||||
{
|
{
|
||||||
|
if((this._currentPreviewObjectCategory === RoomObjectCategory.FLOOR) && (this._currentPreviewObjectType === classId) && (this._currentPreviewObjectData === (extra || ''))) return RoomPreviewer.PREVIEW_OBJECT_ID;
|
||||||
|
|
||||||
this.reset(false);
|
this.reset(false);
|
||||||
|
|
||||||
this._currentPreviewObjectType = classId;
|
this._currentPreviewObjectType = classId;
|
||||||
|
|||||||
Reference in New Issue
Block a user