mirror of
https://github.com/duckietm/Nitro-Cool-UI-Renderer.git
synced 2025-06-21 15:06:58 +00:00
🆙 Add backgrounds to renderer
This commit is contained in:
parent
7c40e69c75
commit
476f71a482
File diff suppressed because one or more lines are too long
@ -256,6 +256,7 @@ export class OutgoingHeader
|
|||||||
public static GET_SOUND_SETTINGS = 2388;
|
public static GET_SOUND_SETTINGS = 2388;
|
||||||
public static USER_SETTINGS_CAMERA = 1461;
|
public static USER_SETTINGS_CAMERA = 1461;
|
||||||
public static USER_SETTINGS_CHAT_STYLE = 1030;
|
public static USER_SETTINGS_CHAT_STYLE = 1030;
|
||||||
|
public static USER_SETTINGS_INFOSTAND_BACKGROUND = 1031;
|
||||||
public static USER_SETTINGS_INVITES = 1086;
|
public static USER_SETTINGS_INVITES = 1086;
|
||||||
public static USER_SETTINGS_OLD_CHAT = 1262;
|
public static USER_SETTINGS_OLD_CHAT = 1262;
|
||||||
public static USER_SETTINGS_VOLUME = 1367;
|
public static USER_SETTINGS_VOLUME = 1367;
|
||||||
|
@ -34,6 +34,9 @@ export class RoomUnitInfoParser implements IMessageParser
|
|||||||
this._gender = wrapper.readString().toLocaleUpperCase();
|
this._gender = wrapper.readString().toLocaleUpperCase();
|
||||||
this._motto = wrapper.readString();
|
this._motto = wrapper.readString();
|
||||||
this._achievementScore = wrapper.readInt();
|
this._achievementScore = wrapper.readInt();
|
||||||
|
this._backgroundId = wrapper.readInt();
|
||||||
|
this._standId = wrapper.readInt();
|
||||||
|
this._overlayId = wrapper.readInt();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ export class UserMessageData
|
|||||||
private _activityPoints: number = 0;
|
private _activityPoints: number = 0;
|
||||||
private _background: number = 0;
|
private _background: number = 0;
|
||||||
private _stand: number = 0;
|
private _stand: number = 0;
|
||||||
private _overlay: number = 0
|
private _overlay: number = 0;
|
||||||
private _webID: number = 0;
|
private _webID: number = 0;
|
||||||
private _groupID: number = 0;
|
private _groupID: number = 0;
|
||||||
private _groupStatus: number = 0;
|
private _groupStatus: number = 0;
|
||||||
|
@ -1,49 +1,70 @@
|
|||||||
import { IRoomSession } from '@nitrots/api';
|
import { IRoomSession } from '@nitrots/api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionUserFigureUpdateEvent extends RoomSessionEvent
|
export class RoomSessionUserFigureUpdateEvent extends RoomSessionEvent {
|
||||||
{
|
public static USER_FIGURE: string = 'RSUBE_FIGURE';
|
||||||
public static USER_FIGURE: string = 'RSUBE_FIGURE';
|
|
||||||
|
|
||||||
private _roomIndex: number = 0;
|
private _roomIndex: number = 0;
|
||||||
private _figure: string = '';
|
private _figure: string = '';
|
||||||
private _gender: string = '';
|
private _gender: string = '';
|
||||||
private _customInfo: string = '';
|
private _customInfo: string = '';
|
||||||
private _achievementScore: number;
|
private _achievementScore: number;
|
||||||
|
private _backgroundId: number | null;
|
||||||
|
private _standId: number | null;
|
||||||
|
private _overlayId: number | null;
|
||||||
|
|
||||||
constructor(session: IRoomSession, roomIndex: number, figure: string, gender: string, customInfo: string, achievementScore: number)
|
constructor(
|
||||||
{
|
session: IRoomSession,
|
||||||
super(RoomSessionUserFigureUpdateEvent.USER_FIGURE, session);
|
roomIndex: number,
|
||||||
|
figure: string,
|
||||||
|
gender: string,
|
||||||
|
customInfo: string,
|
||||||
|
achievementScore: number,
|
||||||
|
backgroundId: number | null,
|
||||||
|
standId: number | null,
|
||||||
|
overlayId: number | null
|
||||||
|
) {
|
||||||
|
super(RoomSessionUserFigureUpdateEvent.USER_FIGURE, session);
|
||||||
|
|
||||||
this._roomIndex = roomIndex;
|
this._roomIndex = roomIndex;
|
||||||
this._figure = figure;
|
this._figure = figure;
|
||||||
this._gender = gender;
|
this._gender = gender;
|
||||||
this._customInfo = customInfo;
|
this._customInfo = customInfo;
|
||||||
this._achievementScore = achievementScore;
|
this._achievementScore = achievementScore;
|
||||||
}
|
this._backgroundId = backgroundId;
|
||||||
|
this._standId = standId;
|
||||||
|
this._overlayId = overlayId;
|
||||||
|
}
|
||||||
|
|
||||||
public get roomIndex(): number
|
public get roomIndex(): number {
|
||||||
{
|
return this._roomIndex;
|
||||||
return this._roomIndex;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public get figure(): string
|
public get figure(): string {
|
||||||
{
|
return this._figure;
|
||||||
return this._figure;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public get gender(): string
|
public get gender(): string {
|
||||||
{
|
return this._gender;
|
||||||
return this._gender;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public get customInfo(): string
|
public get customInfo(): string {
|
||||||
{
|
return this._customInfo;
|
||||||
return this._customInfo;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public get activityPoints(): number
|
public get activityPoints(): number {
|
||||||
{
|
return this._achievementScore;
|
||||||
return this._achievementScore;
|
}
|
||||||
}
|
|
||||||
|
public get backgroundId(): number | null {
|
||||||
|
return this._backgroundId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get standId(): number | null {
|
||||||
|
return this._standId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get overlayId(): number | null {
|
||||||
|
return this._overlayId;
|
||||||
|
}
|
||||||
}
|
}
|
@ -55,6 +55,9 @@ export class RoomUsersHandler extends BaseHandler
|
|||||||
|
|
||||||
userData.name = user.name;
|
userData.name = user.name;
|
||||||
userData.custom = user.custom;
|
userData.custom = user.custom;
|
||||||
|
userData.background = user.background;
|
||||||
|
userData.stand = user.stand;
|
||||||
|
userData.overlay = user.overlay;
|
||||||
userData.activityPoints = user.activityPoints;
|
userData.activityPoints = user.activityPoints;
|
||||||
userData.figure = user.figure;
|
userData.figure = user.figure;
|
||||||
userData.type = user.userType;
|
userData.type = user.userType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user