Skip to content

Begin console individual labels, colors & reuse#820

Draft
jacobsorme wants to merge 3 commits into
KaijuEngine:masterfrom
jacobsorme:feature/console-labels
Draft

Begin console individual labels, colors & reuse#820
jacobsorme wants to merge 3 commits into
KaijuEngine:masterfrom
jacobsorme:feature/console-labels

Conversation

@jacobsorme

@jacobsorme jacobsorme commented May 22, 2026

Copy link
Copy Markdown
Contributor

See #791 & #809

Begin try making console rows/entries individual labels, to:

  • Support individual entry colors, style
  • Possibly improve console scroll-stick-to-bottom logic

Current limitations:

  • lbl.SetColor(matrix.ColorAquamarine()) isn't showing, unsure why. I've tried other approaches than using .Clone on an element, like building manually, but gotten stuck in nil pointer issues

Fixed in 90cc059. Had to use EnforceFGColor, otherwise the entries got their color from parent (setChildTextColor(elm, color) override)

  • Hard coded 1000 limit on the entries, no history of past

Thoughts:

  • I guess it's possible (as discussed in #791 Fix console scroll stick #809) to keep a history ([]string?), detect scroll up at the top and then shift currently showing entries downward. However, would this make the scroll look "discrete" and not "continuous" (shift/scroll whole rows, not fractions)?
  • Would the scroll bar at the side reflect the real number of entries if we cap visually? Maybe that's not an issue?

Feedback welcome!

image

@jacobsorme jacobsorme force-pushed the feature/console-labels branch from 2317bff to 90cc059 Compare May 24, 2026 10:44
@jacobsorme jacobsorme force-pushed the feature/console-labels branch from 90cc059 to 92c89b4 Compare May 24, 2026 11:25
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.

1 participant