Added Color to the Renderer and Avatar update

This commit is contained in:
duckietm
2024-04-04 09:26:05 +02:00
parent 187622429f
commit 95bc0045ec
11 changed files with 92 additions and 51 deletions
@@ -4,9 +4,9 @@ export class RoomUnitChatComposer implements IMessageComposer<ConstructorParamet
{
private _data: ConstructorParameters<typeof RoomUnitChatComposer>;
constructor(message: string, styleId: number = 0)
constructor(message: string, styleId: number = 0, chatColour: string = '')
{
this._data = [message, styleId];
this._data = [message, styleId, chatColour];
}
public getMessageArray()
@@ -4,9 +4,9 @@ export class RoomUnitChatShoutComposer implements IMessageComposer<ConstructorPa
{
private _data: ConstructorParameters<typeof RoomUnitChatShoutComposer>;
constructor(message: string, styleId: number)
constructor(message: string, styleId: number, chatColour: string)
{
this._data = [message, styleId];
this._data = [message, styleId, chatColour];
}
public getMessageArray()