From 06b8fda1c9ef8d3a3451843e3416b92e52200009 Mon Sep 17 00:00:00 2001 From: duckietm Date: Thu, 28 May 2026 15:52:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20Enable=20or=20disable=20the=20ra?= =?UTF-8?q?dio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/configuration/renderer-config.example | 3 +++ src/components/MainView.tsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/configuration/renderer-config.example b/public/configuration/renderer-config.example index 792be76..c40cdee 100644 --- a/public/configuration/renderer-config.example +++ b/public/configuration/renderer-config.example @@ -30,6 +30,9 @@ "pet.asset.url": "${asset.url}/pets/%libname%.nitro", "generic.asset.url": "${asset.url}/generic/%libname%.nitro", "badge.asset.url": "${image.library.url}album1584/%badgename%.gif", + "radio.url": "${gamedata.url}/radio-stations.json5?t=%timestamp%", + "soundboard.url": "${gamedata.url}/soundboard-sounds.json5?t=%timestamp%", + "radio_ui": false, "furni.rotation.bounce.steps": 20, "furni.rotation.bounce.height": 0.0625, "enable.avatar.arrow": false, diff --git a/src/components/MainView.tsx b/src/components/MainView.tsx index aeb5d91..e155f05 100644 --- a/src/components/MainView.tsx +++ b/src/components/MainView.tsx @@ -1,6 +1,7 @@ import { AddLinkEventTracker, GetCommunication, GetRoomSessionManager, HabboWebTools, ILinkEventTracker, RemoveLinkEventTracker, RoomSessionEvent } from '@nitrots/nitro-renderer'; import { AnimatePresence, motion } from 'framer-motion'; import { FC, useEffect, useState } from 'react'; +import { GetConfigurationValue } from '../api'; import { useNitroEventReducer } from '../hooks'; import { AchievementsView } from './achievements/AchievementsView'; import { AvatarEditorView } from './avatar-editor'; @@ -183,7 +184,7 @@ export const MainView: FC<{}> = props => - + { GetConfigurationValue('radio_ui', true) && } );