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

Function isDropdownActive

src/OpenLoco/src/Input/MouseInput.cpp:173–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 bool isDropdownActive(Ui::WindowType type, Ui::WindowNumber_t number)
174 {
175 if (state() != State::dropdownActive)
176 {
177 return false;
178 }
179
180 if (_pressedWindowType != type)
181 {
182 return false;
183 }
184
185 if (!hasFlag(Flags::widgetPressed))
186 {
187 return false;
188 }
189
190 if (_pressedWindowNumber != number)
191 {
192 return false;
193 }
194
195 return true;
196 }
197
198 bool isDropdownActive(Ui::WindowType type, Ui::WindowNumber_t number, Ui::WidgetIndex_t index)
199 {

Callers 3

drawFunction · 0.85
drawFunction · 0.85

Calls 2

stateFunction · 0.50
hasFlagFunction · 0.50

Tested by

no test coverage detected