MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / dropdownFormatArgsToFormatArgs

Function dropdownFormatArgsToFormatArgs

src/OpenLoco/src/Ui/Dropdown.cpp:236–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 }
235
236 static void dropdownFormatArgsToFormatArgs(uint8_t itemIndex, FormatArguments& args)
237 {
238 args.push(*reinterpret_cast<uint32_t*>(&_dropdownItemArgs[itemIndex][0]));
239 args.push(*reinterpret_cast<uint32_t*>(&_dropdownItemArgs[itemIndex][4]));
240 args.push(*reinterpret_cast<uint32_t*>(&_dropdownItemArgs2[itemIndex][0]));
241 args.push(*reinterpret_cast<uint32_t*>(&_dropdownItemArgs2[itemIndex][4]));
242 }
243
244 // 0x00494BF6
245 static void sub_494BF6([[maybe_unused]] Window* self, Gfx::DrawingContext& drawingCtx, StringId stringId, int16_t x, int16_t y, int16_t width, AdvancedColour colour, FormatArguments args)

Callers 2

drawFunction · 0.85
showTextFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected