mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 Make Chatwindow text variable
This commit is contained in:
@@ -27,5 +27,3 @@ Thumbs.db
|
|||||||
/build
|
/build
|
||||||
*.zip
|
*.zip
|
||||||
.env
|
.env
|
||||||
public/renderer-config*
|
|
||||||
public/ui-config*
|
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"friendlist.search": "Zoek vrienden",
|
||||||
|
"widget.chooser.checkall": "Selecteer meubels",
|
||||||
|
"widget.chooser.btn.pickall": "pak de geselecteerde items op!",
|
||||||
|
"wiredfurni.params.requireall.2": "Als een van de geselecteerde furni een avatar heeft",
|
||||||
|
"wiredfurni.params.requireall.3": "Als alle geselecteerde furni avatars op hen hebben",
|
||||||
|
"widget.settings.general": "Standaard",
|
||||||
|
"widget.settings.general.title": "Pas de standaard nitro settings aan",
|
||||||
|
"widget.settings.volume": "Volume",
|
||||||
|
"widget.settings.interface": "Interface",
|
||||||
|
"widget.settings.interface.title": "Pas de settings aan voor de interface",
|
||||||
|
"widget.settings.interface.fps.automatic": "Zet FPS naar unlimited",
|
||||||
|
"widget.settings.interface.fps.warning": "Het zetten van FPS naar unlimited kan prestatie problemen veroorzaken!",
|
||||||
|
"widget.settings.interface.secondary": "Verander de window header kleur",
|
||||||
|
"widget.settings.interface.reset": "Reset header kleur naar default",
|
||||||
|
"widget.room.chat.hide_pets": "Verberg dieren",
|
||||||
|
"widget.room.chat.hide_avatars": "Verberg avatars",
|
||||||
|
"widget.room.chat.hide_balloon": "Verberg Spreekballon",
|
||||||
|
"widget.room.chat.show_balloon": "Spreekballon",
|
||||||
|
"widget.room.chat.clear_history": "leeg geschiedenis"
|
||||||
|
}
|
||||||
@@ -0,0 +1,587 @@
|
|||||||
|
{
|
||||||
|
"socket.url": "ws://## YOUR HOST ##:2096",
|
||||||
|
"asset.url": "http://## YOUR HOST ##/gamedata",
|
||||||
|
"image.library.url": "http://## YOUR HOST ##/gamedata/c_images/",
|
||||||
|
"hof.furni.url": "http://## YOUR HOST ##",
|
||||||
|
"images.url": "${asset.url}/images",
|
||||||
|
"gamedata.url": "${asset.url}",
|
||||||
|
"sounds.url": "${asset.url}/sounds/%sample%.mp3",
|
||||||
|
"external.texts.url": [
|
||||||
|
"${gamedata.url}/config/ExternalTexts.json",
|
||||||
|
"${gamedata.url}//config/UITexts.json"
|
||||||
|
],
|
||||||
|
"external.samples.url": "${hof.furni.url}/gamedata/sounds/sound_machine_sample_%sample%.mp3",
|
||||||
|
"furnidata.url": "${gamedata.url}/config/FurnitureData.json?v=1",
|
||||||
|
"productdata.url": "${gamedata.url}/config/ProductData.json?v=1",
|
||||||
|
"avatar.actions.url": "${gamedata.url}/config/HabboAvatarActions.json?v=1",
|
||||||
|
"avatar.figuredata.url": "${gamedata.url}/config/FigureData.json?v=1",
|
||||||
|
"avatar.figuremap.url": "${gamedata.url}/config/FigureMap.json?v=1",
|
||||||
|
"avatar.effectmap.url": "${gamedata.url}/config/EffectMap.json?v=1",
|
||||||
|
"avatar.asset.url": "${asset.url}/clothes/%libname%.nitro",
|
||||||
|
"avatar.asset.effect.url": "${asset.url}/effect/%libname%.nitro",
|
||||||
|
"furni.asset.url": "${asset.url}/furniture/%libname%.nitro",
|
||||||
|
"furni.asset.icon.url": "${gamedata.url}/icons/%libname%%param%_icon.png",
|
||||||
|
"generic.asset.url": "${asset.url}/generic_custom/%libname%.nitro",
|
||||||
|
"pet.asset.url": "${asset.url}/pets/%libname%.nitro",
|
||||||
|
"badge.asset.url": "${image.library.url}album1584/%badgename%.gif",
|
||||||
|
"furni.rotation.bounce.steps": 20,
|
||||||
|
"furni.rotation.bounce.height": 0.0625,
|
||||||
|
"enable.avatar.arrow": false,
|
||||||
|
"system.log.debug": true,
|
||||||
|
"system.log.warn": true,
|
||||||
|
"system.log.error": true,
|
||||||
|
"system.log.events": false,
|
||||||
|
"system.log.packets": false,
|
||||||
|
"system.fps.animation": 24,
|
||||||
|
"system.fps.max": 60,
|
||||||
|
"system.pong.manually": true,
|
||||||
|
"system.pong.interval.ms": 20000,
|
||||||
|
"room.color.skip.transition": true,
|
||||||
|
"room.landscapes.enabled": true,
|
||||||
|
"room.zoom.enabled": true,
|
||||||
|
"avatar.mandatory.libraries": [
|
||||||
|
"bd:1",
|
||||||
|
"li:0"
|
||||||
|
],
|
||||||
|
"avatar.mandatory.effect.libraries": [
|
||||||
|
"dance.1",
|
||||||
|
"dance.2",
|
||||||
|
"dance.3",
|
||||||
|
"dance.4"
|
||||||
|
],
|
||||||
|
"avatar.default.figuredata": {
|
||||||
|
"palettes": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"colors": [
|
||||||
|
{
|
||||||
|
"id": 99999,
|
||||||
|
"index": 1001,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "DDDDDD"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 99998,
|
||||||
|
"index": 1001,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FAFAFA"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"colors": [
|
||||||
|
{
|
||||||
|
"id": 10001,
|
||||||
|
"index": 1001,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "EEEEEE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10002,
|
||||||
|
"index": 1002,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FA3831"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10003,
|
||||||
|
"index": 1003,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FD92A0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10004,
|
||||||
|
"index": 1004,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "2AC7D2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10005,
|
||||||
|
"index": 1005,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "35332C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10006,
|
||||||
|
"index": 1006,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "EFFF92"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10007,
|
||||||
|
"index": 1007,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "C6FF98"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10008,
|
||||||
|
"index": 1008,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FF925A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10009,
|
||||||
|
"index": 1009,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "9D597E"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10010,
|
||||||
|
"index": 1010,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "B6F3FF"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10011,
|
||||||
|
"index": 1011,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "6DFF33"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10012,
|
||||||
|
"index": 1012,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "3378C9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10013,
|
||||||
|
"index": 1013,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FFB631"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10014,
|
||||||
|
"index": 1014,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "DFA1E9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10015,
|
||||||
|
"index": 1015,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "F9FB32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10016,
|
||||||
|
"index": 1016,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "CAAF8F"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10017,
|
||||||
|
"index": 1017,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "C5C6C5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10018,
|
||||||
|
"index": 1018,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "47623D"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10019,
|
||||||
|
"index": 1019,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "8A8361"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10020,
|
||||||
|
"index": 1020,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FF8C33"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10021,
|
||||||
|
"index": 1021,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "54C627"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10022,
|
||||||
|
"index": 1022,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "1E6C99"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10023,
|
||||||
|
"index": 1023,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "984F88"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10024,
|
||||||
|
"index": 1024,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "77C8FF"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10025,
|
||||||
|
"index": 1025,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FFC08E"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10026,
|
||||||
|
"index": 1026,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "3C4B87"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10027,
|
||||||
|
"index": 1027,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "7C2C47"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10028,
|
||||||
|
"index": 1028,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "D7FFE3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10029,
|
||||||
|
"index": 1029,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "8F3F1C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10030,
|
||||||
|
"index": 1030,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FF6393"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10031,
|
||||||
|
"index": 1031,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "1F9B79"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10032,
|
||||||
|
"index": 1032,
|
||||||
|
"club": 0,
|
||||||
|
"selectable": false,
|
||||||
|
"hexCode": "FDFF33"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"setTypes": [
|
||||||
|
{
|
||||||
|
"type": "hd",
|
||||||
|
"paletteId": 1,
|
||||||
|
"mandatory_f_0": true,
|
||||||
|
"mandatory_f_1": true,
|
||||||
|
"mandatory_m_0": true,
|
||||||
|
"mandatory_m_1": true,
|
||||||
|
"sets": [
|
||||||
|
{
|
||||||
|
"id": 99999,
|
||||||
|
"gender": "U",
|
||||||
|
"club": 0,
|
||||||
|
"colorable": true,
|
||||||
|
"selectable": false,
|
||||||
|
"preselectable": false,
|
||||||
|
"sellable": false,
|
||||||
|
"parts": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"type": "bd",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"type": "hd",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"type": "lh",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"type": "rh",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "bds",
|
||||||
|
"paletteId": 1,
|
||||||
|
"mandatory_f_0": false,
|
||||||
|
"mandatory_f_1": false,
|
||||||
|
"mandatory_m_0": false,
|
||||||
|
"mandatory_m_1": false,
|
||||||
|
"sets": [
|
||||||
|
{
|
||||||
|
"id": 10001,
|
||||||
|
"gender": "U",
|
||||||
|
"club": 0,
|
||||||
|
"colorable": true,
|
||||||
|
"selectable": false,
|
||||||
|
"preselectable": false,
|
||||||
|
"sellable": false,
|
||||||
|
"parts": [
|
||||||
|
{
|
||||||
|
"id": 10001,
|
||||||
|
"type": "bds",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10001,
|
||||||
|
"type": "lhs",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10001,
|
||||||
|
"type": "rhs",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hiddenLayers": [
|
||||||
|
{
|
||||||
|
"partType": "bd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "rh"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "lh"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "ss",
|
||||||
|
"paletteId": 3,
|
||||||
|
"mandatory_f_0": false,
|
||||||
|
"mandatory_f_1": false,
|
||||||
|
"mandatory_m_0": false,
|
||||||
|
"mandatory_m_1": false,
|
||||||
|
"sets": [
|
||||||
|
{
|
||||||
|
"id": 10010,
|
||||||
|
"gender": "F",
|
||||||
|
"club": 0,
|
||||||
|
"colorable": true,
|
||||||
|
"selectable": false,
|
||||||
|
"preselectable": false,
|
||||||
|
"sellable": false,
|
||||||
|
"parts": [
|
||||||
|
{
|
||||||
|
"id": 10001,
|
||||||
|
"type": "ss",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hiddenLayers": [
|
||||||
|
{
|
||||||
|
"partType": "ch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "lg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "ca"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "wa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "sh"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "ls"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "rs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "lc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "rc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "cc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "cp"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10011,
|
||||||
|
"gender": "M",
|
||||||
|
"club": 0,
|
||||||
|
"colorable": true,
|
||||||
|
"selectable": false,
|
||||||
|
"preselectable": false,
|
||||||
|
"sellable": false,
|
||||||
|
"parts": [
|
||||||
|
{
|
||||||
|
"id": 10002,
|
||||||
|
"type": "ss",
|
||||||
|
"colorable": true,
|
||||||
|
"index": 0,
|
||||||
|
"colorindex": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hiddenLayers": [
|
||||||
|
{
|
||||||
|
"partType": "ch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "lg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "ca"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "wa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "sh"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "ls"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "rs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "lc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "rc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "cc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"partType": "cp"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"avatar.default.actions": {
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"id": "Default",
|
||||||
|
"state": "std",
|
||||||
|
"precedence": 1000,
|
||||||
|
"main": true,
|
||||||
|
"isDefault": true,
|
||||||
|
"geometryType": "vertical",
|
||||||
|
"activePartSet": "figure",
|
||||||
|
"assetPartDefinition": "std"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pet.types": [
|
||||||
|
"dog",
|
||||||
|
"cat",
|
||||||
|
"croco",
|
||||||
|
"terrier",
|
||||||
|
"bear",
|
||||||
|
"pig",
|
||||||
|
"lion",
|
||||||
|
"rhino",
|
||||||
|
"spider",
|
||||||
|
"turtle",
|
||||||
|
"chicken",
|
||||||
|
"frog",
|
||||||
|
"dragon",
|
||||||
|
"monster",
|
||||||
|
"monkey",
|
||||||
|
"horse",
|
||||||
|
"monsterplant",
|
||||||
|
"bunnyeaster",
|
||||||
|
"bunnyevil",
|
||||||
|
"bunnydepressed",
|
||||||
|
"bunnylove",
|
||||||
|
"pigeongood",
|
||||||
|
"pigeonevil",
|
||||||
|
"demonmonkey",
|
||||||
|
"bearbaby",
|
||||||
|
"terrierbaby",
|
||||||
|
"gnome",
|
||||||
|
"gnome",
|
||||||
|
"kittenbaby",
|
||||||
|
"puppybaby",
|
||||||
|
"pigletbaby",
|
||||||
|
"haloompa",
|
||||||
|
"fools",
|
||||||
|
"pterosaur",
|
||||||
|
"velociraptor",
|
||||||
|
"cow",
|
||||||
|
"LeetPen",
|
||||||
|
"bbwibb",
|
||||||
|
"elephants"
|
||||||
|
],
|
||||||
|
"preload.assets.urls": [
|
||||||
|
"${asset.url}/bundled/generic/avatar_additions.nitro",
|
||||||
|
"${asset.url}/bundled/generic/group_badge.nitro",
|
||||||
|
"${asset.url}/bundled/generic/floor_editor.nitro",
|
||||||
|
"${images.url}/loading_icon.png",
|
||||||
|
"${images.url}/clear_icon.png",
|
||||||
|
"${images.url}/big_arrow.png"
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
import { GetSessionDataManager, RoomObjectType } from '@nitrots/nitro-renderer';
|
import { GetSessionDataManager, RoomObjectType } from '@nitrots/nitro-renderer';
|
||||||
import { FC, UIEvent, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
import { FC, UIEvent, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { ChatEntryType } from '../../../../api';
|
import { ChatEntryType, LocalizeText } from '../../../../api';
|
||||||
import { DraggableWindowPosition, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../common';
|
import { DraggableWindowPosition, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../common';
|
||||||
import { useChatHistory, useChatWindow } from '../../../../hooks';
|
import { useChatHistory, useChatWindow } from '../../../../hooks';
|
||||||
import { useRoom } from '../../../../hooks/rooms';
|
import { useRoom } from '../../../../hooks/rooms';
|
||||||
@@ -96,27 +96,27 @@ export const ChatWidgetWindowView: FC<{}> = () =>
|
|||||||
<div className="flex items-center gap-2 px-2 py-1 border-b border-black/20 bg-white/40 text-black text-[11px]">
|
<div className="flex items-center gap-2 px-2 py-1 border-b border-black/20 bg-white/40 text-black text-[11px]">
|
||||||
<label className="flex items-center gap-1 cursor-pointer select-none">
|
<label className="flex items-center gap-1 cursor-pointer select-none">
|
||||||
<input checked={ hidePets } type="checkbox" onChange={ event => setHidePets(event.target.checked) } />
|
<input checked={ hidePets } type="checkbox" onChange={ event => setHidePets(event.target.checked) } />
|
||||||
<span>hide pets</span>
|
<span>{ LocalizeText('widget.room.chat.hide_pets') }</span>
|
||||||
</label>
|
</label>
|
||||||
<label className="flex items-center gap-1 cursor-pointer select-none">
|
<label className="flex items-center gap-1 cursor-pointer select-none">
|
||||||
<input checked={ hideAvatars } type="checkbox" onChange={ event => setHideAvatars(event.target.checked) } />
|
<input checked={ hideAvatars } type="checkbox" onChange={ event => setHideAvatars(event.target.checked) } />
|
||||||
<span>hide avatars</span>
|
<span>{ LocalizeText('widget.room.chat.hide_avatars') }</span>
|
||||||
</label>
|
</label>
|
||||||
<button className="ml-auto px-1 py-0.5 rounded border border-black/30 bg-white/70 text-[11px] text-black hover:bg-white" onClick={ () => setHideBalloons(value => !value) } type="button">
|
<button className="ml-auto px-1 py-0.5 rounded border border-black/30 bg-white/70 text-[11px] text-black hover:bg-white" onClick={ () => setHideBalloons(value => !value) } type="button">
|
||||||
{ hideBalloons ? 'show balloons' : 'hide balloons' }
|
{ hideBalloons ? LocalizeText('widget.room.chat.show_balloon') : LocalizeText('widget.room.chat.hide_balloon') }
|
||||||
</button>
|
</button>
|
||||||
<button className="px-1 py-0.5 rounded border border-black/30 bg-white/70 text-[11px] text-black hover:bg-white" onClick={ () =>
|
<button className="px-1 py-0.5 rounded border border-black/30 bg-white/70 text-[11px] text-black hover:bg-white" onClick={ () =>
|
||||||
{
|
{
|
||||||
if(clearChatHistory) clearChatHistory();
|
if(clearChatHistory) clearChatHistory();
|
||||||
} } type="button">
|
} } type="button">
|
||||||
clear history
|
{ LocalizeText('widget.room.chat.clear_history') }
|
||||||
</button>
|
</button>
|
||||||
<div>
|
<div>
|
||||||
<input
|
<input
|
||||||
className="h-[20px] px-1 rounded border border-black/30 bg-white/70 text-[11px] text-black"
|
className="h-[20px] px-1 rounded border border-black/30 bg-white/70 text-[11px] text-black"
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
type="text"
|
type="text"
|
||||||
value={ search }
|
value={ LocalizeText('navigator.frontpage.staticsearch.8') }
|
||||||
onChange={ event => setSearch(event.target.value) } />
|
onChange={ event => setSearch(event.target.value) } />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user