Subversion Repositories Kolibri OS

Rev

Rev 6359 | Rev 6364 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;---------------------------------------------
  2. ;-----------panel BUTTONS---------------------
  3. ;---------------------------------------------
  4. buttons:
  5.  
  6.         cmp [Current_instrument],21
  7.         jne @f
  8.         cmp [instrument_used],1
  9.         jne @f
  10.         cmp [Activate_instrument],0
  11.         jne @f
  12.         cmp [crossing],1
  13.         jne @f
  14.                 mov [finishing_crossing],1
  15.                 call TakeButtonInstruments
  16.                 jmp still
  17.         @@:
  18.  
  19.         mcall SF_GET_BUTTON
  20.  
  21.         shr eax,8
  22.  
  23.         cmp eax,1
  24.         jne no_exit
  25.                 mov eax,CursorsID
  26.                 call delete_cursors
  27.                 mcall SF_TERMINATE_PROCESS
  28.         no_exit:
  29.  
  30.         mov [Current_instrument],eax
  31.         call button_handler_main_menu
  32.  
  33.         ; set cursor for current instrument
  34.         pushad
  35.  
  36.         mov eax,CursorsID
  37.         mov ebx,[Current_instrument]
  38.  
  39.         call set_cursor
  40.         popad
  41.  
  42.         cmp eax,10
  43.         jl still
  44.  
  45.         ;save instrumnets 10-40
  46.         cmp eax,40
  47.         jae no_save_last_instrument
  48.  
  49.          mov [Last_instrument],eax
  50.  
  51.         no_save_last_instrument:
  52.  
  53.         cmp eax,10
  54.         je still
  55.  
  56.         cmp eax,14
  57.         je still
  58.  
  59.         cmp eax,11
  60.         je still
  61.  
  62.         cmp eax,13
  63.         je still
  64.  
  65.         cmp eax,12
  66.         je still
  67.  
  68.         cmp eax,51
  69.         jne no_palette_
  70.  
  71.         call TakeButtonInstruments
  72.         jmp still
  73.  
  74.         no_palette_:
  75.  
  76.         cmp eax,17
  77.         je still
  78.  
  79.         cmp eax,21
  80.         jne no_allocation__
  81.  
  82.         and [Activate_instrument],0
  83.         jmp still
  84.  
  85.         no_allocation__:
  86.  
  87.         cmp eax,20
  88.         jne no_kontur__
  89.  
  90.         and [instrument_used],0
  91.         jmp still
  92.  
  93.         no_kontur__:
  94.  
  95.         call TakeButtonInstruments
  96.         jmp still