Commit Graph

6 Commits

Author SHA1 Message Date
420b570902 [Add] Lua syntax highlighting to the code editor. 2025-10-22 19:36:54 +01:00
9fa0b4b097 [Add] Line numbers to the editor. 2025-10-14 19:39:15 +01:00
e7607e3fc0 [Refactor] Created UIRenderer for consistant coord system.
The UI codebase was suffering with complexity due to the need to
manually convert between two different coordinate systems:
- Top-down "screen coordinates" used by SDL for input and windowing.
- Bottom-up "GL coordinates" used by low-level renderers.

This was making layout calculations diffucult and is bug prone.

With this commit, I'm introducing a 'UIRenderer' abstraction layer that
wraps the low-level 'ShapeRenderer' and 'TextRenderer'. This is
responsible for centralising all coordinate system conversations.

All UI components has been refactored to use the 'UIRenderer' so the
entire UI code opeates exclusively in a single, top-down screen
coordinate system as one would expect.
2025-10-04 03:11:48 +01:00
b4d985db29 [Add] Text editor and generic window content. 2025-09-29 23:15:46 +01:00
324cc795f0 [Add] Multi-line rendering in TextView. 2025-09-29 21:26:35 +01:00
4a6d33292a [Refactor] Abstract text editing into reusable components. 2025-09-28 23:31:17 +01:00