feat(rbxl): XML-������ ������ .rbxl + Day/Night + Tool/Mouse/Backpack flow #38

Closed
min wants to merge 39 commits from feat/rbxl-xml-parser-import into main
Showing only changes of commit 98640c4bdb - Show all commits

View File

@ -132,7 +132,11 @@ const GroupRow = ({ icon, label, open, onToggle, plusItems }) => {
/** Строка скрипта внутри иерархии. */ /** Строка скрипта внутри иерархии. */
const ScriptRow = ({ script, depth, selected, onSelect, onDelete, onRename, onContextMenu, onStartRename }) => { const ScriptRow = ({ script, depth, selected, onSelect, onDelete, onRename, onContextMenu, onStartRename }) => {
const displayName = script.name || (script.id === 'demo' ? 'Демо-скрипт' : script.id); const displayName = script.name || (script.id === 'demo' ? 'Демо-скрипт' : script.id);
const isLua = script.language === 'lua'; // Lua либо явно language='lua', либо импортированный .rbxl-скрипт
// (хранится с language='js' в БД но фактически Lua-код внутри обёртки).
const isRbxlImported = typeof script.code === 'string'
&& script.code.startsWith('// @roblox-lua');
const isLua = script.language === 'lua' || isRbxlImported;
const badge = ( const badge = (
<span <span
style={{ style={{