Subversion Repositories Kolibri OS

Rev

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

Rev 255 Rev 485
Line 3... Line 3...
3
;-------------------------------------------------
3
;-------------------------------------------------
4
panel_interraction:
4
panel_interraction:
5
	;>>>>>>>>>>>>>>>>>>>>>>>>>>
5
	;>>>>>>>>>>>>>>>>>>>>>>>>>>
6
	mov eax,18
6
	mov eax,18
7
	mov ebx,14
7
	mov ebx,14
8
	;int 0x40
8
	;mcall
Line 9... Line 9...
9
 
9
 
10
	and [Panel_flag],0
10
	and [Panel_flag],0
11
	;collision with text on panel
11
	;collision with text on panel
Line 48... Line 48...
48
	test eax,eax
48
	test eax,eax
49
	jz no_mouse_pressed
49
	jz no_mouse_pressed
Line 50... Line 50...
50
 
50
 
51
	mov eax,18
51
	mov eax,18
52
	mov ebx,14
52
	mov ebx,14
Line 53... Line 53...
53
	;int 0x40
53
	;mcall
Line 54... Line 54...
54
 
54
 
Line 90... Line 90...
90
	next_icon_delit1:
90
	next_icon_delit1:
Line 91... Line 91...
91
 
91
 
92
	mov eax,8
92
	mov eax,8
93
	mov edx,[counter]
93
	mov edx,[counter]
94
	add edx,11100000000000000000000000000000b
94
	add edx,11100000000000000000000000000000b
95
	int 0x40
95
	mcall
Line 96... Line 96...
96
	inc [counter]
96
	inc [counter]
97
 
97
 
Line 104... Line 104...
104
	next_icon_delit2:
104
	next_icon_delit2:
Line 105... Line 105...
105
 
105
 
106
	mov eax,8
106
	mov eax,8
107
	mov edx,[counter]
107
	mov edx,[counter]
108
	add edx,11100000000000000000000000000000b
108
	add edx,11100000000000000000000000000000b
109
	int 0x40
109
	mcall
Line 110... Line 110...
110
	inc [counter]
110
	inc [counter]
111
 
111
 
Line 118... Line 118...
118
	next_icon_delit3:
118
	next_icon_delit3:
Line 119... Line 119...
119
 
119
 
120
	mov eax,8
120
	mov eax,8
121
	mov edx,[counter]
121
	mov edx,[counter]
122
	add edx,11100000000000000000000000000000b
122
	add edx,11100000000000000000000000000000b
123
	int 0x40
123
	mcall
Line 124... Line 124...
124
	inc [counter]
124
	inc [counter]
125
 
125
 
Line 126... Line 126...
126
	cmp [counter],50
126
	cmp [counter],50
127
	jl next_icon_delit3
127
	jl next_icon_delit3
128
 
128
 
129
	;delit buttons of palette
129
	;delit buttons of palette
130
	mov eax,8
130
	mov eax,8
Line 131... Line 131...
131
	mov edx,51
131
	mov edx,51
132
	add edx,11100000000000000000000000000000b
132
	add edx,11100000000000000000000000000000b
133
	int 0x40
133
	mcall
134
 
134
 
135
 
135
 
Line 136... Line 136...
136
	;delit buttons of color
136
	;delit buttons of color
Line 137... Line 137...
137
	mov eax,8
137
	mov eax,8
138
	mov edx,52
138
	mov edx,52
Line 172... Line 172...
172
	push esi
172
	push esi
173
	push edi
173
	push edi
174
	;ᣫ ¦¨¢ ­¨¥  ­¨¬ æ¨¨ >>>>>>>>>>>>>>>>>>
174
	;ᣫ ¦¨¢ ­¨¥  ­¨¬ æ¨¨ >>>>>>>>>>>>>>>>>>
175
	mov eax,18
175
	mov eax,18
176
	mov ebx,14
176
	mov ebx,14
177
	;int 0x40
177
	;mcall
Line 178... Line 178...
178
 
178
 
Line 179... Line 179...
179
    menu_loop:
179
    menu_loop:
180
 
180
 
Line 229... Line 229...
229
 
229
 
Line 230... Line 230...
230
 
230
 
231
	menu_still:
231
	menu_still:
232
 
232
 
233
	mov eax,10
233
	mov eax,10
234
	int 0x40
234
	mcall
235
	mov eax,2
235
	mov eax,2
Line 236... Line 236...
236
	int 0x40
236
	mcall
Line 237... Line 237...
237
	mov eax,17
237
	mov eax,17
238
	int 0x40
238
	mcall
Line 290... Line 290...
290
	pop edi
290
	pop edi
291
	pop esi
291
	pop esi
Line 292... Line 292...
292
 
292
 
293
	mov eax,5
293
	mov eax,5
294
	mov ebx,15
294
	mov ebx,15
Line 295... Line 295...
295
	int 0x40
295
	mcall
296
 
296
 
Line 297... Line 297...
297
	push [counter]
297
	push [counter]
Line 354... Line 354...
354
	mov edx,[Window_SizeX]
354
	mov edx,[Window_SizeX]
355
	sub edx,55
355
	sub edx,55
356
	shl edx,16
356
	shl edx,16
357
	add edx,20+15+6+6
357
	add edx,20+15+6+6
358
	and esi,0
358
	and esi,0
359
	int 0x40
359
	mcall
Line 360... Line 360...
360
 
360
 
361
	mov eax,47
361
	mov eax,47
362
	mov ebx,4*65536
362
	mov ebx,4*65536
363
	mov ecx,[ScreenY]
363
	mov ecx,[ScreenY]
364
	add ecx,[PosY]
364
	add ecx,[PosY]
365
	mov edx,[Window_SizeX]
365
	mov edx,[Window_SizeX]
366
	sub edx,55
366
	sub edx,55
367
	shl edx,16
367
	shl edx,16
368
	add edx,20+15+6+18+1+6
368
	add edx,20+15+6+18+1+6
369
	and esi,0
369
	and esi,0
Line 370... Line 370...
370
	int 0x40
370
	mcall
371
 
371
 
372
	popad
372
	popad
373
	ret
373
	ret