0x0046C481
| 2130 | |
| 2131 | // 0x0046C481 |
| 2132 | static void drawTownNames(Gfx::DrawingContext& drawingCtx) |
| 2133 | { |
| 2134 | auto tr = Gfx::TextRenderer(drawingCtx); |
| 2135 | |
| 2136 | for (const auto& town : TownManager::towns()) |
| 2137 | { |
| 2138 | auto townPos = locationToMapWindowPos({ town.x, town.y }); |
| 2139 | |
| 2140 | char townNameBuffer[512]{}; |
| 2141 | StringManager::formatString(townNameBuffer, town.name); |
| 2142 | tr.setCurrentFont(Gfx::Font::small); |
| 2143 | |
| 2144 | auto strWidth = tr.getStringWidth(townNameBuffer); |
| 2145 | |
| 2146 | strWidth /= 2; |
| 2147 | |
| 2148 | townPos.x -= strWidth; |
| 2149 | townPos.y -= 3; |
| 2150 | |
| 2151 | tr.setCurrentFont(Gfx::Font::small); |
| 2152 | tr.drawString(townPos, AdvancedColour(Colour::purple).outline(), townNameBuffer); |
| 2153 | } |
| 2154 | } |
| 2155 | |
| 2156 | // 0x0046B806 |
| 2157 | static void drawScroll(Window& self, Gfx::DrawingContext& drawingCtx, [[maybe_unused]] const uint32_t scrollIndex) |
no test coverage detected