Rev 7613 | Rev 7765 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7613 | Rev 7628 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | //simple open dialog data |
29 | //simple open dialog data |
30 | char default_dir[] = "/rd/1"; |
30 | char default_dir[] = "/rd/1"; |
Line 31... | Line 31... | ||
31 | od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" }; |
31 | od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" }; |
Line 32... | Line 32... | ||
32 | 32 | ||
33 | #define ABOUT_MESSAGE "Pixie Player v2.93 Final |
33 | #define ABOUT_MESSAGE " v2.94 Final |
Line 34... | Line 34... | ||
34 | 34 | ||
Line 131... | Line 131... | ||
131 | loop() |
131 | loop() |
132 | { |
132 | { |
133 | WaitEventTimeout(10); |
133 | WaitEventTimeout(10); |
134 | switch(EAX & 0xFF) { |
134 | switch(EAX & 0xFF) { |
135 | case evMouse: |
135 | case evMouse: |
136 | if (!CheckActiveProcess(Form.ID)) break; |
- | |
137 | mouse.get(); |
136 | mouse.get(); |
138 | scrollbar_v_mouse (#scroll1); |
137 | scrollbar_v_mouse (#scroll1); |
139 | if (list.first != scroll1.position) |
138 | if (list.first != scroll1.position) |
140 | { |
139 | { |
141 | list.first = scroll1.position; |
140 | list.first = scroll1.position; |
Line 146... | Line 145... | ||
146 | { |
145 | { |
147 | if (mouse.vert) && (list.MouseScroll(mouse.vert)) DrawPlayList(); |
146 | if (mouse.vert) && (list.MouseScroll(mouse.vert)) DrawPlayList(); |
148 | if (mouse.dblclick) EventStartPlayingSelectedItem(); |
147 | if (mouse.dblclick) EventStartPlayingSelectedItem(); |
149 | if (mouse.down) && (mouse.key&MOUSE_LEFT) |
148 | if (mouse.down) && (mouse.key&MOUSE_LEFT) |
150 | && (list.ProcessMouse(mouse.x, mouse.y)) DrawPlayList(); |
149 | && (list.ProcessMouse(mouse.x, mouse.y)) DrawPlayList(); |
151 | if (mouse.down) && (mouse.key&MOUSE_RIGHT) EventShowAbout(); |
- | |
152 | } |
150 | } |
153 | if(mouse.key&MOUSE_LEFT) && (mouse.x<14) |
151 | if(mouse.key&MOUSE_LEFT) && (mouse.x<14) |
154 | && (window_mode == WINDOW_MODE_SMALL) EventDragWindow(); |
152 | && (window_mode == WINDOW_MODE_SMALL) EventDragWindow(); |
- | 153 | if (mouse.down) && (mouse.y>skin_height) && (mouse.key&MOUSE_RIGHT) EventShowAbout(); |
|
155 | break; |
154 | break; |
156 | case evButton: |
155 | case evButton: |
157 | switch(GetButtonID()) { |
156 | switch(GetButtonID()) { |
158 | case BUTTON_WINDOW_CLOSE: EventExitApp(); break; |
157 | case BUTTON_WINDOW_CLOSE: EventExitApp(); break; |
159 | case BUTTON_WINDOW_MINIMIZE: MinimizeWindow(); break; |
158 | case BUTTON_WINDOW_MINIMIZE: MinimizeWindow(); break; |
Line 553... | Line 552... | ||
553 | case evKey: |
552 | case evKey: |
554 | GetKeys(); |
553 | GetKeys(); |
555 | if (key_scancode == SCAN_CODE_ESC) ExitProcess(); |
554 | if (key_scancode == SCAN_CODE_ESC) ExitProcess(); |
556 | break; |
555 | break; |
557 | case evReDraw: |
556 | case evReDraw: |
558 | DefineDragableWindow(150, 200, 400, 368); |
557 | DefineDragableWindow(150, 200, 400, 400); |
559 | GetProcessInfo(#pop_up, SelfInfo); |
558 | GetProcessInfo(#pop_up, SelfInfo); |
Line 560... | Line 559... | ||
560 | 559 | ||
561 | DrawBar(0, 0, pop_up.width, pop_up.height, theme.color_top_panel_bg); |
560 | DrawBar(0, 0, pop_up.width, pop_up.height, theme.color_top_panel_bg); |
Line 562... | Line 561... | ||
562 | DrawRectangle(0, 0, pop_up.width, pop_up.height, theme.color_list_border); |
561 | DrawRectangle(0, 0, pop_up.width, pop_up.height, theme.color_list_border); |
563 | 562 | ||
564 | DefineHiddenButton(pop_up.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); |
563 | DefineHiddenButton(pop_up.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); |
565 | img_draw stdcall(skin.image, pop_up.width-28, 0, 28, 18, skin.w - 29, 0); |
564 | //img_draw stdcall(skin.image, pop_up.width-28, 0, 28, 18, skin.w - 29, 0); |
Line -... | Line 565... | ||
- | 565 | DrawCaptButton(pop_up.width-10-80, pop_up.height - 34, 80, 24, 2, |
|
- | 566 | 0x171717, 0xF5EFB3, "Cool"); |
|
- | 567 | ||
566 | DrawCaptButton(pop_up.width-10-80, pop_up.height - 34, 80, 24, 2, |
568 | WriteText(131,16, 0x81, 0x8E7C61, "Pixie Player"); |
567 | theme.color_list_active_bg, theme.color_top_panel_song_name, "Cool"); |
569 | WriteText(130,15, 0x81, 0xF5EFB3, "Pixie Player"); |
- | 570 | ||
Line 568... | Line 571... | ||
568 | 571 | WriteTextLines(10, 40, 0x90, theme.color_top_panel_song_name, ABOUT_MESSAGE, 19); |
|
569 | WriteTextLines(10, 10, 0x90, theme.color_top_panel_song_name, ABOUT_MESSAGE, 19); |
572 | DrawIcon32(45, 15, theme.color_top_panel_bg, 65); |
Line 570... | Line 573... | ||
570 | DrawIcon32(10, 48, theme.color_top_panel_bg, 65); |
573 | DrawIcon32(pop_up.width-32-45, 15, theme.color_top_panel_bg, 65); |