equal
deleted
inserted
replaced
25 #include "strings.h" |
25 #include "strings.h" |
26 |
26 |
27 typedef enum BuildTrainWidgets { |
27 typedef enum BuildTrainWidgets { |
28 BUILD_TRAIN_WIDGET_CLOSEBOX = 0, |
28 BUILD_TRAIN_WIDGET_CLOSEBOX = 0, |
29 BUILD_TRAIN_WIDGET_CAPTION, |
29 BUILD_TRAIN_WIDGET_CAPTION, |
30 BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESENTING, |
30 BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESCENDING, |
31 BUILD_TRAIN_WIDGET_SORT_TEXT, |
31 BUILD_TRAIN_WIDGET_SORT_TEXT, |
32 BUILD_TRAIN_WIDGET_SORT_DROPDOWN, |
32 BUILD_TRAIN_WIDGET_SORT_DROPDOWN, |
33 BUILD_TRAIN_WIDGET_LIST, |
33 BUILD_TRAIN_WIDGET_LIST, |
34 BUILD_TRAIN_WIDGET_SCROLLBAR, |
34 BUILD_TRAIN_WIDGET_SCROLLBAR, |
35 BUILD_TRAIN_WIDGET_PANEL, |
35 BUILD_TRAIN_WIDGET_PANEL, |
561 break; |
561 break; |
562 |
562 |
563 |
563 |
564 case WE_CLICK: { |
564 case WE_CLICK: { |
565 switch (e->we.click.widget) { |
565 switch (e->we.click.widget) { |
566 case BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESENTING: |
566 case BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESCENDING: |
567 WP(w,buildvehicle_d).decenting_sort_order = !WP(w,buildvehicle_d).decenting_sort_order; |
567 WP(w,buildvehicle_d).decenting_sort_order = !WP(w,buildvehicle_d).decenting_sort_order; |
568 _last_sort_order = WP(w,buildvehicle_d).decenting_sort_order; |
568 _last_sort_order = WP(w,buildvehicle_d).decenting_sort_order; |
569 SortTrainBuildList(w); |
569 SortTrainBuildList(w); |
570 SetWindowDirty(w); |
570 SetWindowDirty(w); |
571 break; |
571 break; |