Rev 7806 | Rev 8779 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7806 | Rev 7984 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | if (!select_list.count) WriteText(-strlen(T_SELECT_LIST_NO_DATA)*select_list.font_w + select_list.w / 2 + select_list.x + 1, |
27 | if (!select_list.count) WriteText(-strlen(T_SELECT_LIST_NO_DATA)*select_list.font_w + select_list.w / 2 + select_list.x + 1, |
28 | select_list.h / 2 - 8 + select_list.y, select_list.font_type, 0x999999, T_SELECT_LIST_NO_DATA); |
28 | select_list.h / 2 - 8 + select_list.y, select_list.font_type, 0x999999, T_SELECT_LIST_NO_DATA); |
29 | SelectList_DrawScroller(); |
29 | SelectList_DrawScroller(); |
30 | } |
30 | } |
Line 31... | Line 31... | ||
31 | 31 | ||
32 | void SelectList_ProcessMouse() |
32 | signed SelectList_ProcessMouse() |
33 | { |
- | |
34 | int mouse_clicked; |
33 | { |
35 | mouse.get(); |
34 | mouse.get(); |
36 | scrollbar_v_mouse (#scroll1); |
35 | scrollbar_v_mouse (#scroll1); |
37 | if (select_list.first != scroll1.position) |
36 | if (select_list.first != scroll1.position) |
38 | { |
37 | { |
39 | select_list.first = scroll1.position; |
38 | select_list.first = scroll1.position; |
40 | SelectList_Draw(); |
39 | SelectList_Draw(); |
Line 41... | Line 40... | ||
41 | } |
40 | } |
Line 42... | Line 41... | ||
42 | 41 | ||
43 | if (mouse.vert) && (select_list.MouseScroll(mouse.vert)) SelectList_Draw(); |
- | |
44 | 42 | if (mouse.vert) && (select_list.MouseScroll(mouse.vert)) SelectList_Draw(); |
|
45 | if (mouse.up)&&(mouse_clicked) |
43 | |
46 | { |
44 | if (mouse.up) && (mouse.lkm) |
47 | if (mouse.lkm) && (select_list.ProcessMouse(mouse.x, mouse.y)) SelectList_LineChanged(); |
- | |
48 | mouse_clicked=false; |
45 | if (select_list.ProcessMouse(mouse.x, mouse.y)) { |
Line 49... | Line 46... | ||
49 | } |
46 | SelectList_LineChanged(); |
50 | else if (mouse.down)&&(mouse.lkm) && (select_list.MouseOver(mouse.x, mouse.y)) mouse_clicked=true; |
47 | } |
51 | } |
48 | } |