Add tooltip_set and PopupHelper::begin, and use localize_format

149 localized tooltips, 38 localized formats and 27 modal popups lose their boilerplate.
This commit is contained in:
shweet committed 2026-11-22 18:47:33 -05:00
1 parent 99e06b72ea
commit 8d3ebf2329
31 files changed
+308 -362

No files matched your search

+2 -2
View File
@@ -52,10 +52,10 @@ 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);
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_GENERATE_MAKE_REGIONS));
tooltip_set(TOOLTIP_GENERATE_MAKE_REGIONS);
ImGui::BeginDisabled(!isMakeRegions);
input_text_string(localize.get(LABEL_FORMAT), &regionNameFormat);
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_GENERATE_REGION_NAME_FORMAT));
tooltip_set(TOOLTIP_GENERATE_REGION_NAME_FORMAT);
ImGui::EndDisabled();
}
ImGui::EndChild();