Skip to content

Console Panel Polish and adjustments, ContextMenuBuilder additional h…#245

Merged
michaelsakharov merged 2 commits into
ProwlEngine:New-Editorfrom
xZekro51:tweaks/console-panel-polish-and-context-menu-builder-helpers
Apr 12, 2026
Merged

Console Panel Polish and adjustments, ContextMenuBuilder additional h…#245
michaelsakharov merged 2 commits into
ProwlEngine:New-Editorfrom
xZekro51:tweaks/console-panel-polish-and-context-menu-builder-helpers

Conversation

@xZekro51

Copy link
Copy Markdown
  • Polished the Console Panel to give it a more intuitive look
image - Improved the Console Functionalities to fully support multiline, collapsing, time toggling image image - Added a couple helpers to ContextMenuHelper and EditorGUI - Minor rework of ContextMenuBuilder - Now each item can be handled separately via its own struct, all use the IContextMenuItem interface

…elpers and minor rework and ScrollView tweaks

@michaelsakharov michaelsakharov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other then that 1 thing, this looks great! The Ui looks amazing thank you so much!!

Comment thread Prowl.Editor/Panels/ConsolePanel.cs Outdated
float badgeY = rowY + (RowHeight - 14) * 0.5f;
float stackSize = size * 0.8f;
float stackY = rowY + totalRowSize * (_multiLine ? 0.75f : 0.5f) - stackSize * 0.5f - 2;
TextLayout stackTraceLayout = canvas.CreateLayout(msg.StackTrace.StackFrames[0].ToString(), new Prowl.Scribe.TextLayoutSettings { Font = font, PixelSize = stackSize });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we cache this Text Layout in the entry/msg Creating layouts is a lil expensive since it needs to use the fonts and it constructs the glyph meshes, DrawLayout just draws it and doesnt have to parse/layout anything and is much more performant.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely! It makes a lot of sense, I'll push the change right away.

@PaperPrototype

Copy link
Copy Markdown
Contributor

😍

@michaelsakharov michaelsakharov merged commit 0470c0d into ProwlEngine:New-Editor Apr 12, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants