updated bullet points to wrap to the next line when it reaches the edge of the content area.

This commit is contained in:
choco
2025-12-19 15:55:20 +01:00
parent bade5ab6f5
commit ae9df103f3

View File

@@ -195,13 +195,15 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase
foreach (var item in category.Items) foreach (var item in category.Items)
{ {
ImGui.Bullet();
ImGui.SameLine();
if (!string.IsNullOrEmpty(item.Role)) if (!string.IsNullOrEmpty(item.Role))
{ {
ImGui.BulletText($"{item.Name} — {item.Role}"); ImGui.TextWrapped($"{item.Name} — {item.Role}");
} }
else else
{ {
ImGui.BulletText(item.Name); ImGui.TextWrapped(item.Name);
} }
} }
@@ -254,7 +256,7 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase
ImGui.SetScrollHereY(0); ImGui.SetScrollHereY(0);
} }
ImGui.PushTextWrapPos(); ImGui.PushTextWrapPos(ImGui.GetCursorPosX() + ImGui.GetContentRegionAvail().X);
foreach (var entry in _changelog.Changelog) foreach (var entry in _changelog.Changelog)
{ {
@@ -314,7 +316,9 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase
foreach (var item in version.Items) foreach (var item in version.Items)
{ {
ImGui.BulletText(item); ImGui.Bullet();
ImGui.SameLine();
ImGui.TextWrapped(item);
} }
ImGuiHelpers.ScaledDummy(5); ImGuiHelpers.ScaledDummy(5);