MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / onOpen

Method onOpen

src/openrct2-ui/windows/Dropdown.cpp:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 public:
72 void onOpen() override
73 {
74 setWidgets(kWindowDropdownWidgets);
75
76 // Input state
77 gDropdown.highlightedIndex = -1;
78 gDropdown.hasTooltips = false;
79 gDropdown.defaultIndex = -1;
80 InputSetState(InputState::dropdownActive);
81 }
82
83 static int32_t GetDefaultRowHeight()
84 {

Callers

nothing calls this directly

Calls 1

InputSetStateFunction · 0.85

Tested by

no test coverage detected