Subversion Repositories Kolibri OS

Rev

Rev 3077 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3077 Rev 3107
Line 1... Line 1...
1
//@RB - v0.6
1
//@RB - v0.6
Line 2... Line 2...
2
 
2
 
-
 
3
#include "..\lib\kolibri.h" 
3
#include "..\lib\kolibri.h" 
4
#include "..\lib\strings.h"
4
#include "..\lib\figures.h"
5
#include "..\lib\figures.h"
Line 5... Line 6...
5
#include "..\lib\file_system.h"
6
#include "..\lib\file_system.h"
6
 
7
 
Line 78... Line 79...
78
				if (m.y<0) || (id1+1>items_num) || (m.x<0) || (m.x>ITEM_WIDTH) break;
79
				if (m.y<0) || (id1+1>items_num) || (m.x<0) || (m.x>ITEM_WIDTH) break;
79
				if (m.lkm) || (m.pkm)
80
				if (m.lkm) || (m.pkm)
80
				{
81
				{
81
					//feel clicking
82
					//feel clicking
82
					DrawBar(1, items_cur*ITEM_HEIGHT+2, ITEM_WIDTH-1, ITEM_HEIGHT-2, sc.work_graph);
83
					DrawBar(1, items_cur*ITEM_HEIGHT+2, ITEM_WIDTH-1, ITEM_HEIGHT-2, sc.work_graph);
83
					WriteText(8,items_cur*ITEM_HEIGHT+6,0x80,sc.work_button_text,ITEMS_LIST[items_cur*3],0);
84
					WriteText(8,items_cur*ITEM_HEIGHT+6,0x80,sc.work_button_text,ITEMS_LIST[items_cur*3]);
84
					pause(4);
85
					pause(4);
Line 85... Line 86...
85
					
86
					
86
					ItemProcess(items_cur);
87
					ItemProcess(items_cur);
87
				}
88
				}
Line 127... Line 128...
127
					if (i==items_cur)
128
					if (i==items_cur)
128
					{
129
					{
129
						DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, 1, sc.work_graph);
130
						DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, 1, sc.work_graph);
130
						DrawBar(1, i+1*ITEM_HEIGHT, ITEM_WIDTH-1, 1, 0xFFFfff);
131
						DrawBar(1, i+1*ITEM_HEIGHT, ITEM_WIDTH-1, 1, 0xFFFfff);
131
						DrawBar(1, i*ITEM_HEIGHT+2, ITEM_WIDTH-1, ITEM_HEIGHT-2, sc.work_button);
132
						DrawBar(1, i*ITEM_HEIGHT+2, ITEM_WIDTH-1, ITEM_HEIGHT-2, sc.work_button);
132
						WriteText(8,i*ITEM_HEIGHT+6,0x80,sc.work_button_text,ITEMS_LIST[i*3],0);
133
						WriteText(8,i*ITEM_HEIGHT+6,0x80,sc.work_button_text,ITEMS_LIST[i*3]);
133
					}
134
					}
134
					else
135
					else
135
					{
136
					{
136
						DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, ITEM_HEIGHT, sc.work);
137
						DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, ITEM_HEIGHT, sc.work);
137
						WriteText(8,i*ITEM_HEIGHT+6,0x80,sc.work_text,ITEMS_LIST[i*3],0);
138
						WriteText(8,i*ITEM_HEIGHT+6,0x80,sc.work_text,ITEMS_LIST[i*3]);
138
					}
139
					}
139
				}
140
				}
140
	}
141
	}
141
}
142
}