isadorasophia / murder

Murder is a pixel art ECS game engine.

Home Page:https://isadorasophia.com/murder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font UI is broken

jdrst opened this issue · comments

The UI for fonts is broken.
This reproduces on all systems (Win/macOS/Linux).

How to reproduce:

  1. clone this repo.
  2. run dotnet run --project src\HelloMurder.Editor\HelloMurder.Editor.csproj
  3. under Fonts click on any font.

image
/e under linux it's a bit worse
image

Wow this actually looks cool 😄
This is because ImGui actually has a triangle limit. The font file is way way too big for it to handle.
The solution is to either limit or paginate lists. Maybe 64? Ideally we can set this value in EditorPreferences too. We can still have problems with recursive fields, though.

I'll fix this soon, but if anyone wants to give it a go, this seem like a good first issue! 🙂

Fixed it here ce9f23d
Lists now have a fixed limit of 128, which should be enough for most cases. I'll add pages in the future.