Replies: 1 comment
-
Stumbled across this looking for this in C#. Here's the converted code (using Hexa Imgui). Thanks for the idea! It also assumes that bool RadioButton(string text, ref int activeItem, int thisItem)
{
if (activeItem == thisItem)
ImGui.PushStyleColor(ImGuiCol.Button, ImGui.GetStyle().Colors[(int)ImGuiCol.ButtonActive]);
bool value = ImGui.Button(text);
if (activeItem == thisItem)
ImGui.PopStyleColor();
if (value)
activeItem = thisItem;
return value;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Usage
Beta Was this translation helpful? Give feedback.
All reactions