aboutsummaryrefslogtreecommitdiff
path: root/src/imgui.zig
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2025-10-13 02:49:48 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2025-10-13 02:49:48 -0500
commit167fdaf8b41d19f119df8484f004d968e9fc68fd (patch)
treebc17f87c2c14638e3ac004847c9d26e20ffc418a /src/imgui.zig
parent2f1f9beb60309df8d2de011b19402a79ef8101fa (diff)
downloadparticle-sim-167fdaf8b41d19f119df8484f004d968e9fc68fd.tar.gz
Update to zig 0.15.1 complete, along with further optimization
Diffstat (limited to 'src/imgui.zig')
-rw-r--r--src/imgui.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imgui.zig b/src/imgui.zig
index 688e935..f086f2a 100644
--- a/src/imgui.zig
+++ b/src/imgui.zig
@@ -30,13 +30,13 @@ pub fn update(alloc: std.mem.Allocator, buf: [:0]u8) !void {
}
if (z.collapsingHeader("Radius", .{ .default_open = true })) {
for (&cfg.radius, 0..) |*r, i| {
- const str = rul.colorToStringZ(i);
+ const str = rul.colorToStringZ(i, "", " Radius");
_ = z.sliderInt(str, .{ .v = r, .min = cfg.minDistance, .max = 500 });
}
}
if (z.collapsingHeader("Speed", .{ .default_open = true })) {
for (&cfg.speed, 0..) |*s, i| {
- const str = rul.colorToStringZ(i);
+ const str = rul.colorToStringZ(i, "", " Speed");
_ = z.sliderInt(str, .{ .v = s, .min = 1, .max = 1000 });
}
}