From d78da8c52a76e5259682cfac8b25498b0b33b093 Mon Sep 17 00:00:00 2001 From: 4DBug Date: Sat, 17 Oct 2026 06:06:33 -0500 Subject: [PATCH] example: fix RadioButton usage --- examples/roblox/main.client.luau | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/roblox/main.client.luau b/examples/roblox/main.client.luau index 6eeb903..3717a64 100644 --- a/examples/roblox/main.client.luau +++ b/examples/roblox/main.client.luau @@ -26,14 +26,14 @@ RunService.RenderStepped:Connect(function() ImGuizmo.BeginFrame() ImGui.Begin("Gizmo") - if ImGui.RadioButton("Translate", Operation == OP.TRANSLATE) then Operation = OP.TRANSLATE end + _, Operation = ImGui.RadioButton("Translate", Operation, OP.TRANSLATE) ImGui.SameLine() - if ImGui.RadioButton("Rotate", Operation == OP.ROTATE) then Operation = OP.ROTATE end + _, Operation = ImGui.RadioButton("Rotate", Operation, OP.ROTATE) ImGui.SameLine() - if ImGui.RadioButton("Scale", Operation == OP.SCALE) then Operation = OP.SCALE end - if ImGui.RadioButton("Local", Mode == MODE.LOCAL) then Mode = MODE.LOCAL end + _, Operation = ImGui.RadioButton("Scale", Operation, OP.SCALE) + _, Mode = ImGui.RadioButton("Local", Mode, MODE.LOCAL) ImGui.SameLine() - if ImGui.RadioButton("World", Mode == MODE.WORLD) then Mode = MODE.WORLD end + _, Mode = ImGui.RadioButton("World", Mode, MODE.WORLD) ImGui.End() local Viewport = Camera.ViewportSize