| 517 | } |
| 518 | |
| 519 | static void Window_WidgetClick_Create(void) |
| 520 | { |
| 521 | WidgetInfo *wi; |
| 522 | |
| 523 | for (wi = g_table_gameWidgetInfo; wi->index >= 0; wi++) { |
| 524 | Widget *w; |
| 525 | |
| 526 | w = GUI_Widget_Allocate(wi->index, wi->shortcut, wi->offsetX, wi->offsetY, wi->spriteID, wi->stringID); |
| 527 | |
| 528 | if (wi->spriteID < 0) { |
| 529 | w->width = wi->width; |
| 530 | w->height = wi->height; |
| 531 | } |
| 532 | |
| 533 | w->clickProc = wi->clickProc; |
| 534 | w->flags.requiresClick = (wi->flags & 0x0001) ? true : false; |
| 535 | w->flags.notused1 = (wi->flags & 0x0002) ? true : false; |
| 536 | w->flags.clickAsHover = (wi->flags & 0x0004) ? true : false; |
| 537 | w->flags.invisible = (wi->flags & 0x0008) ? true : false; |
| 538 | w->flags.greyWhenInvisible = (wi->flags & 0x0010) ? true : false; |
| 539 | w->flags.noClickCascade = (wi->flags & 0x0020) ? true : false; |
| 540 | w->flags.loseSelect = (wi->flags & 0x0040) ? true : false; |
| 541 | w->flags.notused2 = (wi->flags & 0x0080) ? true : false; |
| 542 | w->flags.buttonFilterLeft = (wi->flags >> 8) & 0x0f; |
| 543 | w->flags.buttonFilterRight = (wi->flags >> 12) & 0x0f; |
| 544 | |
| 545 | g_widgetLinkedListHead = GUI_Widget_Insert(g_widgetLinkedListHead, w); |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | static void ReadProfileIni(const char *filename) |
| 550 | { |
no test coverage detected