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

Function setColourAndInputFlags

src/OpenLoco/src/Ui/Dropdown.cpp:390–407  ·  view source on GitHub ↗

0x004CC807 based on

Source from the content-addressed store, hash-verified

388
389 // 0x004CC807 based on
390 static void setColourAndInputFlags(AdvancedColour& colour, uint8_t& flags)
391 {
392 if (colour.isTranslucent())
393 {
394 colour = kDropdownColourTable[enumValue(colour.c())];
395 colour = colour.translucent();
396 }
397
398 Input::resetFlag(Input::Flags::flag1);
399 Input::resetFlag(Input::Flags::flag2);
400
401 if (flags & (1 << 7))
402 {
403 Input::setFlag(Input::Flags::flag1);
404 }
405
406 flags &= ~(1 << 7);
407 }
408
409 // 0x004CCAB2
410 static void showText(int16_t x, int16_t y, int16_t width, int16_t height, uint8_t itemHeight, AdvancedColour colour, size_t count, uint8_t flags)

Callers 4

showFunction · 0.85
showImageFunction · 0.85
showTextFunction · 0.85
showText2Function · 0.85

Calls 6

enumValueFunction · 0.85
cMethod · 0.80
translucentMethod · 0.80
resetFlagFunction · 0.50
setFlagFunction · 0.50
isTranslucentMethod · 0.45

Tested by

no test coverage detected