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:
1 parent
99e06b72ea
commit
8d3ebf2329
31 files changed
+308
-362
No files matched your search
@@ -68,7 +68,7 @@ void libraries_update(Panel& panel)
|
||||
ListRows rows{.label_get =
|
||||
[&](int id) {
|
||||
auto pathString = path_to_utf8(item_get(libraries, id)->path);
|
||||
return std::vformat(localize.get(FORMAT_SOUND), std::make_format_args(id, pathString));
|
||||
return localize_format(FORMAT_SOUND, id, pathString);
|
||||
},
|
||||
.tooltip_draw =
|
||||
[&](int id) {
|
||||
|
||||
Reference in new issue
Block a user