Draw localized checkboxes and radio buttons with their tooltips in one call

This commit is contained in:
shweet committed 2026-11-22 19:08:30 -05:00
1 parent f39ea8cdfc
commit bbfdafb006
15 files changed
+79 -109

No files matched your search

+1 -2
View File
@@ -155,8 +155,7 @@ void CanvasView::grid_child_draw(ImVec2 childSize, bool& isGrid, Vec4& gridColor
{
if (ImGui::BeginChild("##Grid Child", childSize, true, ImGuiWindowFlags_HorizontalScrollbar))
{
ImGui::Checkbox(localize.get(BASIC_GRID), &isGrid);
tooltip_set(TOOLTIP_GRID_VISIBILITY);
checkbox_draw(BASIC_GRID, isGrid, TOOLTIP_GRID_VISIBILITY);
if (isGridSnap)
{
ImGui::SameLine();