| 1183 | } |
| 1184 | |
| 1185 | void UpdateWidgetText(WindowBase* w, WidgetIndex widgetIndex, std::string_view value) |
| 1186 | { |
| 1187 | if (w->classification == WindowClass::custom) |
| 1188 | { |
| 1189 | auto& customInfo = GetInfo(static_cast<CustomWindow*>(w)); |
| 1190 | auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); |
| 1191 | if (customWidgetInfo != nullptr) |
| 1192 | { |
| 1193 | customWidgetInfo->Text = value; |
| 1194 | w->widgets[widgetIndex].string = customWidgetInfo->Text.data(); |
| 1195 | |
| 1196 | auto* windowMgr = GetWindowManager(); |
| 1197 | windowMgr->InvalidateWidget(*w, widgetIndex); |
| 1198 | } |
| 1199 | } |
| 1200 | } |
| 1201 | |
| 1202 | void UpdateWidgetItems(WindowBase* w, WidgetIndex widgetIndex, const std::vector<std::string>& items) |
| 1203 | { |
no test coverage detected