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
🆕 Infostand Borders
This commit is contained in:
+2
-2
@@ -4,9 +4,9 @@ export class RoomUnitBackgroundComposer implements IMessageComposer<ConstructorP
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomUnitBackgroundComposer>;
|
||||
|
||||
constructor(backgroundImage: number, backgroundStand: number, backgroundOverlay: number, backgroundCard: number = 0)
|
||||
constructor(backgroundImage: number, backgroundStand: number, backgroundOverlay: number, backgroundCard: number = 0, backgroundBorder: number = 0)
|
||||
{
|
||||
this._data = [ backgroundImage, backgroundStand, backgroundOverlay, backgroundCard ];
|
||||
this._data = [ backgroundImage, backgroundStand, backgroundOverlay, backgroundCard, backgroundBorder ];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
||||
@@ -11,6 +11,7 @@ export class RoomUnitInfoParser implements IMessageParser
|
||||
private _standId: number;
|
||||
private _overlayId: number;
|
||||
private _cardBackgroundId: number;
|
||||
private _borderId: number;
|
||||
private _nickIcon: string;
|
||||
private _prefixText: string;
|
||||
private _prefixColor: string;
|
||||
@@ -30,6 +31,7 @@ export class RoomUnitInfoParser implements IMessageParser
|
||||
this._standId = 0;
|
||||
this._overlayId = 0;
|
||||
this._cardBackgroundId = 0;
|
||||
this._borderId = 0;
|
||||
this._nickIcon = '';
|
||||
this._prefixText = '';
|
||||
this._prefixColor = '';
|
||||
@@ -61,6 +63,7 @@ export class RoomUnitInfoParser implements IMessageParser
|
||||
this._prefixEffect = (wrapper.bytesAvailable ? wrapper.readString() : '');
|
||||
this._prefixFont = (wrapper.bytesAvailable ? wrapper.readString() : '');
|
||||
this._displayOrder = (wrapper.bytesAvailable ? wrapper.readString() : 'icon-prefix-name');
|
||||
this._borderId = (wrapper.bytesAvailable ? wrapper.readInt() : 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -110,6 +113,11 @@ export class RoomUnitInfoParser implements IMessageParser
|
||||
return this._cardBackgroundId;
|
||||
}
|
||||
|
||||
public get borderId(): number
|
||||
{
|
||||
return this._borderId;
|
||||
}
|
||||
|
||||
public get nickIcon(): string
|
||||
{
|
||||
return this._nickIcon;
|
||||
|
||||
@@ -146,6 +146,7 @@ export class RoomUnitParser implements IMessageParser
|
||||
|
||||
user.roomEntryMethod = wrapper.readString();
|
||||
user.roomEntryTeleportId = wrapper.readInt();
|
||||
user.borderId = (wrapper.bytesAvailable ? wrapper.readInt() : 0);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ export class UserMessageData
|
||||
private _isModerator: boolean = false;
|
||||
private _roomEntryMethod: string = 'unknown';
|
||||
private _roomEntryTeleportId: number = 0;
|
||||
private _borderId: number = 0;
|
||||
private _isReadOnly: boolean = false;
|
||||
|
||||
constructor(k: number)
|
||||
@@ -579,4 +580,17 @@ export class UserMessageData
|
||||
this._roomEntryTeleportId = k;
|
||||
}
|
||||
}
|
||||
|
||||
public get borderId(): number
|
||||
{
|
||||
return this._borderId;
|
||||
}
|
||||
|
||||
public set borderId(k: number)
|
||||
{
|
||||
if(!this._isReadOnly)
|
||||
{
|
||||
this._borderId = k;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user