Lines Matching refs:buttonList

133 int GUI_v2::processButtonList(Button *buttonList, uint16 inputFlag, int8 mouseWheel) {  in processButtonList()  argument
134 if (!buttonList) in processButtonList()
137 if (_backUpButtonList != buttonList || _buttonListChanged) { in processButtonList()
140 _backUpButtonList = buttonList; in processButtonList()
143 while (buttonList) { in processButtonList()
144 processButton(buttonList); in processButtonList()
145 buttonList = buttonList->nextButton; in processButtonList()
176 buttonList = _backUpButtonList; in processButtonList()
178 buttonList = _specialProcessButton; in processButtonList()
184 while (buttonList) { in processButtonList()
185 if (buttonList->flags & 8) { in processButtonList()
186 buttonList = buttonList->nextButton; in processButtonList()
189 buttonList->flags2 &= ~0x18; in processButtonList()
190 buttonList->flags2 |= (buttonList->flags2 & 3) << 3; in processButtonList()
192 int x = buttonList->x; in processButtonList()
194 x += _screen->getScreenDim(buttonList->dimTableIndex)->w << 3; in processButtonList()
195 x += _screen->getScreenDim(buttonList->dimTableIndex)->sx << 3; in processButtonList()
197 int y = buttonList->y; in processButtonList()
199 y += _screen->getScreenDim(buttonList->dimTableIndex)->h; in processButtonList()
200 y += _screen->getScreenDim(buttonList->dimTableIndex)->sy; in processButtonList()
204 …if (mouseX >= x && mouseY >= y && mouseX <= x + buttonList->width && mouseY <= y + buttonList->hei… in processButtonList()
207 buttonList->flags2 &= ~0x80; in processButtonList()
210 if (buttonList->keyCode == inFlags) { in processButtonList()
212 flags = buttonList->flags & 0x0F00; in processButtonList()
213 buttonList->flags2 |= 0x80; in processButtonList()
215 _specialProcessButton = buttonList; in processButtonList()
216 } else if (buttonList->keyCode2 == inFlags) { in processButtonList()
217 flags = buttonList->flags & 0xF000; in processButtonList()
219 flags = buttonList->flags & 0x0F00; in processButtonList()
221 buttonList->flags2 |= 0x80; in processButtonList()
223 _specialProcessButton = buttonList; in processButtonList()
229 if (mouseWheel && buttonList->mouseWheel == mouseWheel) { in processButtonList()
235 buttonList->flags2 &= ~6; in processButtonList()
237 …if ((flags & 0x3300) && (buttonList->flags & 4) && progress && (buttonList == _specialProcessButto… in processButtonList()
238 buttonList->flags |= 6; in processButtonList()
240 _specialProcessButton = buttonList; in processButtonList()
241 } else if ((flags & 0x8800) && !(buttonList->flags & 4) && progress) { in processButtonList()
242 buttonList->flags2 |= 6; in processButtonList()
244 buttonList->flags2 &= ~6; in processButtonList()
252 progressSwitch = (_specialProcessButton == buttonList); in processButtonList()
260 _specialProcessButton = buttonList; in processButtonList()
263 if ((buttonList->flags & flags) && (progress || !(buttonList->flags & 1))) { in processButtonList()
264 uint16 combinedFlags = (buttonList->flags & flags); in processButtonList()
277 …if (!(buttonList->flags & 1) || ((buttonList->flags & 1) && _specialProcessButton == buttonList)) { in processButtonList()
278 buttonList->flags2 ^= 1; in processButtonList()
279 returnValue = buttonList->index | 0x8000; in processButtonList()
283 if (!(buttonList->flags & 4)) { in processButtonList()
284 buttonList->flags2 &= ~4; in processButtonList()
285 buttonList->flags2 &= ~2; in processButtonList()
290 if (!(buttonList->flags & 4)) { in processButtonList()
291 buttonList->flags2 |= 4; in processButtonList()
292 buttonList->flags2 |= 2; in processButtonList()
295 if (!(buttonList->flags & 1)) in processButtonList()
300 if (buttonList->flags & 4) { in processButtonList()
301 buttonList->flags2 |= 4; in processButtonList()
302 buttonList->flags2 |= 2; in processButtonList()
305 if (!(buttonList->flags & 1)) in processButtonList()
311 buttonList->flags2 ^= 1; in processButtonList()
312 returnValue = buttonList->index | 0x8000; in processButtonList()
314 if (buttonList->flags & 4) { in processButtonList()
315 buttonList->flags2 |= 4; in processButtonList()
316 buttonList->flags2 |= 2; in processButtonList()
318 _specialProcessButton = buttonList; in processButtonList()
325 buttonList->flags2 |= 6; in processButtonList()
326 if (!(buttonList->flags & 4) && !(buttonList->flags2 & 1)) { in processButtonList()
328 buttonList->flags2 |= 1; in processButtonList()
334 if (!progress || (buttonList->flags & 4)) in processButtonList()
335 buttonList->flags2 &= ~6; in processButtonList()
338 if (!progress && buttonList == _specialProcessButton && !(buttonList->flags & 0x40)) in processButtonList()
341 if ((buttonList->flags2 & 0x18) != ((buttonList->flags2 & 3) << 3)) in processButtonList()
342 processButton(buttonList); in processButtonList()
345 buttonList->flags2 &= ~1; in processButtonList()
348 buttonList->flags2 &= 0xFF; in processButtonList()
349 buttonList->flags2 |= flags; in processButtonList()
351 if (buttonList->buttonCallback) { in processButtonList()
353 if ((*buttonList->buttonCallback)(buttonList)) in processButtonList()
357 if (buttonList->flags & 0x20) in processButtonList()
361 if (_specialProcessButton == buttonList && (buttonList->flags & 0x40)) in processButtonList()
364 buttonList = buttonList->nextButton; in processButtonList()