kolibrios-fun/programs/media/animage/trunk/events_of_buttons.inc
heavyiron 4daae89053 *kernel - fixes in 15.2 by Mario79 and 67 by mike.dld
updated sysfunc.txt
*programs 
         new icons and logo for CPUID and ICON
         added new version of @ICON and ICONMNGR
         fixes in iconedit and calendar from DedOK
         new algoritm of fill background in pic4
         all apps (fasm-writen only) rewriten to use common macros.inc for easy recompile in fastcall mode (there is a bug in https; run need rewrite to use common macros.inc)
         small fixes in build_all.bat script
         

git-svn-id: svn://kolibrios.org@485 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-05-10 13:48:35 +00:00

108 lines
1.4 KiB
PHP

;---------------------------------------------
;-----------panel BUTTONS---------------------
;---------------------------------------------
buttons:
cmp [Current_instrument],21
jne no_finish_instrument_button
cmp [instrument_used],1
jne no_finish_instrument_button
cmp [Activate_instrument],0
jne no_finish_instrument_button
cmp [crossing],1
jne no_finish_instrument_button
mov [finishing_crossing],1
call TakeButtonInstruments
no_finish_instrument_button:
mov eax,17
mcall
shr eax,8
cmp eax,1
jne no_exit
mov eax,CursorsID
call delete_cursors
or eax,-1
mcall
no_exit:
mov [Current_instrument],eax
; set cursor for current instrument
pushad
mov eax,CursorsID
mov ebx,[Current_instrument]
call set_cursor
popad
cmp eax,10
jl still
;save instrumnets 10-40
cmp eax,40
jae no_save_last_instrument
mov [Last_instrument],eax
no_save_last_instrument:
cmp eax,10
je still
cmp eax,14
je still
cmp eax,11
je still
cmp eax,13
je still
cmp eax,12
je still
cmp eax,51
jne no_palette_
call TakeButtonInstruments
jmp still
no_palette_:
cmp eax,17
je still
cmp eax,21
jne no_allocation__
and [Activate_instrument],0
jmp still
no_allocation__:
cmp eax,20
jne no_kontur__
and [instrument_used],0
jmp still
no_kontur__:
call TakeButtonInstruments
jmp still