| 2197 | } |
| 2198 | |
| 2199 | void AdvancedDraw(RenderTarget& rt) |
| 2200 | { |
| 2201 | auto ft = Formatter(); |
| 2202 | ft.Add<int32_t>(Config::Get().general.autosaveAmount); |
| 2203 | drawText( |
| 2204 | rt, windowPos + ScreenCoordsXY{ widgets[WIDX_AUTOSAVE_AMOUNT].left + 1, widgets[WIDX_AUTOSAVE_AMOUNT].top + 1 }, |
| 2205 | STR_WINDOW_COLOUR_2_COMMA32, ft, { colours[1] }); |
| 2206 | |
| 2207 | // Format RCT1 path |
| 2208 | const auto normalisedPath = Platform::StrDecompToPrecomp(Config::Get().general.rct1Path); |
| 2209 | ft = Formatter(); |
| 2210 | ft.Add<StringId>(STR_STRING); |
| 2211 | ft.Add<const utf8*>(normalisedPath.c_str()); |
| 2212 | |
| 2213 | auto& pathWidget = widgets[WIDX_PATH_TO_RCT1_PATH]; |
| 2214 | int32_t widgetHeight = pathWidget.bottom - pathWidget.top; |
| 2215 | |
| 2216 | // Apply vertical alignment if font height requires it |
| 2217 | int32_t lineHeight = FontGetLineHeight(FontStyle::medium); |
| 2218 | int32_t padding = widgetHeight > lineHeight ? (widgetHeight - lineHeight) / 2 : 0; |
| 2219 | |
| 2220 | auto screenCoords = windowPos + ScreenCoordsXY{ pathWidget.left + 1, pathWidget.top + padding }; |
| 2221 | drawTextEllipsised(rt, screenCoords, pathWidget.width() - 1, STR_BLACK_STRING, ft); |
| 2222 | } |
| 2223 | |
| 2224 | StringWithArgs AdvancedTooltip(WidgetIndex widgetIndex, StringId fallback) |
| 2225 | { |
nothing calls this directly
no test coverage detected