Subversion Repositories Kolibri OS

Rev

Rev 7232 | Rev 7348 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6920 leency 1
#define MEMSIZE 4096 * 50
2
 
3
//===================================================//
4
//                                                   //
5
//                       LIB                         //
6
//                                                   //
7
//===================================================//
8
 
7219 leency 9
#include "../lib/fs.h"
6920 leency 10
#include "../lib/list_box.h"
11
#include "../lib/gui.h"
7183 leency 12
#include "../lib/random.h"
7182 leency 13
#include "../lib/kfont.h"
6920 leency 14
 
7049 leency 15
#include "../lib/obj/libio.h"
16
#include "../lib/obj/libimg.h"
6920 leency 17
#include "../lib/obj/libini.h"
7182 leency 18
#include "../lib/obj/proc_lib.h"
19
#include "../lib/obj/box_lib.h"
6920 leency 20
 
21
#include "../lib/patterns/simple_open_dialog.h"
22
 
23
//===================================================//
24
//                                                   //
25
//                       DATA                        //
26
//                                                   //
27
//===================================================//
28
 
29
//simple open dialog data
30
char default_dir[] = "/rd/1";
7189 leency 31
od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" };
6920 leency 32
 
7347 leency 33
#define ABOUT_MESSAGE "Pixie Player v2.91 Final
7189 leency 34
 
7229 leency 35
     A tiny music folder player.
36
     Supports MP3, WAV, XM audio file formats.
6920 leency 37
 
7229 leency 38
Hot keys:
39
 Open file: O key
40
 Play/Stop: Space or P key
41
 Start playing selected file: Enter
42
 Goto next/previous track: Ctrl + Left/Right
43
 Change sound volume: Left/Right key
44
 Remove from the list: Delete
7347 leency 45
 Permanently delete file: Shift + Delete
7229 leency 46
 Repeat: R
47
 Shuffle: S
48
 Mute: M
6920 leency 49
 
7189 leency 50
kolibri-n.org & aspero.pro"
6920 leency 51
 
7189 leency 52
scroll_bar scroll1 = { 5,200,398,44,0,2,115,15,0,0xeeeeee,0xBBBbbb,0xeeeeee,
53
	0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
54
 
6920 leency 55
proc_info Form;
56
llist list;
57
 
58
char pixie_ini_path[4096];
59
char work_folder[4096];
60
char current_filename[256];
61
 
62
enum {
63
	BUTTON_WINDOW_CLOSE = 1,
64
	BUTTON_WINDOW_MINIMIZE,
65
	BUTTON_WINDOW_REDUCE,
66
	BUTTON_PLAYBACK_PLAY_PAUSE = 10,
67
	BUTTON_PLAYBACK_PREV,
68
	BUTTON_PLAYBACK_NEXT,
7183 leency 69
	BUTTON_REPEAT,
70
	BUTTON_SHUFFLE,
6920 leency 71
	BUTTON_OPEN_DIALOG,
72
	BUTTON_SHOW_VOLUME
73
};
74
 
75
int player_run_id;
76
int notify_run_id;
77
 
7183 leency 78
bool repeat;
79
bool shuffle;
80
 
6920 leency 81
int current_playing_file_n=0;
82
 
83
word win_x_normal, win_y_normal;
84
word win_x_small, win_y_small;
85
 
86
byte window_mode;
87
enum {
88
	WINDOW_MODE_NORMAL,
89
	WINDOW_MODE_SMALL
90
};
91
 
92
byte playback_mode;
93
enum {
94
	PLAYBACK_MODE_STOPED,
95
	PLAYBACK_MODE_PLAYING
96
};
97
 
7192 leency 98
#define LAST_FOLDER_EXISTS 1
99
 
6920 leency 100
//===================================================//
101
//                                                   //
102
//                       CODE                        //
103
//                                                   //
104
//===================================================//
105
 
106
#include "get_files_list.h"
107
#include "settings.h"
108
 
109
void LoadLibraries()
110
{
111
	load_dll(boxlib, #box_lib_init,0);
112
	load_dll(libio, #libio_init,1);
113
	load_dll(libimg, #libimg_init,1);
114
	load_dll(libini, #lib_init,1);
115
	load_dll(Proc_lib, #OpenDialog_init,0);
7182 leency 116
	OpenDialog_init stdcall (#o_dialog);
6920 leency 117
}
118
 
119
void main()
120
{
7183 leency 121
	list.SetFont(8, 16, 13);
6920 leency 122
	LoadLibraries();
123
	LoadIniConfig();
7192 leency 124
	if (work_folder) param=LAST_FOLDER_EXISTS;
125
	if (!param) notify("'Pixie Player\nPress O key to open MP3/WAV/XM file' -St");
7182 leency 126
	kfont.init(DEFAULT_FONT);
127
	SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
6920 leency 128
	loop()
129
	{
130
	  WaitEventTimeout(10);
131
	  switch(EAX & 0xFF) {
132
	  	case evMouse:
133
			if (!CheckActiveProcess(Form.ID)) break;
134
			mouse.get();
135
			scrollbar_v_mouse (#scroll1);
136
			if (list.first != scroll1.position)
137
			{
138
				list.first = scroll1.position;
139
				DrawPlayList();
140
				break;
141
			}
142
			if (list.MouseOver(mouse.x, mouse.y))
143
			{
144
				if (mouse.vert) && (list.MouseScroll(mouse.vert)) DrawPlayList();
145
				if (mouse.dblclick) EventStartPlayingSelectedItem();
7189 leency 146
				if (mouse.down) && (mouse.key&MOUSE_LEFT)
147
					&& (list.ProcessMouse(mouse.x, mouse.y)) DrawPlayList();
7229 leency 148
				if (mouse.down) && (mouse.key&MOUSE_RIGHT) EventShowAbout();
6920 leency 149
			}
7189 leency 150
			if(mouse.key&MOUSE_LEFT) && (mouse.x<14)
151
				&& (window_mode == WINDOW_MODE_SMALL) EventDragWindow();
6920 leency 152
			break;
153
		case evButton:
154
			switch(GetButtonID()) {
155
				case BUTTON_WINDOW_CLOSE: EventExitApp(); break;
156
				case BUTTON_WINDOW_MINIMIZE: MinimizeWindow(); break;
157
				case BUTTON_WINDOW_REDUCE: EventChangeWindowMode(); break;
158
				case BUTTON_PLAYBACK_PREV: EventPlaybackPrevious();	break;
159
				case BUTTON_PLAYBACK_NEXT: EventPlaybackNext(); break;
160
				case BUTTON_PLAYBACK_PLAY_PAUSE: EventPlayAndPause(); break;
7183 leency 161
				case BUTTON_REPEAT: EventRepeatClick(); break;
7192 leency 162
				case BUTTON_SHUFFLE: EventShuffleClick(); break;
6920 leency 163
				case BUTTON_OPEN_DIALOG: EventFileDialogOpen(); break;
164
				case BUTTON_SHOW_VOLUME: RunProgram("/sys/@VOLUME", NULL); break;
165
			}
166
			break;
167
		case evKey:
168
			GetKeys();
169
			if (key_modifier&KEY_LCTRL) || (key_modifier&KEY_RCTRL) {
170
				if (key_scancode==SCAN_CODE_LEFT) EventPlaybackPrevious();
171
				if (key_scancode==SCAN_CODE_RIGHT) EventPlaybackNext();
172
				break;
7347 leency 173
			}
174
			if (key_modifier&KEY_LSHIFT) || (key_modifier&KEY_RSHIFT) {
175
				if (key_scancode==SCAN_CODE_DEL) EventPermanentlyDeleteFile();
176
				break;
177
			}
6920 leency 178
			if (key_scancode==SCAN_CODE_KEY_O) EventFileDialogOpen();
179
			if (key_scancode==SCAN_CODE_KEY_M) RunProgram("/sys/@VOLUME", "m");
7192 leency 180
			if (key_scancode==SCAN_CODE_KEY_R) EventRepeatClick();
181
			if (key_scancode==SCAN_CODE_KEY_S) EventShuffleClick();
6920 leency 182
			if (key_scancode==SCAN_CODE_RIGHT) RunProgram("/sys/@VOLUME", "+");
183
			if (key_scancode==SCAN_CODE_LEFT)  RunProgram("/sys/@VOLUME", "-");
184
			if (key_scancode==SCAN_CODE_ENTER) EventStartPlayingSelectedItem();
7347 leency 185
			if (key_scancode==SCAN_CODE_DEL) EventRemoveItemFromList();
7189 leency 186
			if (key_scancode==SCAN_CODE_KEY_P)||(key_scancode==SCAN_CODE_SPACE) EventPlayAndPause();
7229 leency 187
			if (key_scancode==SCAN_CODE_F1) EventShowAbout();
6920 leency 188
			if (list.ProcessKey(key_scancode)) DrawPlayList();
189
			break;
190
		case evReDraw:
7189 leency 191
			if (window_mode == WINDOW_MODE_NORMAL)
192
				DefineDragableWindow(win_x_normal, win_y_normal, skin.w - 1, skin.h + list.h-1);
193
			if (window_mode == WINDOW_MODE_SMALL)
194
				DefineDragableWindow(win_x_small, win_y_small, WIN_W_SMALL, WIN_H_SMALL);
6920 leency 195
			draw_window();
196
			if (param[0]) {
7192 leency 197
				if (param==LAST_FOLDER_EXISTS) EventOpenFolder(NULL);
198
				else EventOpenFolder(#param);
6920 leency 199
				param[0] = NULL;
200
			}
201
			break;
202
		default:
203
			EventCheckSongFinished();
204
	  }
205
   }
206
}
207
 
208
 
209
void DrawPlayList()
210
{
211
	int i;
212
	int yyy;
7196 leency 213
	int kfont_width;
6920 leency 214
	char temp_filename[4096];
7182 leency 215
	dword text_color, bg_color;
6920 leency 216
	for (i=0; i
217
	{
218
		strcpy(#temp_filename, files_mas[i + list.first] * 304 + buf + 72);
7189 leency 219
		temp_filename[strrchr(#temp_filename, '.')-1] = '\0';
6920 leency 220
 
221
		yyy = i*list.item_h+list.y;
222
 
223
		//this is selected file
224
		if (list.cur_y - list.first == i)
225
		{
226
			if (i>=list.count) continue;
7182 leency 227
			bg_color = theme.color_list_active_bg;
228
			text_color = theme.color_list_text;
6920 leency 229
		}
230
		//this is not selected file
231
		else
232
		{
233
			if (i>=list.count) continue;
7182 leency 234
			bg_color = theme.color_list_bg;
235
			text_color = theme.color_list_text;
6920 leency 236
		}
237
		//this is cur_y playing file
7189 leency 238
		if (i + list.first == current_playing_file_n)
239
		&& (playback_mode == PLAYBACK_MODE_PLAYING)
6920 leency 240
		{
7182 leency 241
			text_color = theme.color_list_active_text;
6920 leency 242
		}
7182 leency 243
		DrawBar(list.x, yyy, list.w, list.item_h, bg_color);
7196 leency 244
		kfont_width = kfont.WriteIntoWindow(6, yyy+list.text_y, bg_color,
7189 leency 245
			text_color, list.font_type, #temp_filename);
7196 leency 246
		if (kfont_width>skin.w-15) DrawBar(skin.w-1, yyy, 1, list.item_h, theme.color_list_border);
6920 leency 247
	}
7189 leency 248
	DrawBar(list.x,list.visible * list.item_h + list.y, list.w,
249
		-list.visible * list.item_h + list.h, theme.color_list_bg);
6920 leency 250
	DrawScroller();
251
}
252
 
253
 
254
void draw_window() {
255
	GetProcessInfo(#Form, SelfInfo);
256
	DrawTopPanel();
257
	IF (Form.status_window>=2) return;
258
	if (window_mode == WINDOW_MODE_NORMAL)
259
	{
260
		DrawPlayList();
261
		DrawRectangle(0, skin.h-1, skin.w-1, list.h+1, theme.color_list_border);
262
	}
263
}
264
 
265
void DrawTopPanel()
266
{
7196 leency 267
	int kfont_width;
6920 leency 268
	int button_y;
269
	//Mode depended
270
	if (window_mode == WINDOW_MODE_NORMAL)
271
	{
7182 leency 272
		button_y = 46;
6920 leency 273
		img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0);
7189 leency 274
		if (playback_mode != PLAYBACK_MODE_STOPED)
7200 leency 275
			img_draw stdcall(skin.image, 47, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1);
7189 leency 276
		if (repeat)
7200 leency 277
			img_draw stdcall(skin.image, 217, button_y+2, 17,17,skin.w+43, WIN_H_SMALL+1);
7189 leency 278
		if (shuffle)
7200 leency 279
			img_draw stdcall(skin.image, 236, button_y+2, 17,17, skin.w+62, WIN_H_SMALL+1);
7183 leency 280
 
7189 leency 281
		if (!work_folder) DrawPixieTitle("Pixie");
7166 leency 282
		else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/'));
7196 leency 283
		kfont_width = kfont.WriteIntoWindow(8, 24, theme.color_top_panel_bg,
284
			theme.color_top_panel_song_name, list.font_type, #current_filename);
285
		if (kfont_width>skin.w-15) DrawBar(skin.w-1, 24, 1, list.item_h, theme.color_list_border);
7166 leency 286
	 	//Playing control buttons
7183 leency 287
		DefineHiddenButton(7, button_y, 38, 20, BUTTON_PLAYBACK_PREV);
7200 leency 288
		DefineHiddenButton(48, button_y, 38, 20, BUTTON_PLAYBACK_PLAY_PAUSE);
7183 leency 289
		DefineHiddenButton(87, button_y, 38, 20, BUTTON_PLAYBACK_NEXT);
7166 leency 290
		//Window control buttons
7183 leency 291
		DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE);
292
		DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE);
293
		DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE);
294
		//Other buttons
7200 leency 295
		DefineHiddenButton(218, button_y+3, 17, 16, BUTTON_REPEAT);
296
		DefineHiddenButton(237, button_y+3, 17, 16, BUTTON_SHUFFLE);
297
		DefineHiddenButton(270, button_y+3, 17, 16, BUTTON_OPEN_DIALOG);
298
		DefineHiddenButton(289, button_y+3, 17, 16, BUTTON_SHOW_VOLUME);
6920 leency 299
	}
300
	else if (window_mode == WINDOW_MODE_SMALL)
301
	{
7166 leency 302
		button_y = 7;
6920 leency 303
		img_draw stdcall(skin.image, 0, 0, WIN_W_SMALL, WIN_H_SMALL, skin.w-1, 0);
7196 leency 304
		if (playback_mode != PLAYBACK_MODE_STOPED)
305
			img_draw stdcall(skin.image, 46, button_y-1, 27, 19, skin.w+83, WIN_H_SMALL+1);
6920 leency 306
		DefineHiddenButton(0, 0, WIN_W_SMALL, WIN_H_SMALL, 99 + BT_NOFRAME);
7166 leency 307
	 	//Playing control buttons
7189 leency 308
		DefineHiddenButton(20, button_y, 24, 16, BUTTON_PLAYBACK_PREV);
309
		DefineHiddenButton(46, button_y, 24, 16, BUTTON_PLAYBACK_PLAY_PAUSE);
310
		DefineHiddenButton(72, button_y, 24, 16, BUTTON_PLAYBACK_NEXT);
7166 leency 311
		//Window control buttons
312
		DefineHiddenButton(Form.width - 20, 1, 19, 13, BUTTON_WINDOW_CLOSE);
313
		DefineHiddenButton(Form.width - 20, 16, 19, 13, BUTTON_WINDOW_REDUCE);
6920 leency 314
	}
315
}
316
 
317
 
318
void DrawScroller()
319
{
320
	scroll1.max_area = list.count;
321
	scroll1.cur_area = list.visible;
322
	scroll1.position = list.first;
323
	scroll1.all_redraw = 0;
324
	scroll1.start_x = skin.w - scroll1.size_x-1;
325
	scroll1.start_y = list.y-1;
326
	scroll1.size_y = list.h+2;
327
	if (list.count > list.visible) scrollbar_v_draw(#scroll1);
328
}
329
 
330
void DrawPixieTitle(dword _title)
331
{
7189 leency 332
	kfont.WriteIntoWindow(8, 5, theme.color_top_panel_bg,
333
		theme.color_top_panel_folder_name, list.font_type, _title);
6920 leency 334
}
335
 
336
//===================================================//
337
//                                                   //
338
//                     EVENTS                        //
339
//                                                   //
340
//===================================================//
341
 
342
 
343
void EventOpenFolder(dword _open_path)
344
{
7192 leency 345
	if (!_open_path)
6920 leency 346
	{
7192 leency 347
		OpenDirectory(#work_folder);
348
	}
349
	else
350
	{
6920 leency 351
		strcpy(#work_folder, _open_path);
352
		work_folder[strrchr(#work_folder, '/')-1]='\0';
353
		OpenDirectory(#work_folder);
354
		SetOpenedFileFirst(_open_path);
355
	}
356
	list.SetSizes(1, skin.h, skin.w-1, 22*15, 22);
357
	if (list.count <= list.visible)
358
	{
359
		list.h = list.count * list.item_h;
360
		list.visible = list.count;
361
		list.w -= 1;
362
	}
363
	else
364
	{
365
		list.w -= scroll1.size_x;
366
	}
7196 leency 367
	if (window_mode==WINDOW_MODE_NORMAL) MoveSize(OLD, OLD, OLD, skin.h + list.h);
6920 leency 368
	list.KeyHome();
369
	current_playing_file_n=0;
7196 leency 370
	EventStopPlaying();
371
	if (_open_path) EventStartPlaying();
6920 leency 372
}
373
 
374
 
7196 leency 375
void EventStopPlaying()
6920 leency 376
{
377
	if (player_run_id) player_run_id = KillProcess(player_run_id);
378
	if (notify_run_id) notify_run_id = KillProcess(notify_run_id);
379
	playback_mode = PLAYBACK_MODE_STOPED;
380
	DrawTopPanel();
381
	DrawPlayList();
382
}
383
 
384
 
7196 leency 385
void EventStartPlaying()
6920 leency 386
{
387
	word i;
388
	char item_path[4096];
389
	char notify_message[512];
7196 leency 390
	EventStopPlaying();
7182 leency 391
	if (current_playing_file_n >= list.count) {
392
		current_playing_file_n = list.count-1;
6920 leency 393
		return;
394
	}
395
	if (current_playing_file_n < 0) {
396
		current_playing_file_n = 0;
397
		return;
398
	}
399
	playback_mode = PLAYBACK_MODE_PLAYING;
7347 leency 400
	strlcpy(#current_filename, GetPlayingItemName(), sizeof(current_filename));
7177 leency 401
	sprintf(#item_path,"-h %s/%s",#work_folder,#current_filename);
7196 leency 402
	current_filename[strrchr(#current_filename, '.')-1] = '\0';
6920 leency 403
	DrawPlayList();
404
	DrawTopPanel();
7182 leency 405
	player_run_id = RunProgram("/sys/media/ac97snd", #item_path);
6920 leency 406
	sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename);
7196 leency 407
	if (!repeat) && (window_mode==WINDOW_MODE_SMALL)
7183 leency 408
	{
409
		for (i=2; i
7189 leency 410
		{
411
			//replace ' char to avoid @notify misunderstood
412
			if (notify_message[i]=='\'') notify_message[i]=96;
413
		}
7183 leency 414
		notify_run_id = notify(#notify_message);
415
	}
6920 leency 416
}
417
 
418
 
419
void EventPlayAndPause()
420
{
421
	if (playback_mode == PLAYBACK_MODE_PLAYING)
422
	{
423
		playback_mode = PLAYBACK_MODE_STOPED;
7196 leency 424
		EventStopPlaying();
6920 leency 425
	}
426
	else
427
	{
428
		playback_mode = PLAYBACK_MODE_PLAYING;
7196 leency 429
		EventStartPlaying();
6920 leency 430
	}
431
}
432
 
433
 
434
void EventChangeWindowMode()
435
{
436
	if (window_mode == WINDOW_MODE_NORMAL)
437
	{
438
		window_mode = WINDOW_MODE_SMALL;
439
		win_x_normal = Form.left;
440
		win_y_normal = Form.top;
441
		MoveSize(OLD, OLD, WIN_W_SMALL-1, WIN_H_SMALL-1);
442
		MoveSize(OLD, win_y_small, OLD, OLD);
443
		MoveSize(win_x_small, OLD, OLD, OLD);
444
	}
445
	else
446
	{
447
		window_mode = WINDOW_MODE_NORMAL;
448
		win_x_small = Form.left;
449
		win_y_small = Form.top;
450
		MoveSize(win_x_normal, win_y_normal, skin.w -1 ,skin.h + list.h);
451
	}
452
}
453
 
454
void EventExitApp()
455
{
7196 leency 456
	EventStopPlaying();
6920 leency 457
	SaveIniConfig();
458
	ExitProcess();
459
}
460
 
461
void EventPlaybackPrevious()
462
{
7183 leency 463
	if (shuffle) current_playing_file_n = random(list.count);
464
	else current_playing_file_n--;
7196 leency 465
	EventStartPlaying();
6920 leency 466
}
467
 
468
void EventPlaybackNext()
469
{
7183 leency 470
	if (shuffle) current_playing_file_n = random(list.count);
471
	else current_playing_file_n++;
7196 leency 472
	EventStartPlaying();
6920 leency 473
}
474
 
475
void EventStartPlayingSelectedItem()
476
{
477
	current_playing_file_n=list.cur_y;
7196 leency 478
	EventStartPlaying();
6920 leency 479
}
480
 
481
void EventFileDialogOpen()
482
{
483
	OpenDialog_start stdcall (#o_dialog);
484
	if (o_dialog.status==1) EventOpenFolder(#openfile_path);
485
}
486
 
487
void EventCheckSongFinished()
488
{
7189 leency 489
	if (playback_mode == PLAYBACK_MODE_PLAYING)
490
	&& (!GetProcessSlot(player_run_id)) {
7196 leency 491
		if (repeat) EventStartPlaying();
7183 leency 492
		else EventPlaybackNext();
6920 leency 493
	}
494
}
495
 
7183 leency 496
void EventRepeatClick()
497
{
498
	repeat ^= 1;
499
	DrawTopPanel();
500
}
6920 leency 501
 
7192 leency 502
void EventShuffleClick()
7183 leency 503
{
504
	shuffle ^= 1;
505
	DrawTopPanel();
506
}
507
 
7347 leency 508
void EventRemoveItemFromList()
7196 leency 509
{
510
	int i;
511
	if (list.cur_y == current_playing_file_n) EventStopPlaying();
512
	for (i=list.cur_y; i
513
	list.count--;
7202 leency 514
	if (list.cur_y <= current_playing_file_n) current_playing_file_n--;
7196 leency 515
	list.CheckDoesValuesOkey();
516
	if (list.count <= list.visible)
517
	{
518
		list.h = list.count * list.item_h;
519
		list.visible = list.count;
520
		if (window_mode==WINDOW_MODE_NORMAL) MoveSize(OLD, OLD, OLD, skin.h + list.h);
521
	}
522
	else DrawPlayList();
523
}
524
 
7347 leency 525
void EventPermanentlyDeleteFile()
526
{
527
	char item_path[4096];
528
	sprintf(#item_path,"%s/%s",#work_folder,GetSelectedItemName());
529
	DeleteFile(#item_path);
530
	EventRemoveItemFromList();
531
}
532
 
7189 leency 533
void EventShowAbout()
534
{
7229 leency 535
	CreateThread(#ShowAboutThread,#menu_stak+4092);
536
}
537
 
538
void ShowAboutThread()
539
{
7189 leency 540
	proc_info pop_up;
541
	loop() switch(WaitEvent())
542
	{
543
		case evButton:
544
			ExitProcess();
545
			break;
546
		case evKey:
547
			GetKeys();
548
			if (key_scancode == SCAN_CODE_ESC) ExitProcess();
549
			break;
550
		case evReDraw:
7347 leency 551
			DefineDragableWindow(150, 200, 400, 368);
7189 leency 552
			GetProcessInfo(#pop_up, SelfInfo);
7229 leency 553
 
7189 leency 554
			DrawBar(0, 0, pop_up.width, pop_up.height, theme.color_top_panel_bg);
555
			DrawRectangle(0, 0, pop_up.width, pop_up.height, theme.color_list_border);
556
 
557
			DefineHiddenButton(pop_up.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE);
558
			img_draw stdcall(skin.image, pop_up.width-28, 0, 28, 18, skin.w - 29, 0);
7192 leency 559
			DrawCaptButton(pop_up.width-10-80, pop_up.height - 34, 80, 24, 2,
560
			  theme.color_list_active_bg, theme.color_top_panel_song_name, "Cool");
7229 leency 561
 
562
			WriteTextLines(10, 10, 0x90, theme.color_top_panel_song_name, ABOUT_MESSAGE, 19);
563
			DrawIcon32(10, 48, theme.color_top_panel_bg, 65);
564
 
7189 leency 565
	}
566
}
567
 
568
 
6920 leency 569
stop:
570
 
571
char menu_stak[4096];