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
@@ -51,8 +51,7 @@ void GenerateAnimationFromGrid::update(Manager& manager, Document& document, Res
ImGui::InputInt(localize.get(BASIC_DURATION), &delay, STEP, STEP_FAST);
ImGui::Separator();
ImGui::Checkbox(localize.get(LABEL_GENERATE_MAKE_REGIONS), &isMakeRegions);
tooltip_set(TOOLTIP_GENERATE_MAKE_REGIONS);
checkbox_draw(LABEL_GENERATE_MAKE_REGIONS, isMakeRegions, TOOLTIP_GENERATE_MAKE_REGIONS);
ImGui::BeginDisabled(!isMakeRegions);
input_text_string(localize.get(LABEL_FORMAT), &regionNameFormat);
tooltip_set(TOOLTIP_GENERATE_REGION_NAME_FORMAT);