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

Function setHoverItem

src/OpenLoco/src/Ui/Windows/MapWindow.cpp:978–1001  ·  view source on GitHub ↗

0x0046D34D based on

Source from the content-addressed store, hash-verified

976
977 // 0x0046D34D based on
978 static void setHoverItem(Window* self, int16_t y, int index)
979 {
980 uint32_t itemHover;
981
982 if (y < 0)
983 {
984 itemHover = (1 << index);
985 }
986 else
987 {
988 itemHover = 0;
989 }
990
991 if (itemHover != self->var_854)
992 {
993 self->var_854 = itemHover;
994 self->invalidate();
995 }
996
997 if (self->var_854 != 0)
998 {
999 self->invalidate();
1000 }
1001 }
1002
1003 static uint8_t legendWidth = 100;
1004 static uint8_t legendItemHeight = 10;

Callers 1

setHoverItemTabFunction · 0.85

Calls 1

invalidateMethod · 0.45

Tested by

no test coverage detected