You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code editor: status bar, Outline/Problems/Scripts panels, scripting workspace overhaul
Adds the IDE chrome that the Scripting workspace needs to feel like a real
code editor instead of a generic egui panel.
Code editor (renzora_code_editor):
- Status bar (file path · modified dot · language · line:col)
- Save All button on the toolbar
- Show whitespace toggle (overlays dot for space, arrow for tab)
- Minimap toggle
- Minimap on the right with viewport indicator + click/drag to scroll
- Save-or-discard confirm modal when closing modified tabs
- save_file(idx) helper alongside save_active()
- Missing files now log a warning with the full path instead of an opaque
read_to_string error
- script_path resolution matches the runtime: project_root.join(rel_path)
with no fake 'scripts/' fallback (scripts can live in any directory)
New panels (registered with the editor):
- Outline: extracts function/struct symbols from the active tab and jumps
the cursor to them on click
- Problems: aggregates ScriptError across every open file; click to switch
tab and goto-line
- Scripts: lists script entries on the selected entity with eye-toggle
(enable/disable) and trash (detach), plus a 'New Script' button that
creates scripts/new_script_N.lua, attaches it (creating ScriptComponent
if absent), and opens it as a new tab
Asset browser:
- AssetBrowserExtensionFilter resource (in renzora_editor_framework)
- AssetBrowserState.passes_filter() applied in collect_entries and the
tree's inline file listing
- ui() syncs the filter from the resource each frame
Layout / UX:
- Scripting workspace reshuffled: Hierarchy / (Scripts+Outline tabbed) /
Assets in the left rail (~13%), Code editor over Console+Problems in
the center (~62%), Viewport over Script Variables on the right (~25%);
Inspector + History dropped from this workspace
- sync_asset_filter_for_scripting limits the asset browser to script /
shader / config extensions while the Scripting layout is active
- auto_switch_to_ui_layout_on_selection now only fires when already in
Scene or UI, so selecting an entity in Scripting/Animation/etc. no
longer hijacks the workspace
0 commit comments