0x00440400
| 89 | |
| 90 | // 0x00440400 |
| 91 | static void paintWindowCurrencyEntity(PaintSession& session, MoneyEffect* moneyEffect) |
| 92 | { |
| 93 | if (!Config::get().cashPopupRendering) |
| 94 | { |
| 95 | return; |
| 96 | } |
| 97 | |
| 98 | const Gfx::RenderTarget* rt = session.getRenderTarget(); |
| 99 | if (rt->zoomLevel > 1) |
| 100 | { |
| 101 | return; |
| 102 | } |
| 103 | const StringId stringId = moneyEffect->amount >= 0 ? StringIds::format_currency_income_in_company_colour : StringIds::format_currency_expense_in_company_colour_negative; |
| 104 | uint32_t currencyAmount = abs(moneyEffect->amount); |
| 105 | const int8_t* yOffsets = &kWiggleYOffsets[moneyEffect->wiggle]; |
| 106 | auto companyColour = CompanyManager::getCompanyColour(moneyEffect->var_2E); |
| 107 | |
| 108 | session.addToStringPlotList(currencyAmount, stringId, moneyEffect->position.z, moneyEffect->offsetX, yOffsets, enumValue(companyColour)); |
| 109 | } |
| 110 | |
| 111 | // 0x0044044E |
| 112 | static void paintVehicleCrashParticleEntity(PaintSession& session, VehicleCrashParticle* particle) |
no test coverage detected